Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uptabs to spaces and use 2space indenting #1384
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kylejohnson
Apr 4, 2016
Member
So,
Anyway, the google doc says this:
Use only spaces, and indent 2 spaces at a time.
We use spaces for indentation. Do not use tabs in your code. You should set your editor to emit spaces when you hit the tab key.
That's just their standard, with no information on why.
While I do agree that our code is a mess of uneven tabs and spacing, why do you think we should go with spaces (over tabs)?
Would we then reject PRs down the line which use tabs over spaces? (I'd say yes)
|
So, Anyway, the google doc says this:
That's just their standard, with no information on why. While I do agree that our code is a mess of uneven tabs and spacing, why do you think we should go with spaces (over tabs)? Would we then reject PRs down the line which use tabs over spaces? (I'd say yes) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Yeah we need to force people to follow the coding style. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Linwood-F
Apr 4, 2016
Contributor
Just in the FWIW department, tabs are not always interpreted the same in different IDE's, and often "move" after a copy/paste; spaces are uniform in how they are handled.
|
Just in the FWIW department, tabs are not always interpreted the same in different IDE's, and often "move" after a copy/paste; spaces are uniform in how they are handled. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kylejohnson
Apr 4, 2016
Member
Just in the FWIW department, tabs are not always interpreted the same in different IDE's, and often "move" after a copy/paste; spaces are uniform in how they are handled.
Now that's a good reason.
Now that's a good reason. |
connortechnology commentedApr 4, 2016
step 1 of following google code guidelines. This is just the files in /src so far.