this post was submitted on 18 Apr 2026
408 points (89.8% liked)
Programmer Humor
31064 readers
649 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yeah, like, who would ever want to
It's much better to just:
And you might even:
I totally agree, that Go snippet is absolutely more maintainable. Though you forgot the curly braces and the semicolons are unnecessary.
Yup. These are pretty big issues. But there are also some minor, trivial, purely-preference-based issues - like returning an error if
err == nilinstead of when it isn't.😆 yeah I didn’t read it that hard
In your defense, it's written in the only "modern" programming language that encourage this category of errors.
I’m still far happier with it than literally any other programming language I’ve ever used