MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/b61snk/that_famous_function/ejibcqa
r/ProgrammerHumor • u/Synedh • Mar 27 '19
176 comments sorted by
View all comments
Show parent comments
395
have working code with loop "while (condition) { doTheThing(); }"
some change makes loop no longer needed
remove loop
code no longer works in IE8
spend weeks trying to figure out why code is broken
make no progress
arduously test every commit in branch history until you find the one that broke it
looksFineToMe.jpg
begin to experiment piecemeal with every part of the commit
code works when "while (condition) { doTheThing(); }" loop is present
code works when loop is present, even when condition never evaluates to true
code works when loop is present, even when doTheThing() does nothing
code works when loop is present, even when condition is literally just "false" and loop contents are empty
code still does not work without useless, completely neutered loop
fuck it, blame it on ghosts or something
50 u/[deleted] Mar 27 '19 Thank you for making my day, stranger. 17 u/Milleuros Mar 27 '19 Sounds incredibly relatable 12 u/Python4fun does the needful Mar 27 '19 updoots to you 6 u/Jurion2000 Mar 27 '19 Blame on servers. Always blame servers. Or hunters if you are into WoW 1 u/MLGDDORITOS Mar 28 '19 You can also blame hunters if you're into hearthstone. 3 u/kryptkpr Mar 28 '19 This guy debugs, probably other peoples code even. 1 u/baggyzed Apr 02 '19 Not enough. He didn't try with just "{}", or even with just a semicolon.
50
Thank you for making my day, stranger.
17
Sounds incredibly relatable
12
updoots to you
6
Blame on servers. Always blame servers. Or hunters if you are into WoW
1 u/MLGDDORITOS Mar 28 '19 You can also blame hunters if you're into hearthstone.
1
You can also blame hunters if you're into hearthstone.
3
This guy debugs, probably other peoples code even.
1 u/baggyzed Apr 02 '19 Not enough. He didn't try with just "{}", or even with just a semicolon.
Not enough. He didn't try with just "{}", or even with just a semicolon.
395
u/cbusalex Mar 27 '19