Lee Packham’s Corner
The rants of a software busy body
  • Home
  • Gallery
  • About
  • dtrace Stuff

The importance of tabs

Programming Add comments

This sort of thing drives me barmy - why can’t people set a standard on tabs?

The above snippet is taken from eJabberd (a Jabber Server written in Erlang). Notice how some lines are soft tabs, others are hard. The causes havoc when dealing with merging in source control (I don’t care if you use a new fangled Git approach). Whitespace (both tabs and line endings) must be consistent on programming projects. Much pain ensues if they are not!

Personally I set rules in SVN commit hooks. This means that if a developer has anything ‘bad’ like Windows Line Endings on a Python project, then it is dealt with accordingly.

Saves a lot of merge pain!


September 27th, 2008 |

Leave a Reply

  • Friend's Blogs/Sites

    • David Rickard
    • Lloyd Pick
    • Michael Smith
  • Recent Posts

    • Is it any wonder the world is infested with spam?
    • The Wowhead Christmas Wallpaper
    • Unibody Macbook Pro constantly waking up
    • How Warcraft reigned supreme in 2008
    • CRY vs. DRY
  • Archives

    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • November 2007
    • October 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • January 2007
    • December 2006
    • October 2006
    • September 2006
  • Recent Tracks (last.fm)

    • Nickelback – Gotta Be Somebody 16 hours ago
    • Nickelback – Burn It to the Ground 16 hours ago
    • Nickelback – Something in Your Mouth 16 hours ago
    • Lisa Miskovsky – Still Alive (The Theme from Mirror's Edge) (Paul Van Dyk Mix) 17 hours ago
    • The Prodigy – Charly 20 hours ago
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
Copyright © 2009 Lee Packham’s Corner All Rights Reserved
RSS XHTML CSS Log in
Wp Theme by n Graphic Design
Powered by Wordpress