Slide 1

Slide 1 text

Code Reviews "Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald E. Knuth. Dev.Talk June 2016 Thomas Mentzel

Slide 2

Slide 2 text

Everyone should do code reviews.

Slide 3

Slide 3 text

Code Review Nightmares • “One day implementing a feature and now three days and counting on the code review.” - Nemanja Trifunovic • “...they dilute the engineers sense of ownership of his work” - Fran Porretto • “Every code review I’ve been in has been a complete waste of valuable development time. It usually turned into ‘Why did you do it this way? My way is better…’ “ - Kevin Marois

Slide 4

Slide 4 text

The Benefits of Code Review •You write better code when you know it will be reviewed •A second (or third, or fourth…) set of eyes will help spot defects •More than one person understands your code •It’s a great way to learn more about the codebase •It will make you a better developer

Slide 5

Slide 5 text

What to look (out) for •Bad Design •Lack of clarity •Lack of conformity (→ Clean Code) •Performance hazards → Create your weekly/monthly checklist

Slide 6

Slide 6 text

What’s not important? •Optimization •Skill and experience gaps •Personal style

Slide 7

Slide 7 text

How to sell code reviews to others •Not as hard as selling unit tests •Bottom-up approach •Just do it

Slide 8

Slide 8 text

Code reviews are for everyone •Small, medium and large companies •Open and closed source •Pros or amateurs •Local or remote •Solo projects are no exception

Slide 9

Slide 9 text

Summary •Just do it •Weekly/Monthly checklist •Focus on small improvements

Slide 10

Slide 10 text

References •https://help.github.com/articles/using-pull-requests/ •https://github.com/GitTools/GitVersion/pull/661 •https://github.com/Humanizr/Humanizer/pull/386 •https://github.com/jgrassler/mkdocs-pandoc/issues/5

Slide 11

Slide 11 text

Thank You Time for Questions!