MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/teqb37/static_bool_iscrazymurderingrobot_false/i0stmgg/
r/ProgrammerHumor • u/speckz • Mar 15 '22
257 comments sorted by
View all comments
Show parent comment
1
You should have a good name variable
if(enabled)
if(isActivated)
It should read like a sentence
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 ExactlyAnything that returns a boolean should in its name contain a statement or an action that can succeed. (IsValid(obj), validate(obj))
How about if it's a function of if(isActivated()) that checks the bool in another C file?
1 u/DaniilBSD Mar 15 '22 ExactlyAnything that returns a boolean should in its name contain a statement or an action that can succeed. (IsValid(obj), validate(obj))
Exactly
Anything that returns a boolean should in its name contain a statement or an action that can succeed. (IsValid(obj), validate(obj))
View all comments
Show parent comment
1
u/DaniilBSD Mar 15 '22
You should have a good name variable
if(enabled)
if(isActivated)
It should read like a sentence