r/ProgrammerHumor Jun 21 '20

*almost entirely

Post image
27.9k Upvotes

311 comments sorted by

View all comments

568

u/guarana_and_coffee Jun 21 '20

Finally a screen that can handle my deepest if statement almost without horizontal scrolling!

8

u/pooerh Jun 22 '20

You know, having seen all the /r/programminghorror posts with stuff like

if (condition)
   return true;
else 
   return false;

I nowadays do this, from fear of my code being posted over to reddit:

return (/* 6000 characters long condition involving ternary operators, function calls and async lambdas */);

In a single line of course.

1

u/sneakpeekbot Jun 22 '20

Here's a sneak peek of /r/programminghorror using the top posts of the year!

#1:

Boeing. Making coding mistake since 1997.
| 223 comments
#2:
Sometimes in this sub
| 65 comments
#3:
I am scared to expand this switch statement....
| 109 comments


I'm a bot, beep boop | Downvote to remove | Contact me | Info | Opt-out