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

Programmer Humor

33844 readers
1822 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
[–] danhab99@programming.dev 22 points 3 days ago (3 children)

Tab chars are better than spaces AND the correct tab width is 2 spaces

[–] eatham@aussie.zone 18 points 3 days ago (1 children)

Tab chars are better, no opinion on the width but if you use the chars, everyone can do what they want

[–] Zarobi@aussie.zone 2 points 3 days ago

I don't see why an IDE can't convert e.g. 4 width spaces to 50% visual width for those that prefer 2 spaces. That way the code doesn't need changing, and everyone still enjoys their own personal width preferences

[–] glibg10b@lemmy.zip 6 points 3 days ago* (last edited 3 days ago)

I use 8-wide tabs. I also keep lines under 80 characters

No, I don't use Java. How did you know?

[–] Humanius@lemmy.world 3 points 3 days ago (2 children)

I was on board with the first guy, but this is going too far. We should compromise between the 2- and 4-spaces camp, and we settle on 3 spaces.

[–] VigorouSchematic@fedinsfw.app 4 points 3 days ago

Lets make it incremental instead: 1 space for first ident, 2 space for second, 3 space for third... 🙃

[–] MicKet@swiss.social 1 points 3 days ago* (last edited 3 days ago)

@Humanius @danhab99
Formating is so 1990.
Modern would be to store Program code as database. Formating and UX of program code would be separated and an IDE would show Program code in the user preferred way.
But every Developer: "Hey modern way to store structured Data, you are wrong for my Work."

#structureddata #developer #conservatives #notonmywatch #codeformatting