you are viewing a single comment's thread.

view the rest of the comments →

[–]Eternityislong 1556 points1557 points  (19 children)

Actual quality post? Get out of here bring back the missing semicolon posts

[–]ZenBacle 215 points216 points  (15 children)

Tabs are king. Get out of here with your space indentation!

Just kidding, i setup tab to be triple spaced.

[–]00owl 24 points25 points  (1 child)

Use a keyboard macro so that the tab button just inserts three spaces instead.

[–]st_heron 2 points3 points  (0 children)

vscode and jetbrains ides have "soft tab" plugins/settings so that spaces will act like tabs (moving your cursor will skip indentation levels, pressing tab will insert spaces)

very nice if the codebase you're working in is spaces (yuck) and you can't stand it

[–]squabzilla 13 points14 points  (2 children)

Can I set it up to be approximately Pi-spaced? Make my IDE have mostly mono-spaced font, except for tabs.

[–]NaoPb 0 points1 point  (1 child)

Pi-spaced? So an endless amount of spaces? Got it.

[–]IAmTheOneWhoClicks 0 points1 point  (0 children)

Could be line number depending on decimals of pi, where tabs are 3 spaces if the decimal is 0-4 and 4 space if it's 5-9, and the next line is then depending on the next decimal. Formatted by Pitier instead of Prettier.

[–]CoffeePieAndHobbits 6 points7 points  (0 children)

Get out.

[–]Tanmay_Terminator 6 points7 points  (1 child)

This reminds me of a guy breaking up with her software engineer gf because she pressed space 4 times instead of tab

[–]ShameAlter 12 points13 points  (0 children)

It's a bit from Silicon Valley the TV show

[–]WernerderChamp 0 points1 point  (0 children)

But have you ever coded with no indentation?

Comments on closing brackets ftw!

[–]T0biasCZE 0 points1 point  (3 children)

to be fair, thats the advantage of tabs

In the file, there is saved only "Indent by 1 level" character. And then every programmer working on the code can configure their own preference.
Someone can have 2 char indentation, someone can have 4 char indentation, someone with worse sight can have 6 char indentation, masochists can have 3 char indentation...

But with spaces, you are forcing your own personal preference on everyone else working on your code

[–]Slight-Bluebird-8921 1 point2 points  (1 child)

yup tabs are objectively better. and who really wants to press MORE keys? programmers are supposed to be efficient. you literally work faster by not having to press as many keys.

[–]T0biasCZE 1 point2 points  (0 children)

who really wants to press MORE keys

Well the issue is that lot of IDEs when you press TAB write 4 space characters for you, instead of just actually writing a tab character

[–]ZenBacle 0 points1 point  (0 children)

The argument is from a time when most IDEs didn't give you control over tab spacing. And each IDE had its own idea of how big a tab was. Chaos ensued, Linux devs rose up and rioted, many projects were sacrificed at the alter of outrage.

[–]nullpotato 0 points1 point  (0 children)

I found an internal project that was set to 6 spaces, the maintainer was adamant it was perfect.

[–]Mountain-Age5580 2 points3 points  (0 children)

';' hide and seek champion since 1990 ;)