r/ProgrammerHumor • • Mar 15 '22

static bool isCrazyMurderingRobot = false;

Post image
4.9k Upvotes

257 comments sorted by

View all comments

Show parent comment

1

u/extekt Mar 15 '22

How about if it's a function of if(isActivated()) that checks the bool in another C file?

1

u/DaniilBSD Mar 15 '22

Exactly

Anything that returns a boolean should in its name contain a statement or an action that can succeed. (IsValid(obj), validate(obj))