Pooh Writes Better Code
static void main(String[] args) { a = 1; b = 3; c = a + b; } static void main(String[] args) { c = sum(3, 1); //Calls summ method /** Function that sums two values @param a a number @param b another number @return sum of a and b */ static int sum(int a, int b) { return a + b; }
Winnie the Pooh appears unimpressed while writing a simple addition directly, then looks sophisticated in a tuxedo while wrapping the same operation in a separate sum method with documentation. The joke mocks overengineering and unnecessarily complicated programming style.
Winnie the Pooh / Винни-Пухblue armchair / синее креслоred shirt / красная рубашкаblack tuxedo / чёрный смокингwhite shirt collar / белый воротник рубашкиblack bow tie / чёрный галстук-бабочкаcomputer code / компьютерный кодcode editor / редактор кодаaddition operation / операция сложенияprogramming comments / комментарии в кодеsplit-panel layout / двухпанельная компоновка
- @dev_meme / 296 2019-04-03
- @dev_meme / 3445 2021-07-21
- Template
- Winnie the Pooh vs. Fancy Pooh
- Type
- image
- Size
- 640×473 · 39.6 KiB
- Mood
- sarcastic
- Language
- en
- Added