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
6 hours ago
77,673 views
0 shares
code-review-memes, boolean-logic-memes, redundant-code-memes, if-else-memes, bad-code-memes | ProgrammerHumor.io
More Like This
So I did an "Inspect Element" in an Adult Website...
4 years ago
171.1K views
0 shares
How NOT to attract CS students as prospective employees...
2 years ago
65.2K views
0 shares
I guess all programmers share the same opinion about managers' work - an example from Pluralsight course on C# Generics by Scott Allen
4 years ago
258.1K views
0 shares
Hell's powershell errors
4 years ago
170.3K views
0 shares
JS devs
4 years ago
130.2K views
0 shares
DOM And JQuery: The Cat And Mouse Game
9 months ago
237.5K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp