Code Quality

"I hate the fact that I have to produce a report of lines of code. I totally agree that I should be judged on the quality of code that is produced and not how many lines it took. In fact I've gone as far as intentionally written more lines to solve a problem when I knew it would take less. My boss tells me that it was the best code I've ever written??!? Because it was 200 lines as opposed to 20. WTF?!"
[Jason Tucker]

Yah, I think what we need are some better code metric tools. Things like FxCop are heading in the right direction for standards compliance, but you still need a way to measure code quality. Hopefully the VS.NET team will come up with something. If the Word team could come up with ways to automatically grade the quality of a given document, I'm sure the VS.NET team could do something simliar for code. Start out by measuring repeated lines of code, then coupling between systems, etc... can't be too difficult.

No Comments