this post was submitted on 01 Mar 2025
0 points (NaN% liked)

Programmer Humor

25776 readers
2045 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 2 years ago
MODERATORS
 

Probably not a good title to seek upvotes. If it does get upvotes, more programmers get share in your pain ๐Ÿ˜…

top 7 comments
sorted by: hot top controversial new old
[โ€“] xmunk@sh.itjust.works 0 points 5 months ago (2 children)

Figure out if they prefer spaces or tabs, insist on the other.

Please note this won't work on Pythonistas as they've already had their spirit thoroughly broken.

[โ€“] Reptorian@programming.dev 1 points 5 months ago (1 children)

What if you use tabs for indentations and space for alignment?

[โ€“] xmunk@sh.itjust.works 1 points 5 months ago (1 children)

It's alright... but have you considered spaces for indentation and tabs for alignment?

[โ€“] Reptorian@programming.dev 1 points 5 months ago

Uh, that would be infuriating to see. (Yes, I can see tabs in KDE Kate)

[โ€“] BeardedGingerWonder@feddit.uk -1 points 5 months ago (2 children)

I feel like this is a debate that doesn't exist - 4 spaces bound to tab is the only actual answer.

[โ€“] xmunk@sh.itjust.works 1 points 5 months ago

Hard tabs are much better as someone who works with an age diverse team where vision issues are a serious issue. Four space tabs are optimal for you but there are other lived experiences.

[โ€“] brian@programming.dev 1 points 5 months ago

most things seem to have settled on this, but tabs are so much better for accessibility. programmers with bad vision can have trouble differentiating smaller indentation levels, while some of them just bump the font size up so high that 4 spaces takes up too much screen space. each one can set a tab width that is comfortable for them. https://alexandersandberg.com/articles/default-to-tabs-instead-of-spaces-for-an-accessible-first-environment/ has some good arguments

with a forced formatter and a configured editor there really isn't any argument for spaces