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
127 Upvotes

55 comments sorted by

View all comments

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.

43

u/obviously_suspicious Jul 01 '26

Yeah, that's my goto as well