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

Programmer Humor

33844 readers
1559 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
[–] Chaser@lemmy.zip 9 points 3 days ago (6 children)

Everyone who indents code with 4 spaces also eats children.

[–] mindbleach@sh.itjust.works 12 points 2 days ago (1 children)

Using spaces at all is indefensible. We have a universal control character specifically to indent code however you want, clientside. I don't care if your variables line up perfectly when they don't fit on one line. Stop trying to do ASCII art with semantic syntax.

[–] bitfucker@programming.dev 1 points 2 days ago* (last edited 2 days ago) (1 children)

Ahh see, off-side rules is another shit that should die already (whitespace as indentation/scope)

[–] mindbleach@sh.itjust.works 2 points 2 days ago* (last edited 2 days ago)

Load-bearing whitespace like Python, yeah, absolutely. We can't take a language seriously when the primary cause of incompatibility is literally unprintable.

But indent your damn code. It's universal for a reason. If the text exists to be read by humans, format it for how humans think.

[–] khanh@lemmy.zip 3 points 2 days ago

what are you, a 2-space indenter?

[–] psycholocomotor_no2@lemmy.blahaj.zone 3 points 2 days ago (1 children)

I hit tab and just never go deeper than 3 indents.

[–] treesquid@lemmy.world 2 points 2 days ago (1 children)

Oh come on, it's fun to nest ternaries 15 layers deep and have your code just slide off to the right

I am a fan of a good spaghetti, don't get me wrong, but only as a treat sometimes.

[–] treesquid@lemmy.world 1 points 2 days ago

I hope you mean as opposed to a tab that's 4 spaces long. 2-spacers can get mauled by angry emus.

[–] Sunrosa@lemmy.world 5 points 2 days ago

True, 2 spaces is better :3

[–] fruitcantfly@programming.dev 1 points 2 days ago

I'm just doing my part to reduce global climate change. You're welcome