Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upWhy spaces instead of tabs? #622
Comments
This comment has been minimized.
This comment has been minimized.
|
Duplicate of #58 |
This comment has been minimized.
This comment has been minimized.
|
#58 is not just closed, but also locked (after just 6 comments). So no debate, right? It is also so funny how #58 ends:
I should not care about tabs vs spaces because you authors already did for me, right? IMHO you should have chosen any other name for this library. This is not the "standard" of anything but the way you authors code, nothing else. |
This comment has been minimized.
This comment has been minimized.
|
I'll just leave this here: https://www.youtube.com/watch?v=SsoOG6ZeyUI You're right that tabs have some benefits. Spaces have some benefits too. The main issue with this topic (and why the previous issue was locked) is that this is not something that the maintainers of You have the whole rest of the internet to debate the merits of spaces vs. tabs. This is not the place, sorry. |
feross
closed this
Sep 14, 2016
This comment has been minimized.
This comment has been minimized.
|
I already knew that video, so nice :) OK, I just assume
That's the only rationale I've found regarding spaces benefits: none (or undefined). |
This comment has been minimized.
This comment has been minimized.
|
The reason that |
This comment has been minimized.
This comment has been minimized.
|
The two arguments in favor of spaces in that post are mainly wrong: Inter-Line AlignmentEven when I use TAB for indentation, I do NOT use TAB for "inter-line alignment" but spaces. That's not "indentation" but "text decoration". Line Length RecognitionWell, a problem if (as the post states) someone sets a virtual 8-space!! width for TAB... |
This comment has been minimized.
This comment has been minimized.
|
As mentioned before, I'm not interested in debating spaces vs. tabs. |
ibc commentedSep 14, 2016
Sorry, I know this is not an "issue", but I wonder why the "standard" should force me to use spaces instead of tabs for indentation.
When using spaces, I'm forcing every one else to see my code as I like. In certain monitors/resolutions 2 spaces could be a bad choice.
By using tabs, anyone can configure his text editor to display tabs with the desired visual width (for example, 2 or 4 spaces), and we all are happy.
I've been never told about a real advantage of using spaces instead of tabs.