this post was submitted on 25 Oct 2026
371 points (95.1% liked)

Programmer Humor

33823 readers
1948 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

founded 3 years ago
MODERATORS
 

Mine is that the useState hook is an actual plague on the entire React ecosystem. Regardless of your opinions of React, if you wanna use something then use it right.

you are viewing a single comment's thread
view the rest of the comments
[–] Quetzalcutlass@lemmy.world 21 points 3 days ago* (last edited 3 days ago) (5 children)

Want to know something horrendous? Odin, my current favorite language, recommends mixing tabs and spaces in their style guide.

What's worse, their justification actually makes sense.

[–] LeapSecond@lemmy.zip 14 points 3 days ago

Another unpopular opinion: this alignment style looks terrible and wastes space. If you want alignment just start the parameters in a new line.

[–] Archr@lemmy.world 13 points 3 days ago

Fuck... They are right. This makes a lot of sense.

Now I have to share this with everyone at work.

[–] Orygin@sh.itjust.works 3 points 2 days ago

That's how it's always supposed to be. Tabs for indent, spaces for alignment. Languages that do not support this are trash

[–] GroundedGator@lemmy.world 2 points 2 days ago

I used to do this and it absolutely makes sense. However, I've shifted to tabs only and have removed the need for alignment with newlines.

[–] MarauderIIC@lemmy.zip 4 points 3 days ago

Does that rule have autoformatting support? If not it's a time waster anytime the parameters get refactored. I'm firmly in the camp of "machines do my formatting"