:comfyumm: indenting code with tabs
:comfythumbsup: indenting code with spaces
:comfyhyperthink: indenting code with a mix of en and em spaces, sometimes adding zero-width spaces just for lulz

@newt I would rather press once than four times to indent.

@newt Takes four spaces to indent as much as tab once.
Granted you can tweak the width of space and tab in text editors sometimes, but if your spaces are as thick as your indents ya got something else going on.

@Paradox
>Granted you can tweak the width of space and tab in text editors sometimes, but if your spaces are as thick as your indents ya got something else going on.

what the shit are you talking about?

@newt I'm talking about you calling indenting with tabs cringe. And I'm saying most people, to get the indent they want, will either press space four time or tab once. Personally, I prefer the latter, because it's fewer button presses.
We on the same page now?

@Paradox ok.. nobody ever presses space four times. When you hit Tab, chances are, your editor inserts four spaces instead of a tab character.

Second, nobody ever changes the width of space and tab characters themselves. Usually, people change how many spaces a tab character is rendered with. That's it.

@newt Well then how many time do you press space? Or do you just have the tiniest indents known to man?

@Paradox i don't press the spacebar to indent anything. My editor inserts spaces automatically.
@Paradox it's the norm.

The whole argument isn't about what key you press, but what characters end up in the file.

Did you really think that some people indent code by repeatedly pressing the spacebar on every line? :comfyeyes:

@newt What does the character matter?
I dunno man, people have done dumber shit.

@Paradox it kinda matters in some specific circumstances.

Mostly, tabs are less flexible and can cause issues if different people have different editor configs. For example, for me a tab character can be rendered as 4 spaces, but for you it can it 8.

Few people actually use tabs these days, but they are very aggressive about it.

@newt Not sure how a tab would fuck up that bad under different configs. Sure I end up with slightly fucky indents when pasting, but it takes me very little time to adjust it.

I dunno. If that's the worst of it, I guess I don't care as much as some do.

@Paradox well.. imagine if you have a mix of tabs and spaces after different people have edited the code. And now imagine THAT, but in a language where indentation actually matters, like Python

:comfyjoy:
Follow

@newt @Paradox this is a problem specifically caused by using spaces for indentation. With tabs the editor config doesn't matter outside of the editor.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.