www <> writes:
> I feel this is crazy!!! Since the reviewer has to "read" the original
> code author's mind and make sure the code does what the author wants
> and no hidden surprises!
If ESP is required to divine the code's purpose, that's already the first
sign of a problem. There should be:
a. A written specification
b. Unit tests
c. Comments within the code itself
Furthermore, it shouldn't be delayed until thousands of lines of code have
already been written. It's an ongoing, continuous process, not a checklist
item that must be checked once before shipping. In "pair programming", this
actually involves two programmers sitting in front of one keyboard, working
together and reviewing one another's code.
> How this could be possible?! This would be
> extremely time consuming and nobody knows better about the code than
> the author.
What if the author gets hit by a meteor? Code *must* be readable and main-
tainable to be useful. If the reviewer can't read the code, it fails the
code review.
> My boss says this is very common practice in software engineer development.
Your boss is correct.
sherm--
--
Web Hosting by West Virginians, for West Virginians:
http://wv-www.net
Cocoa programming in Perl:
http://camelbones.sourceforge.net