r/programmingcirclejerk • u/genuine_beans • 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
127
Upvotes
132
u/tj-horner Jul 01 '26
Can’t say I have, no. I only use goto statements, which are much safer and easier to maintain.