|Just another Perl shrine|
Interesting. In 10 years of programming, I've never encountered someone who uses spaces to indent code. I'm truly shocked by the number of people here who use spaces.
I've not taken many CS clasess, just one here and there as required by work (and none at the same college). All of them wanted the code indented and wanted tabs used.
To me tabs offer 3 things that spaces don't:
1) smaller file size
2) easy to change the with in the editior by just changing the location of the tabstops.
3) who the heck is going to want to count out 16 or 32 spaces when you can just hit tab 2 or 4 times?
Thoses are my reasons. I'm sure other people will have other reasons.
The more interesting thing about this thread is the strong feeling it seems to have evoked. I really don't understand it. If your shop uses spaces, use spaces. If it uses tabs, then use tabs. If you're lucky and work in a small one man shop, then use whatever the heck you want or maybe don't even indent. This shouldn't be such a big deal.
Let's all take a deep breath and count to 100 before anyone makes another post.