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
-
watzon46248yBecause sometimes different editors display tabs differently or different people have their tabs set to different sizes. Spaces are consistent throughout
-
ingvarorn318yI don't really mind the slight difference in "tab sizes", as long as the code is readable
-
ingvarorn318y@csessh good thing I don't code in Python then ! 😉
I do make sure I'm consistent tho and since I've only worked alone it hasn't been a problem for me yet -
elazar10308yIf you work alone you can avoid indentation completely. The debate is about communication with other people.
-
fyroc58758yExcept that people who usually use spaces do this...
if (var){
var foo = true;
var bar = false;
var steve = false;
} -
elazar10308y@farmerhands you are talking about the key, right? Because the visual width of tab is 8, according to the standard (and Python compilers)
-
Xevion1578yAll the code editors i use maps the tab button to 4 spaces. They also make sure that the lines always start at the correct indentation.
So I can just press tab once and get the benefit of space. I don't even see why this is still an issue being argued over. -
keerthi1088ywho else saw the episode of silicon valley where Richard dumps a girl coz she uses spaces over tabs and prefers vim over Emacs 😂😂
-
use tab or space depends whether you are overweight or underweight.
if u want to loss weight, hit space 4 time or may be 10 n drink 1 cup coffee. if u want to gain, 4 cups of coffee or 10 n 1 tab.
Related Rants
Why do people use spaces over tabs?
Tabs are awesome.
undefined
tabs
spaces