Avatar

Roberto

Roberto@mujico.org
Joined
0 posts • 8 comments
Direct message
1 point
permalink
report
reply
4 points

Aren’t we all captives of society and cultural norms

permalink
report
parent
reply

I think I see what you mean, you have two states and kind of opposite but you usually name the variable after one of them, so you have to “guess” the other one. For instance you could have isRightHand, the opposite state being left hand, but from the variable name you can’t be sure if it could be “not right hand” as in right foot or something like that. Man it’s kind of difficult to come up with examples.

permalink
report
parent
reply

Not sure I understand your second example, if is_person_standing is false I’d assume the person is not standing and that’s all the information is needed. As you said it yourself, if more information is needed maybe a boolean is not the best choice, or a second variable could be used.

permalink
report
reply

That was very difficult to read. In an age of chat gpt, how did they translate that?

permalink
report
reply

Must be weird realizing that you owe your livelihood to Windows ME.

permalink
report
parent
reply

Doesn’t work for me, keeps on asking every time (Firefox for Android at least)

permalink
report
parent
reply