Quote:
Originally Posted by GrouchyAdmin
You're the first self-proclaimed programmer I've ever seen to bitch about spaces vs tabs in favor of tabs. The first. I've been doing this for over 15 years, and HTML beautifying for about 12. Congratulations!
|
Congratulations for what? I've been programming for almost twice that by the way... Not that I see the relevance.
Why do you think they invented the tab key in the first place? For indentation. What's the space key for? For separating words and sentences (tokens in code parlance).
Try changing the indentation on a block of code when it has spaces instead of tabs. Both vi and Textmate don't like it very much. I hate 2 spaces. What are you still using DOS with an 80x25 character display? Change your screen resolution and font size. 2 spaces is like a few millimeters. Barely even noticeable that it's indented. If you use tabs you can let the user control tab sizes, thus letting the user choose their preference. Congratulations for making it really difficult for me to notice the indentation.
Gee, let me hit space 4 times to indent instead of tab once. Want to go back, now I have to hit delete multiple times. Congratulations for wasting my time.
If I'm editing HTML code and I hit enter to create a new line and then hit tab to indent... well it indents different distance from the code below that should be at the same indentation level. Congratulations for fucking up my indentation.
If I want to change the indentation and highlight a block and tell it to unindent, guess what, it only goes to the left 1 space instead of 1 indentation level. Congratulations for wasting my time yet again.
BTW, I used to use spaces about 15 years ago when I programmed in DOS. It made sense back then because 8 spaces for tab was huge. But that's not the case anymore. Almost nobody uses 8 spaces for tab and screen resolutions are much higher now. A wise UNIX teacher taught me to use tabs and that was some of the best advice I have ever been given.