|
|
|
|
|
by KiwiCoder
4614 days ago
|
|
Code review ranks just behind design review in value (cost/time savings). In fact code reviews are so beneficial that if I was working on a solo project I would either pay for them to be done or review the code myself after a suitable cooling off period, depending on what I was working on. On the other hand, I have also witnessed sloppy, lazy code reviews that catch nothing except the occasional typo. This amounts to an unjustifiable waste of time. Fortunately, it is easy to tell a good code reviews from bad by tracking defect discovery and digging into review comments as needed. One thing that code review catches that nothing else does is code that is poorly written but functional (i.e. passing tests). The example I always trot out is for ( int i=0 ; i < this.MyControl.TabPages.Count ; i++ )
{
this.MyControl.TabPages.Remove ( this.MyControl.TabPages[i] );
i--;
}
This code works according to spec, passes all the tests, but is bordering on unmaintainable. At best it's a WTF.(Written up here: http://cvmountain.com/2011/09/whats-wrong-with-this-code-rea...) |
|