▲ 1227 ▼ More the merrier (lemmy.world) submitted 2 years ago by alphacyberranger@lemmy.world to c/programmer_humor@programming.dev 75 comments fedilink hide all child comments
[–] CodeBlooded@programming.dev 16 points 2 years ago (1 child) Code never lies. Comments sometimes do. permalink fedilink source hideshow 2 child comments replies: [–] rothaine@lemm.ee 19 points 2 years ago (2 children) Oh, you ain't never encountered a boolean named the fucking opposite of what it does? permalink fedilink source parent hideshow 4 child comments replies: [–] Archive@lemmy.world 3 points 2 years ago Are you telling me you don’t like reading lines like: if !is_expired: refresh() It reads super well permalink fedilink source parent [–] VaxHacker@programming.dev 2 points 2 years ago Better: I've encountered a pair of booleans that appear to be exact opposites but aren't. To protect the guilty I've changed the words: isOpen and isClosed, when one is true the other is false and vice versa, EXCEPT that while something can't be both open and closed at the same time, it is possible for something to be not open and not closed. permalink fedilink source parent
[–] rothaine@lemm.ee 19 points 2 years ago (2 children) Oh, you ain't never encountered a boolean named the fucking opposite of what it does? permalink fedilink source parent hideshow 4 child comments replies: [–] Archive@lemmy.world 3 points 2 years ago Are you telling me you don’t like reading lines like: if !is_expired: refresh() It reads super well permalink fedilink source parent [–] VaxHacker@programming.dev 2 points 2 years ago Better: I've encountered a pair of booleans that appear to be exact opposites but aren't. To protect the guilty I've changed the words: isOpen and isClosed, when one is true the other is false and vice versa, EXCEPT that while something can't be both open and closed at the same time, it is possible for something to be not open and not closed. permalink fedilink source parent
[–] Archive@lemmy.world 3 points 2 years ago Are you telling me you don’t like reading lines like: if !is_expired: refresh() It reads super well permalink fedilink source parent
[–] VaxHacker@programming.dev 2 points 2 years ago Better: I've encountered a pair of booleans that appear to be exact opposites but aren't. To protect the guilty I've changed the words: isOpen and isClosed, when one is true the other is false and vice versa, EXCEPT that while something can't be both open and closed at the same time, it is possible for something to be not open and not closed. permalink fedilink source parent