From the course: Programming Foundations: Conducting Code Reviews

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Prepare code for review

Prepare code for review

From the course: Programming Foundations: Conducting Code Reviews

Start my 1-month free trial

Prepare code for review

- [Instructor] Before opening a pull request, pre-reviewing your code changes can be very helpful so that your reviewers can spend less time on formatting suggestions, and more time on the design and implementation of your changes. In pre-reviewing code, you should act like you didn't write the code. In other words, you should review your own code as firmly as you would review someone else's code. The code changes should do what they are meant to do for the application. In the case of our exponentiation feature, you should make sure the calculator can actually perform exponentiation. You should also look at the way you implemented your code. Is the implementation correct? Is that the simplest and most readable solution? Does the way you implemented this change adhere to the coding standards? As you review your code, you'll want to make sure you remove any extra white space or extra comments you may have added in. This especially comes into play if you had one idea for implementing the…

Contents