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
-
DelError5248yNaaah, you don't.
Guy is just compensating the fact he uses spaces by wearing fancy clothes.
Me:
*Runs like hell* -
Alfer5528yKek, it's like you're paid for every character you type, then sure, using spaces over tabs increase the char count.
No seriously, i still don't get how could anyone use space over tabs, does anyone have an answer? -
Pretty much all big projects, frameworks and employers use spaces — so I use spaces (well, soft tabs).
-
codedoge6048yAm I the only who doesn't get the whole tabs-vs-spaces thing? I press the tab key and have my IDE configured to insert 4 spaces so what's the big deal. No one in their right mind presses the space bar. Also a space is a space everywhere. When I open code which uses the tab symbol the width changes depending on the editor.
-
@Alfer I used tabs for half my life, and there is only one benefit: the file size is slightly smaller. Other than that, tabs are worse. Now I am using spaces for most of my projects. When I say spaces, I mean soft tabs: I press the tab key and it inserts 4 or 2 spaces, any sensible editor allows that, as well as autoindenting etc.
The main problem is: how long is a tab? For you might be the width of 4 spaces. For others it's 2, and purists will say it's 8. Now, let's say that you want to align inline comments or variables. You are forced to use spaces as well because you can't insert half of a tab. But the amount it spaces you will use will depend on how wide is a tab for you (a width that you have to agree with your team on, or you will go crazy). With spaces that problem is gone, because a space is just width 1 always. Even more, try to make an ascii table with tabs (tabs+spaces) and now do it just with spaces. Aligning ANYTHING is always easier with spaces!
Related Rants
Apparently you make more money if you use spaces than if you use tabs
https://stackoverflow.blog/2017/06/...
undefined
space
tab