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
-
HAlex27757y@Alice if your ide converts it by default this doesn't apply:
You press tab -> you get 4 spaces
You press backspace -> these 4 spaces will be removed.
Add simple as that -
HAlex27757y@Alice TBH I am pro spaces (because of the way they are visualized in the same identical way everywhere) but I don't kill myself pressing the space bar 4 times!
-
@HAlex I prefer tabs because every single person can have the indentation size set for themselves.
CSS is indented with a tabsize of 3 spaces
HTML is indented with a tabsize of 3 spaces
JSON with tabs of 2 spaces
And anything else with tabs of 4 spaces.
Im simply talking about indentation and not alignment (even though every tab indenter does it that way its still misunderstood by those space indenters). -
HAlex27757y@Codex404 I didn't know about the first 2, weird, 3 spaces? What!?? I've always used 4 spaces...
-
@HAlex for HTML I think 4 is way to much and 2 is not enough for clarity. But there are devs that always prefer 4 so thats why so many tab indenters love tabs.
Personal preference over forced indentation size. -
HAlex27757y@Codex404 got it, I find using 4 spaces in HTML great for understanding the blocks but bad if the file is longer than 20 lines.
I should probably use less spaces, thanks for the suggestion -
Btw on github ive setup everything two 2 tabs to see everything better because of the small code window.
Related Rants
People sometimes scream to everyone else that tabs are better than spaces, but they don't realize that their IDE most of the times automatically converts tabs in 4 spaces.
rant
tabs
spaces