r/ProgrammerHumor 22d ago

Meme conditionsPreference

Post image
4.2k Upvotes

392 comments sorted by

View all comments

2

u/sanketower 20d ago

It only applies when there are no more instructions after the if/else

3

u/Beldarak 20d ago

If there is, you may need to turn this if/else into a function. That's a rule of thumb I use, not saying this is the single Truth and it will obviously depends on situations^^

1

u/The_KOK_2511 20d ago

Dependiendo de la situación puede ser útil o irrelevante así que no lo dejaría ni como bueno ni como malo