- 0 Posts
- 8 Comments
Roberto@mujico.orgto
Asklemmy@lemmy.ml•What weird food or dishes do you eat regularly at home that you would never serve to someone else?
4·2 years agoHad me until the yeast.
Aren’t we all captives of society and cultural norms
Roberto@mujico.orgto
Asklemmy@lemmy.ml•I know that naming variables is one of the biggest unsolved problems of Computer Science but how would you name a boolean flag to be self explanatory?
2·2 years agoI 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.
Roberto@mujico.orgto
Asklemmy@lemmy.ml•I know that naming variables is one of the biggest unsolved problems of Computer Science but how would you name a boolean flag to be self explanatory?
7·2 years agoNot 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.
Must be weird realizing that you owe your livelihood to Windows ME.
Roberto@mujico.orgto
Firefox@lemmy.ml•How can I block a websites location data request, so it doesn't keep asking?
4·3 years agoDoesn’t work for me, keeps on asking every time (Firefox for Android at least)

And don’t get me started about UX designers! Motherfuckers break whatever is working so it looks “clean”.