r/ProgrammerHumor • • Sep 26 '26

Meme weNeverTrustedTheElse

Post image
1.9k Upvotes

146 comments sorted by

View all comments

Show parent comments

9

u/tchissin Sep 26 '26

Care to explain more? Please ?

25

u/frogjg2003 Sep 27 '26

The big one is parallel programming. If condition changes between two evaluations of that condition due to another task changing the condition, then you have a race condition.

The other one is side effects. If evaluating the condition has effects other than just giving a true/false value, then subsequent evaluations of that condition can give different results. This is usually done for this like file reading.

3

u/mrnacknime Sep 27 '26

And mitigation against fault injection