this post was submitted on 16 Jun 2025
66 points (91.2% liked)

Ask Lemmy

32563 readers
1098 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] CocaineShrimp@lemm.ee 46 points 1 day ago (4 children)

Tabs over spaces, always

... wait, you're asking in asklemmy, not programming...

Uhhh... that thing where people glue little strands of hair to their forehead in an arc

[–] CanadaPlus@lemmy.sdf.org 8 points 1 day ago (1 children)

Tabs were literally designed for indenting, as far as I can tell.

[–] dual_sport_dork@lemmy.world 2 points 20 hours ago* (last edited 20 hours ago)

Not really, surprisingly. The "tab" terminology is a hangover from the typewriter days, when pressing the tab key would move your carriage to the left (i.e. sending the typing position towards the right) to the point where the tab stop was, which may or may not have been user configurable depending on the age or fanciness level of your typewriter. On mechanical models this involved sliding a little arrowhead shaped mechanical dingus up at the top over the carriage, a skeuomorph that's still present in basically every computer word processing application even today.

This was to allow operators to easily write tabular data, i.e. tables or columns, which would be inset from the left margin by a consistent amount, and typically much further inboard than the indent at the beginning of a paragraph would be. The latter was usually accomplished with a small number of spaces instead. And this is why the key is called "tab" and not "ind" or something.

This got carried over to word processors and then to computers kind of by default. But interestingly (if you're the right kind of nerd to be interested by that sort of thing, anyway) early 8 bit microcomputers that were not envisaged with word processing or a typewriter-esque paradigm in mind conspicuously lacked a tab key. The Commodore 64 and Vic 20, TI-99, Acorn Electron, and certainly the ZX Spectrum all leap to mind.

But the original IBM PC definitely had a tab key, which was almost certainly carried directly over from IBM's Selectric typewriters. So we've had it ever since. The notion of there being a "tab character" of some greater-than-space width lent it to being used for first line indents for a while, but the prominence of HTML and its dogged insistence on collapsing whitespace -- especially at the beginning of lines -- eventually put a stop to that and caused practically everybody to switch to double line breaks to separate paragraphs instead. Except for writing code, which can involve a whole bunch of indentation to many, many levels of depth.

Indenting the starts of paragraphs was an even older hangover from printing presses, and that's another whole damn rabbit hole anyway.

[–] FoxyFerengi@startrek.website 11 points 1 day ago (1 children)

Uhhh... that thing where people glue little strands of hair to their forehead in an arc

Do you mean styling baby hairs?

[–] CocaineShrimp@lemm.ee 9 points 1 day ago (3 children)
[–] Mothra@mander.xyz 11 points 1 day ago

Thanks i hate it

[–] Cruxifux@feddit.nl 10 points 1 day ago

I also hate those.

[–] MotoAsh@lemmy.world 2 points 1 day ago

She got six eyebrows and a widows peak!

[–] BingoBongoBang@lemmy.world 4 points 1 day ago

I read an article / listened to a podcast where a visually impaired person said that tabs are much better because they can configure how wide they are rendered to better accommodate them and now In would prefer to use tabs. Still all customers i have seem to use only spaces.

[–] BeigeAgenda@lemmy.ca 4 points 1 day ago (1 children)

I am more into spaces, but as long as the indentation is done consistently i can tolerate tabs.

[–] MotoAsh@lemmy.world 2 points 1 day ago

I mean, how could using tabs not be consistent when only comparing to spaces? Seems to me like spaces give infinitely more opportunity to fuck up indentation.