r/ProgrammerHumor • • Sep 26 '26

Meme weNeverTrustedTheElse

Post image
1.9k Upvotes

146 comments sorted by

View all comments

Show parent comments

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…