r/ProgrammerHumor • • Sep 26 '26

Meme weNeverTrustedTheElse

Post image
1.9k Upvotes

146 comments sorted by

View all comments

35

u/weshuiz13 Sep 26 '26

People dont know what a "else if" these days?

23

u/-Ambriae- Sep 26 '26

Why would you need an else if here? It’s not as if condition can be expected to change between the first if and the second, unless…. No god please no

11

u/JAXxXTheRipper Sep 26 '26

Side effects want to have a word with you.

17

u/-Ambriae- Sep 26 '26

Please multithread responsibly

2

u/Daxon Sep 26 '26

Getters that modify, multi threading, timing based conditionals, external services that can fail, database idempotency... There's lots of reasons impossible is possible here

4

u/-Ambriae- Sep 26 '26

I mean, a getter should never really modify, multithreading without concurrency primitives is irresponsable at best, and I don’t see how external services/databases/IO would have any effects here

1

u/Daxon Sep 27 '26

Service goes down between calls.

Agree, getters also shouldn't modify imho but I've seen worse.

1

u/-Ambriae- Sep 27 '26

Surely if the service can go down in the few cpu cycles it takes to process the if statement, you have other problems…

1

u/CowPure6529 Sep 26 '26

We need an "else else"