From the course: Programming Foundations: Conducting Code Reviews
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Review maintainability and design
From the course: Programming Foundations: Conducting Code Reviews
Review maintainability and design
- [Narrator] In a code review, you should review the maintainability of the code changes. One way to review maintainability is to see if the code changes are readable. Could another developer easily pick up this piece of code again and change it to something else? If the implementation includes algorithms, are they logical and easy to follow? Was this code easy to review? It should have been. This could refer to both the formatting of the code, as well as the tools used in the implementation. In reviewing, you could suggest a better name for a class, function, or variable to make the code more readable. You should also ensure that the code changes align with the coding standards and design patterns used throughout the codebase. Is there a singleton pattern, but this code creates a new instance every time? We won't go too deep into design patterns in this course, but the design of the code change should fit in with the rest of the code. If things are done a certain way throughout the…