Skip to main content

Timeline for Make a big deal out of == true?

Current License: CC BY-SA 2.5

3 events
when toggle format what by license comment
Mar 20, 2011 at 2:46 comment added Thomas The first problem stems from a false premise IMO by using awful variable names. Suppose x,y,z were named notExceptButHasX, exceptNotButIsntY, doNotUnlessIsExceptZ? How does that make for readability in your problem? If x,y,z were named something like "isEnabled", "isEffective", "hasProperty", then your statement becomes isEnabled || isEffective || hasProperty which is far more readable than comparing to true or false.
S Nov 27, 2010 at 19:09 history answered Job CC BY-SA 2.5
S Nov 27, 2010 at 19:09 history made wiki Post Made Community Wiki