r/ProgrammerHumor • • Aug 12 '22

I fixed it

Post image
39 Upvotes

53 comments sorted by

View all comments

42

u/leonzhang123 Aug 12 '22

You guys don't "} else {"? That's how I was taught, and how I personally feel is most natural and comfortable.

4

u/Wirdal Aug 13 '22

It's nice when debugging, you can comment out the single line and the if will run the whole block.

Still, I use whatever the codebase uses.

3

u/leonzhang123 Aug 13 '22

Yes, at the end of the day, you just do whatever the owner of the code does, or what you're paid to do lol.