So why do web devs love space indentation so much?
-
So why do web devs love space indentation so much? I had to explicitly enable tabs in the linter config and there are a few edge cases where formatting breaks because of them.
-
So why do web devs love space indentation so much? I had to explicitly enable tabs in the linter config and there are a few edge cases where formatting breaks because of them.
@volpeon i think people are just used to it because it's the default in prettier
-
So why do web devs love space indentation so much? I had to explicitly enable tabs in the linter config and there are a few edge cases where formatting breaks because of them.
I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary
-
So why do web devs love space indentation so much? I had to explicitly enable tabs in the linter config and there are a few edge cases where formatting breaks because of them.
@volpeon@icy.wyvern.rip a bunch of software renders tab widths inconsistently and/or shits itself when it sees them, and it's not just Web stuff
plus you can rebind the tab key to four/two spaces in your IDE so it's the same amount of keystrokes -
I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary
@volpeon@icy.wyvern.rip maybe someone wanted less width but couldn't be bothered to configure their editor
-
I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary
@volpeon TABS TABS TABS
I love me some tabs
-
@volpeon@icy.wyvern.rip a bunch of software renders tab widths inconsistently and/or shits itself when it sees them, and it's not just Web stuff
plus you can rebind the tab key to four/two spaces in your IDE so it's the same amount of keystrokes@volpeon@icy.wyvern.rip I used to be a tab person until I got fed up of it
-
@volpeon@icy.wyvern.rip maybe someone wanted less width but couldn't be bothered to configure their editor
@tay@transfem.social @volpeon@icy.wyvern.rip sentencing this hypothetical person to 32-wide tabs (not spaces) only
-
I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary
@volpeon id say skill issue, they don't like that the standard tab width is 8 chars, and don't know that it can be set to something different
-
So why do web devs love space indentation so much? I had to explicitly enable tabs in the linter config and there are a few edge cases where formatting breaks because of them.
-
I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary
@volpeon@icy.wyvern.rip spaces grant more flexibility in the width of whitespace and some people prefer 2 spaces instead of 4, particularly for JavaScript.
It became moot when text editors started turning tabs into spaces anyway.
Anybody out there actually pressing space four times at the start of every line is a psychopath -
I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary
@volpeon yeeeeaaah ! No more spaces ! No more tabs ! EVERYTHING ON THE SAME LINE
WE GONNA HAVE SO MUCH FUN
YAHAAAAAAAA -
@volpeon@icy.wyvern.rip spaces grant more flexibility in the width of whitespace and some people prefer 2 spaces instead of 4, particularly for JavaScript.
It became moot when text editors started turning tabs into spaces anyway.
Anybody out there actually pressing space four times at the start of every line is a psychopath@Baa@mk.absturztau.be @volpeon@icy.wyvern.rip
i prefer tabs for scope indentation.
honestly you can tell that a tab can be whatever width you want (in any good text editor) - even 0 width. (or 2, 3, 4, 8 - i saw those four widths in the wilds btw)
plus, depending on the amount of width, you save a considerable amount of bytes. -
@volpeon@icy.wyvern.rip I used to be a tab person until I got fed up of it
@jessew I'm pretty fed up of my boss insisting to use 2 spaces when I want 4. Tabs allows us both to have what we want, spaces don't.
-
I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary
@volpeon Do a search on "tabs", "spaces" and "holy war" and you ought to find plenty of background reading, e.g. https://www.jwz.org/doc/tabs-vs-spaces.html. This predates web dev considerably.
-
I don't even understand how it came to this. When I learned programming, it was tabs. Then web dev happened and I don't see a big improvement that would've warranted this. On the contrary
@volpeon@icy.wyvern.rip No idea, but everytime i use
cargo fmt
I make a rustfmt.toml and tell it to use tabs for indentation, and that's not even because I disagree with the 4 spaces indentation width. -
@jessew I'm pretty fed up of my boss insisting to use 2 spaces when I want 4. Tabs allows us both to have what we want, spaces don't.
@volpeon@icy.wyvern.rip micromanagement? β
β
-
@volpeon@icy.wyvern.rip micromanagement? β
β
@jessew He's very hands-off, so definitely no. β
β It's just that we work on the same project, and we simply have different preferences on the indentation.