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
-
This could all be cleared up if the spaces people just admitted they've been idiots and we could move on to shaming people who prefer Windows over Linux/Mac.
-
@Ratwerks I like your suggestion, but you made a typo, tabs is not spelled spaces
-
@Ratwerks it's weird, right? How come all standards in PHP, Python, and basically everything else use spaces instead of tabs? And they are even getting paid 10% more according to a Stackoverflow survey.
-
bondman2447y
-
@RTRMS Found the JS dev.
I personally use 3 spaces for indentation, a 0x0007 (beep sound) at the end of each line as a nice special effect, and a unicode record separator 0x001E between functions.
I'm actually not kidding about the 3 spaces — large Haskell project I contribute to uses that (together with standard alignment indentations), and it's good practice to adjust to the existing code & team... while I wouldn't pick it for a fresh project myself, I actually like it... it's nicer on the eyes than 2 or 4. -
@bittersweet and that's why tabs should be the way to go. Going from 4 to 3, from 2 to 3, or whatever else, wouldn't require one to commit a change where all of the file's lines were modified and to fuck up every possible diff made in the future.
Related Rants
Really annoyed by the endless tabs vs spaces discussion.
From now on, I use 4 tabs as indentation.
undefined
tabs vs spaces