this post was submitted on 28 Feb 2024
616 points (97.2% liked)

Programmer Humor

19735 readers
693 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 1 year ago
MODERATORS
616
wait what (pawb.social)
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] SendMePhotos 12 points 9 months ago* (last edited 9 months ago) (4 children)

But like... Correct me if I'm wrong but in my experience tab does not always equal 4 spaces.

E: thanks all. I didn't fully understand.

[–] [email protected] 43 points 9 months ago

That's one of the benefits of using tabs. Some people might like 4 spaces for indentation, whereas others like 2 spaces. If you use tabs, you can configure your editor to use whatever tab size you want, and they're just stored as tab characters in the file.

Tabs for indentation, spaces for alignment (eg for ASCII art).

[–] [email protected] 20 points 9 months ago (1 children)

That's why it's also a big accessibility feature. With big font sizes, four spaces are distracting but you can configure tabs to show up as one character, which is way more reasonable with font sizes larger than usual

[–] [email protected] 8 points 9 months ago

I had a colleague that is legally blind in my second real job. The dude is brilliant (and hilarious) but these things would significantly enable or screw up his productivity. I have always felt fortunate to have had direct butt in seat exposure to the importance of accessibility at such a young age.

[–] [email protected] 9 points 9 months ago

You’re misunderstanding. In this case it means “one tab character” instead of “four space characters”.

[–] [email protected] 1 points 9 months ago

Four? Uh oh...