views:

234

answers:

2

I'm using guidelines right now, but I do not think there is any way to disable them for certain projects (my project with tests).

In general, how do you reconcile long, descriptive test method names with a line length limit for non-test code (both of which I think are good)? If you feel the same way and have solved this, what solution do you use?

+4  A: 

We accomplish it by dropping the line length limit for all our projects that are not developed in a 1980s green screen environment. We instead use the full power of our 21st century high resolution LCD displays, bitmap screen modes and powerful IDEs to make source code that is descriptive and easy to maintain, rather then designed to fit into the screen and memory footprint of a machine whose RAM is measured in KBs.

(And then we beat the guy advocating line length limits and 3 letter variable names with a pointy stick)

David
+1 Ha! (also true)
Chris Ballance
Greater than about 100 char lines causes problems in side by side diffs even on large res monitors. I see the 80 char limit as an elegant width from a more civilized age
rq
@rq that's why horizontal scrollbars were invented
Rex M
I've reviewed code where I had to constantly horizontally scroll the diff to look at the differences. Not fun.
Ogre Psalm33
Most modern IDEs have a word wrap feature. While the word wrap in Visual Studio is not my favorite (I prefer the word wrap in Crimson Editor where wrapped lines are given a slightly different background color, rather then Visual Studio's little glyph) it still gets the job done.
David
+1  A: 
entens