78
you are viewing a single comment's thread
view the rest of the comments
[-] Nemo@slrpnk.net 25 points 4 days ago

Is a tab four spaces or two?

[-] mrcleanup@lemmy.world 23 points 4 days ago

A tab is not made of spaces, it goes to the next tab stop, which is as big as you set it to be.

[-] Nemo@slrpnk.net 6 points 4 days ago

This isn't your argument, neighbor.

[-] mrcleanup@lemmy.world 4 points 3 days ago

I'll just wish you good day then.

[-] neidu3@sh.itjust.works 13 points 4 days ago

Neither, it's an actual tab character

[-] stoly@lemmy.world 3 points 3 days ago

This is the correct answer. Also it's going to depend on whether your environment (i.e. is it an actual word processor vs. a text editor?) allows for margins and tabs to be set.

[-] m_f@discuss.online 16 points 4 days ago

Let's all compromise on three spaces

[-] owenfromcanada@lemmy.ca 8 points 3 days ago

Can we make it π spaces? It's such a nice number.

[-] Nemo@slrpnk.net 14 points 4 days ago

recordscratch.wav

[-] echindod@programming.dev 8 points 4 days ago

Ouch. This hurts. This hurts so much.

[-] SamuraiBeandog@lemmy.world 9 points 4 days ago* (last edited 4 days ago)
[-] owenfromcanada@lemmy.ca 9 points 4 days ago

Hi, it's your friendly nano user here to remind you that it's actually 8.

[-] Nemo@slrpnk.net 7 points 4 days ago
[-] SamuraiBeandog@lemmy.world 5 points 4 days ago

No it's not!

Wait...

[-] owenfromcanada@lemmy.ca 3 points 3 days ago

Hot take: it depends on the language.

  • Markup? 2 spaces
  • Procedural? 4 spaces
  • Natural? 8 spaces
[-] rumschlumpel@feddit.org 4 points 4 days ago* (last edited 4 days ago)

Behold: HUML, a markup language so opinionated that it forces its users to use an indentation of exactly 2 spaces https://huml.io/specifications/v0-1-0/#indentation

Honestly I like the rest of the specification and being opinionated definitely has its advantages, but I hate using 2 spaces for indentation. Maybe the people who were using tabs for indentation were actually on to something ...

[-] owenfromcanada@lemmy.ca 4 points 4 days ago
[-] Nemo@slrpnk.net 5 points 4 days ago

IDEs are for script kiddies, real programmers use vim.

[-] owenfromcanada@lemmy.ca 6 points 4 days ago

Nah, real programmers use echo, cat, and pipes

[-] neidu3@sh.itjust.works 6 points 4 days ago* (last edited 4 days ago)

Nah, real programmers use a magnetized needle and a steady hand

[-] ieGod@lemmy.zip 1 points 3 days ago

Vim is ok, useful when you don't have an ide handy, but making a complex multiplatform distributed system across multiple teams and repos in such a limited application is just bonkers. Downright lunacy.

this post was submitted on 21 Oct 2025
78 points (100.0% liked)

Casual Conversation

1453 readers
49 users here now

Share a story, ask a question, or start a conversation about (almost) anything you desire. Maybe you'll make some friends in the process.


RULES

  1. Be respectful: no harassment, hate speech, bigotry, and/or trolling.
  2. Encourage conversation in your OP. This means including heavily implicative subject matter when you can and also engaging in your thread when possible.
  3. Avoid controversial topics (e.g. politics or societal debates).
  4. Stay calm: Don’t post angry or to vent or complain. We are a place where everyone can forget about their everyday or not so everyday worries for a moment. Venting, complaining, or posting from a place of anger or resentment doesn't fit the atmosphere we try to foster at all. Feel free to post those on !goodoffmychest@lemmy.world
  5. Keep it clean and SFW
  6. No solicitation such as ads, promotional content, spam, surveys etc.

Casual conversation communities:

Related discussion-focused communities

founded 2 years ago
MODERATORS