The Relicans

Discussion on: Tabs or Spaces?

wyhaines profile image
Kirk Haines

I used to use tabs. Now I use spaces. However, most editors make it easy to switch between them, and to customize indentation regardless of what one uses, so it is pretty invisible most of the time.

As for why -- I used to use tabs because it was fewer keys to hit, and tabs are a character that are intended to encode indentation.

I switched to spaces because tabs sometimes cause formatting issues of their own, whereas spaces are more predictable, and because I graduated to just using my editor features (whether it be vim or a GUI editor) to manage the issue for me. It makes tabs the width that I prefer. It makes spaces do the same thing. If I change something, the editor figures it all out and handles all of the tedious stuff itself, so all that I have to do is to type my code.