629
fixed rule (lemmy.blahaj.zone)
you are viewing a single comment's thread
view the rest of the comments
[-] ToastedPlanet@lemmy.blahaj.zone 6 points 10 months ago

Only if a person's machine is set to a tab size of four spaces. By this logic, we would need eight spaces for the people with a larger tab size of eight on their machines so they could be 1:1. Minimizing horizontal space is ideal as not everyone has huge horizontal monitor space to work with. But, everyone has infinite vertical space with scrolling.

[-] brown567@sh.itjust.works 14 points 10 months ago

I think they mean the word 'tabs'

[-] ToastedPlanet@lemmy.blahaj.zone 3 points 10 months ago

oh lol, I missed that =p

[-] ChairmanMeow@programming.dev 4 points 10 months ago

If your code takes up so much horizontal space with 4-space tabs, you're putting too much on one line or indenting too deep. 4-space tabs keeps your line length manageable.

[-] kryptonianCodeMonkey@lemmy.world 2 points 10 months ago

If you have to nest more than 2 layers, rewrite your code.

[-] ToastedPlanet@lemmy.blahaj.zone 2 points 10 months ago

Or you're using four spaces per tab, just throwing that out there. =p

this post was submitted on 10 Feb 2024
629 points (100.0% liked)

196

16732 readers
2436 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 2 years ago
MODERATORS