this post was submitted on 27 Jun 2023
172 points (100.0% liked)
Chat
7498 readers
21 users here now
Relaxed section for discussion and debate that doesn't fit anywhere else. Whether it's advice, how your week is going, a link that's at the back of your mind, or something like that, it can likely go here.
Subcommunities on Beehaw:
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Tabs make more sense than spaces.
Aren't tabs also more accessible? As in, you can adjust how much spaces it should equal to depending on your own eyesight & preference.
And with everyone just using the tab key anyway (except me because the entire leftmost row of my keyboard is broken), what purpose does spaces have beyond being a weird implementation detail on some style guides someone decided to throw together?
Am I not getting a joke? I'm confused.
In programming you can indent your code with tabs or spaces, which some people are very passionate about, but ultimately is a stylistic choice - https://www.youtube.com/watch?v=SsoOG6ZeyUI
As a non programmer I don't see why you would use anything other than a tab. It's far quicker and you can get similar amounts of indentation.
Most programmers' editors automatically indent the line appropriately without having to hit either the space key or the tab key, and if you do hit the tab key it usually just inserts enough tabs or spaces (whichever you configure it for) to take it in one level of indentation. Programmers depend on hyper smart specialized editors.
Cool!
I work all day in a large codebase which is entirely space-indented, and I must say the amount of time I've spent backspacing through indented spaces in order to get to the right indentation level, or moving individually through indented space characters with the arrow keys, adds up to less than a minute a month. So while that may be "a reason" to prefer tabs, it isn't much of them, at least, not if you use a good editor. It just doesn't matter.
If you want to understand the issues more thoroughly, internet hero Jamie Zawinski wrote a treatise on it 23 years ago, and not much has changed since then.
https://www.jwz.org/doc/tabs-vs-spaces.html
My observation is that space-using people tend to be like "OK if tabs make you happy, I guess you can do that, I'm going to keep using spaces, which I prefer because of (reason X Y and Z)." And tabs-using people tend to be like I WILL NOW LECTURE YOU ON WHY TABS ARE OBJECTIVELY SUPERIOR AND I WILL NEVER STOP. I CAN'T BE BARGAINED WITH, I CAN'T BE REASONED WITH, I DON'T FEEL PITY OR REMORSE OR FEAR. AND I ABSOLUTELY WILL NOT STOP, EVER, UNTIL YOU ARE DEAD.
Backspace, on the other hand, deletes a single character and not a single level of indentation. Arrow keys, similarly, move by characters and not by levels of indentation. So, there's still a reason to use tabs.