Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
ojrask2915y4 spaces or 1 tab is the absolute minimum. 2 spaces is asking for trouble, and should be illegal.
-
Using spaces instead of tabs is an accessibility nightmare. Do others a favor and just use tabs, please.
-
ant0ny355yI actually prefer 2 over 4, I find 4 is too spread out. But hey, personal preference. Editors nowadays tend to sort it all out for you though, displaying whatever you prefer.
-
@ojrask yeah I don't see many people who use it, somehow people always choose even number of spaces. 2 is not enough and 4 takes to much space on a line.
While I prefer tabs over spaces for indentation, I usually don't mind using spaces as this is often decided project-wide(or even company-wide) by powers out of my reach and the people also normally decide to intend by the reasonable 4 spaces.
However, now I am working on a project with 2 spaces indentation and oh boy, what a pain it is to write any nested code.. am I really the only one with this problem?
rant