this post was submitted on 02 Oct 2023
1751 points (98.0% liked)
Programmer Humor
32467 readers
1065 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Imagine getting hung up on something as trivial as a switch statement. Which is more poignant, I ask you?
or
The performance difference is absolutely negligible, but now you've introduced a bunch of unnecessary indentation (for no benefit) that's gonna get hard to read should you even add a little bit of additional logic, and a footgun with all the break; s.
And then in JS the syntax for the case-blocks isn't even consistent with the rest of the language.