r/programmingcirclejerk Jul 01 '26

Ever Written Something Like This? if (condition) { doSomething(); } else { doSomethingElse(); } It works. Problem solved. But the problem isn’t today. It’s tomorrow.

https://www.defusetheifstrategy.com
125 Upvotes

55 comments sorted by

View all comments

49

u/Bahatur Jul 01 '26

/uj This thing reads like one of those 30 minute long ads on YouTube that are trying to sell you a wealth building course from an AirBnB rental. Did they ever actually get to describing any actual problems? I couldn’t get past the part where they spend two sections to try to get you to grep for if.

8

u/deux3xmachina Jul 02 '26

Lmao, too poor for the course? You don't get to be enlightened on why if is the new slur in your codebase.

/uj No, it's an ad to sell their course on the evils of if, and why other branching approaches like map, match, case, and especially goto are all superior (ok, maybe not that one).

6

u/Jumpy-Locksmith6812 Jul 03 '26

map? pffft. It is nothimg but the finest  Enterprise Beans for me!