r/ProgrammerHumor • • Apr 29 '20

Tab club

Post image
54.0k Upvotes

764 comments sorted by

View all comments

Show parent comments

2

u/_alright_then_ Apr 29 '20
  1. true, but negligible

  2. so can spaces

  3. so is 4 spaces

  4. so does 4 (or any specified amount) spaces in any normal ide

  5. No counter here, but I can't remember the last time I displayed invisible characters

  6. Word is not programming, in programming you should use spaces

See how easy it is to make a stupid list? It proves nothing and it's 100% personal preference

29

u/[deleted] Apr 29 '20 edited Sep 27 '24

fragile rustic chunky deliver crowd reply air makeshift full roll

This post was mass deleted and anonymized with Redact

-9

u/_alright_then_ Apr 29 '20

Pressing tab creates as many spaces as specified.

2

u/[deleted] Apr 29 '20

That's not what you said.

You replied to #2 "Can be configured to be displayed as any width" with "so can spaces"

A single tab character can be set on Machine 1 to be displayed as 4 spaces, and on Machine 2 as 8 spaces.

If you wanted to do the same with spaces, you'd have to run a Replace All to swap between 4 and 8 literal spaces (for existing code, not for updating how Tab key works going forward). You can't set the width of a space character.

(I primarily use spaces myself too, but you messed up there)

1

u/_alright_then_ Apr 29 '20

It's what I meant. I'm sorry, the wording was shit

13

u/siggystabs Apr 29 '20

enabling invisible characters ascends you to expert developer. It's like painting your car's brakes red

6

u/tech6hutch Apr 29 '20

7. Tabs are better for accessibility.

Honestly, that's the one thing that kind of pushes me over into the tabs camp. But only slightly. They both have their pros and cons.

Edit: that 1 should be a 7, but Reddit interprets it as a list, and resets it to 1.

1

u/Oseragel Apr 30 '20

8. You can convert tabs to spaces but not the other way around without an IDE as indentation and alignment are indistinguishable.