When you need to make absolutely sure something is true, so you just... set it to true in both branches. The classic "I've covered all my bases" approach that covers absolutely nothing. Either the data exists and we're setting trueOrFalse to true, or it doesn't exist and we're setting trueOrFalse to true. Bulletproof logic right there. This is the programming equivalent of those "choose your own adventure" books where every path leads to the same ending. Just skip the if-else and assign it directly, my friend. Your code reviewer is going to have a field day with this one.
True Or True
21 days ago
255,901 views
0 shares
code-review-memes, boolean-logic-memes, redundant-code-memes, if-else-memes, bad-code-memes | ProgrammerHumor.io
More Like This
Christianity and JavaScript
3 years ago
131.7K views
1 shares
Stop And Get Help This Is Not Right
11 months ago
248.5K views
0 shares
FrontEnd VS BackEnd 2.0
3 years ago
161.5K views
0 shares
10 ways "Management" Makes your life hell.
1 year ago
164.8K views
0 shares
Skeptical about the Client in Freelance Work? Try this
4 years ago
173.5K views
1 shares
A true programmer
4 years ago
206.9K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp