Over on ISerializable, a recent blog entry covered a neat hack for Visual Studio that shows a guide so you know when you’re reaching 80 columns.

One commenter asked, Why?

Speaking purely for myself, I limit all of the code I write to a 99 character margin. Now, I’m sure you’re saying that 99 has to be even more arbitrary than the 80 character limit - but, there is a method to my madness.

When printing source code for review and/or reference, 99 characters fit across an A4 page without wrapping - with an allowance for 4 digit line numbers - when printed in Courier 9pt.

Since I prefer to have my code reviewed by a peer - a great way to catch bugs and blunders - I tend to print my code more often than not.

So, do you use a right-hand margin for your code, or not? Why? Can you justify your decision to a peer? Try it. I dare you.

Comments

blog comments powered by Disqus
Next Post
Faster Memory Management  18 Dec 2005
Prior Post
Avoiding Microsoft Project  03 Aug 2005
Related Posts
Browsers and WSL  31 Mar 2024
Factory methods and functions  05 Mar 2023
Using Constructors  27 Feb 2023
An Inconvenient API  18 Feb 2023
Method Archetypes  11 Sep 2022
A bash puzzle, solved  02 Jul 2022
A bash puzzle  25 Jun 2022
Improve your troubleshooting by aggregating errors  11 Jun 2022
Improve your troubleshooting by wrapping errors  28 May 2022
Keep your promises  14 May 2022
Archives
August 2005
2005