Code Review: Building a sustainable community to talk about coding
This slide deck discusses different types of code review and contains useful information on how to start a group and things to think about when reviewing code
of time coding • Very little formal education • We just talk about the results • Goal: Build a community to discuss coding • If you supervise students - bring this to your meetings • If not - start a group • Participate in code review of open source online projects 3
coding • Get help thinking through design • See different coding styles/approaches • Learn best practices • Learn about new packages and methods • See all levels of code • Know who to talk to • Collection of examples 4
or less of code for 1 hour • Everyone should be encouraged to present • Moderate discussion • Don’t get hung up on stylistic choices • Avoid stating opinion as fact • Don’t shame raw code • Be careful of assumed knowledge (e.g. jargon or tools) 9
the code perform as expected? • Are coding guidelines followed (e.g. PEP-8)? • Is the code easy to read and understand? • Is the code properly documented (e.g. doc strings, references to origin of algorithms)? • Is the code written as efficiently/flexibly as it should be (e.g. hard coded values, use of functions and classes, use of objects)? 10
• Go to Files Changed • Select the PR corresponding to your group number • Look over code on your own (5 min) • Talk about comments in group • Add group comments to your PR • Talk about as a group