RobertoOberto@sh.itjust.workstoAsklemmy@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?
12·
4 months agoI sometimes name booleans after the action that will be taken rather than the condition they represent For example, I might have booleans called “doQuickInit” or “invertResult”. I find this very useful when the value of a boolean is determined by a complex series of conditions that are not actually true or false.
A single strand would be a delight. I seem to always get a full face full of web.