Michael Flanakin's Web Log

Comments and complaints on software and technology in general

  Home  |   Contact  |   Syndication    |   Login
  159 Posts | 18 Stories | 181 Comments | 497 Trackbacks

News

This weblog is no longer being maintained. For the latest, check out www.michaelflanakin.com!

Article Categories

Archives

Post Categories

Image Galleries

Miscellaneous

One thing that I've always seen, but never understood was the use of spaces over tabs. Does anyone have any good reasons for this? I prefer tabs because they are easier to use. For instance, if I need to delete an indention, I press backspace. If I need to move left one indention, I press the left arrow...both ONE time, not four. Different editors work in different ways, but I think that tabs completely ensure the same functionality. If it's a tab, it's treated the same way, no matter what.

One person mentioned that when you open code in a normal text editor, like Notepad, you get huge spaces. True, but how much do you use Notepad? If you use notepad, then you're crazy. There are a ton of good tools to edit all kinds of code. They can do all kinds of cool things.

So, I'm left with my quandry: Why do most standards include the mandatory use of spaces instead of tabs?

posted on Monday, December 15, 2003 9:32 AM

Feedback

# re: Coding Standards 12/15/2003 6:51 PM Shannon J Hager
I use notepad.

but I also don't care that the tabs are wider in notepad, it's still a uniform tab. using spaces messes me up because everyone uses a different of spaces.

# re: Coding Standards 12/16/2003 3:17 PM Leon Bambrick
it must be an olde worldian hangover from the times when some editors couldn't display tabs (and would display ugly little black squares if you pasted a tab in).

tabs v spaces definitely is something that a standard has to cover (as i'm sure you agree) - the worst side effect of missing this one out is getting a lot of false deltas in your source tracking system.



Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: