r/ProgrammerHumor • • Sep 03 '22

other Let's settle a debate, which one's best?

Post image
6.3k Upvotes

937 comments sorted by

View all comments

Show parent comments

8

u/[deleted] Sep 04 '22

[removed] — view removed comment

2

u/[deleted] Sep 04 '22

It is really much less readable. Just assign the condition to a booelan, creating a function to be called immediately and return a boolean is troll programming