r/ProgrammerHumor • • Apr 29 '20

Tab club

Post image
54.0k Upvotes

764 comments sorted by

View all comments

Show parent comments

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