« The Word "Hacker" | Main | What I'm Reading »
Microsoft Code Style Guidelines

Brad Abrams just posted some of the internal .NET Framework coding style guidelines on his blog. Overall the guidelines are very reasonable and I wouldn't be surprised if these standards help resolve some internal disputes at other companies. I do have a few points of contention, however.

Using tabs instead of spaces saves three presses of the backspace key. That's literally tens of thousands of key presses a year that RSI-afflicted developers could easily avoid.

I also prefer not putting open braces on their own line. If you've ever spent time coding on a laptop with a 1024x768 screen, you know how valuable that vertical real estate is.

No matter what coding style you prefer to use, Visual Studio 2005 (Whidbey) has all sorts of code formatting options that can be used to bring your code up to a common standard. You can even save your options to a shared file to make sure everyone on your team is applying the same formatting.

Posted by JoshC at January 27, 2005 8:31 AM
Trackbacks
TrackBack URL for this entry:
http://www.joshchristie.com/weblog/mt/mt-tb.cgi/81

Listed below are links to weblogs that reference 'Microsoft Code Style Guidelines' from Josh Christie's Weblog.
Comments
Post a comment









Remember personal info?