All lessons in Software Engineering: Programs, Systems, and Maintainable Software

Code Review, Change Risk, and Maintenance

Review a patch using behavior, invariants, tests, compatibility, and maintenance cost.

35 minutes · Members lesson · preview

What you will learn

  • Review a change against behavior, invariants, tests, and compatibility.
  • Separate blocking correctness concerns from suggestions about style.
  • Write a change description that supports future maintenance.

A patch is only forty lines long, but it changes how returned loans are retained and how reports count them. Another patch adds two hundred lines of tests without altering runtime behavior. Line count alone does not describe change risk. Review the consequences and the evidence, then inspect the code that produces them.

Code review is a collaborative technical evaluation. Its purpose is to improve the change and the maintainability of the system, not to prove that the reviewer would have written every line differently.

Choose another lesson