|
|
|
|
|
by hermitdev
2547 days ago
|
|
Personally, I prefer hard tabs to spaces. The rationale is simple: every single dev I've worked with has had a separate preference on how many spaces ahould be used for an indent. I've seen 2, 3 and 4 commonly used. If you use hard tabs, every dev can set their editor to their indentation of choice. If you use spaces, that freedom is lost. I say this as a currently predominantly Python dev, where spaces are encouraged and recommended, but I disagree as stated above. Currently, I prefer a 2 space indent after previously using a 4 space indent for decades. |
|
Practically, I eventually got fed up explaining this. Spaces only is easier to explain, because there is very little to get wrong with "spaces only".