Ask HN: When you code, do you use tabs or spaces?
https://news.ycombinator.com/item?id=6934305I've been reading many many internet jokes about the war on tabs or spaces but I never heard any single explanation why one is better than the other from any serious programmer.
I'm not a coder, I'm more designer/UX coder which loves to code. When I started frontend coding I always used tab spacing and view hidden chars and that was the way to do it in the past if you wanted to do clean HTML/CSS code. But since the first release of Textmate and Ruby on Rails, I've been instructed by seniors coders to use spaces and I never asked why. When I raised the question all I've got was some digressive rant.
These are my questions:
1. Your preference and why. 2. What do you think it is the correct one. 3. In your company did they tell you what to use? is there any coding guideline?
Thanks for sharing.