SlideShare a Scribd company logo
How And When To Code Review
Paul Gower

@paulmgower
I’m Paul Gower.
Principal Consultant at Lunamark

@paulmgower
AGENDA
What Is Code Review1
2
3
How and When
Why Code Review
What Is Code Review
1
Father of Code Review
http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=5388086&filter%3DAND%28p_IS_Number%3A5388084%29
aka Fagan Inspections
Fagan Inspections
Good for Mission Critical Software
Code
Review
History
How and When To Code Review
Over-the-shoulder
Email pass-around
Email pass-around
Please don’t do this!
Pair Programming
Tool-Assisted Code Review
Tool-Assisted Code Review
Tool-Assisted Code Review
Tool-Assisted Code Review
Tool-Assisted Code Review
Tool-Assisted Code Review
Tool-Assisted Code Review
Tool-Assisted Code Review
Tool-Assisted Code Review
How and When
2
How NOT to Code Review
Don’t
Be This
Guy
How and When To Code Review
Reviewer: Focus on the code
Reviewer: Focus on the code
Don’t say: “You didn’t name these variables well!”
Reviewer: Focus on the code
Don’t say: “You didn’t name these variables well!”
Instead: “I don’t understand these variable
names, can you help me understand them?”
Reviewer: Be respectful
Reviewer: Find a positive point
Developer: Be humble
Developer: Prepare Before
Tips and Tricks
Less Than 200 Lines Of Code
How and When To Code Review
Less Than 60 Minutes
Less Than 60 Minutes
http://www.news.illinois.edu/news/11/0208focus_AlejandroLleras.html
Daily Code Review
Daily Code Review
http://blog.fogcreek.com/effective-code-reviews-9-tips-from-a-converted-skeptic/
Always Use A Checklist
Always Use A Checklist
http://www.codeproject.com/Articles/593751/Code-Review-Checklist-and-Guidelines-for-Csharp-De
Don’t Review What Can Be
Automated
Static Code Analysis Tools
Static Code Analysis Tools
Static Code Analysis Tools
Static Code Analysis Tools
Static Code Analysis Tools
Static Code Analysis Tools
3
Why Code Review
“
“…the average defect detection rate
is only 25 percent for unit testing,
35 percent for function testing, and
45 percent for integration testing.
In contrast, the average
effectiveness of design and code
inspections are 55 and 60 percent.”
- Steve McConnell, Code
Complete, 2004
How and When To Code Review
Before
After 2%
55%
Code Review Case Studies
Code Review Case Studies
Without
With 0.82 errors / 100 loc
4.5 errors / 100 loc
Before Code Reviews
After Code Reviews
Reasons to Code Review
How and When To Code Review
Save Money
Easier To Find
Other’s Mistakes
Use Peer Pressure
To Your Advantage
Alternative
Implementations
Knowledge
Sharing
How and When To Code Review
“
“The aim is to catch
what mistakes you can
and to get better – not
to attempt perfection.”
- Erik Dietrich,
“Creating Your Code
Review Checklist”, 2015
Review
• No more than 60 mins
• No more than 200 lines of code
• Use Static Code Analysis
• Use Check Lists
• Use A Code Review Tool
THANK YOU!
@paulmgower

http://bit.ly/cs2016-cr

More Related Content

What's hot (12)

PDF
TDD — Are you sure you properly test code?
Dmitriy Nesteryuk
 
PPTX
Geek Sync | The Five Essential Scripts for Performance Tuning
IDERA Software
 
PDF
Automated testing of software applications using machine learning edited
Milind Kelkar
 
PDF
The Whole Team Approach to Quality in Continuous Delivery
lisacrispin
 
PDF
Shift left-testing
Alan Richardson
 
PPTX
Predictive Analytics in Software Testing
Pavan Kumar Kodedela
 
PDF
Get testing bottlenecks out of your pipelines
lisacrispin
 
PDF
8 Blind Spots Often Overlooked When Testing on Mobile
Neotys
 
PDF
Translating Tester-Speak Into Plain English: Simple Explanations for 8 Testin...
Neotys
 
PDF
How pentesters and other infosec pros use Pentest tools.com
Pentest-Tools.com
 
PPTX
One More Thing: Tweaking and Embellishing Access Queries
Alan Manifold
 
PPTX
Decreasing false positives in automated testing
Sauce Labs
 
TDD — Are you sure you properly test code?
Dmitriy Nesteryuk
 
Geek Sync | The Five Essential Scripts for Performance Tuning
IDERA Software
 
Automated testing of software applications using machine learning edited
Milind Kelkar
 
The Whole Team Approach to Quality in Continuous Delivery
lisacrispin
 
Shift left-testing
Alan Richardson
 
Predictive Analytics in Software Testing
Pavan Kumar Kodedela
 
Get testing bottlenecks out of your pipelines
lisacrispin
 
8 Blind Spots Often Overlooked When Testing on Mobile
Neotys
 
Translating Tester-Speak Into Plain English: Simple Explanations for 8 Testin...
Neotys
 
How pentesters and other infosec pros use Pentest tools.com
Pentest-Tools.com
 
One More Thing: Tweaking and Embellishing Access Queries
Alan Manifold
 
Decreasing false positives in automated testing
Sauce Labs
 

Similar to How and When To Code Review (20)

PDF
Code Review: How And When
Paul Gower
 
PDF
Code Review: How and When
Paul Gower
 
PDF
Code Review: How and When - Tulsa TechFest 2016
Paul Gower
 
PDF
Code Review: How and When
Paul Gower
 
PDF
Code Reviews Inside Out
Ines Jelovac
 
PPTX
Code Reviews
phildenoncourt
 
PDF
Voxxed days 2015-hakansaglam-codereview
Hakan Saglam
 
PPTX
Code Review
R M Shahidul Islam Shahed
 
PPTX
Peering into the white box: A testers approach to Code Reviews
Alan Page
 
PDF
Code-Review-Principles-Process-and-Tools (1)
Aditya Bhuyan
 
PDF
Code Review
Lukas Rypl
 
PPTX
How to successfully grow a code review culture
Danylenko Max
 
PDF
Software Defect Prevention via Continuous Inspection
Josh Gough
 
PPT
Code Review
rantav
 
PPTX
Capability Building for Cyber Defense: Software Walk through and Screening
Maven Logix
 
PDF
How to successfully grow a code review culture
Nina Zakharenko
 
PPT
Static testing techniques
Mazenetsolution
 
PDF
On to code review lessons learned at microsoft
Michaela Greiler
 
PPTX
Expert Code Review best practices
jeetendra mandal
 
PPS
ISTQB Foundation - Chapter 3
Chandukar
 
Code Review: How And When
Paul Gower
 
Code Review: How and When
Paul Gower
 
Code Review: How and When - Tulsa TechFest 2016
Paul Gower
 
Code Review: How and When
Paul Gower
 
Code Reviews Inside Out
Ines Jelovac
 
Code Reviews
phildenoncourt
 
Voxxed days 2015-hakansaglam-codereview
Hakan Saglam
 
Peering into the white box: A testers approach to Code Reviews
Alan Page
 
Code-Review-Principles-Process-and-Tools (1)
Aditya Bhuyan
 
Code Review
Lukas Rypl
 
How to successfully grow a code review culture
Danylenko Max
 
Software Defect Prevention via Continuous Inspection
Josh Gough
 
Code Review
rantav
 
Capability Building for Cyber Defense: Software Walk through and Screening
Maven Logix
 
How to successfully grow a code review culture
Nina Zakharenko
 
Static testing techniques
Mazenetsolution
 
On to code review lessons learned at microsoft
Michaela Greiler
 
Expert Code Review best practices
jeetendra mandal
 
ISTQB Foundation - Chapter 3
Chandukar
 
Ad

More from Paul Gower (11)

PDF
Be a Better Remote Agile Team Member
Paul Gower
 
PDF
Overcoming Delay: How The Best Developers Increase Productivity
Paul Gower
 
PDF
Codestock 2019 - Build a successful remote agile team in three easy steps!
Paul Gower
 
PDF
WeRockIT 2019 - Build a successful remote agile team in three easy steps!
Paul Gower
 
PDF
Overcoming Delay: How The Best Developers Increase Productivity
Paul Gower
 
PDF
Rub Some DevOps on your NodeJS app in Azure - ScenicCitySummit 2018
Paul Gower
 
PDF
Unit Testing in Umbraco
Paul Gower
 
PPTX
Write Code For The Future You - Tulsa TechFest 2016
Paul Gower
 
PDF
Write Code For The Future You - LR Tech Fest
Paul Gower
 
PPTX
Windows 8 and Phone App Development
Paul Gower
 
PDF
Code Kata
Paul Gower
 
Be a Better Remote Agile Team Member
Paul Gower
 
Overcoming Delay: How The Best Developers Increase Productivity
Paul Gower
 
Codestock 2019 - Build a successful remote agile team in three easy steps!
Paul Gower
 
WeRockIT 2019 - Build a successful remote agile team in three easy steps!
Paul Gower
 
Overcoming Delay: How The Best Developers Increase Productivity
Paul Gower
 
Rub Some DevOps on your NodeJS app in Azure - ScenicCitySummit 2018
Paul Gower
 
Unit Testing in Umbraco
Paul Gower
 
Write Code For The Future You - Tulsa TechFest 2016
Paul Gower
 
Write Code For The Future You - LR Tech Fest
Paul Gower
 
Windows 8 and Phone App Development
Paul Gower
 
Code Kata
Paul Gower
 
Ad

Recently uploaded (20)

PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PPTX
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PPTX
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
PDF
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PDF
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
PPTX
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
PDF
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
Driver Easy Pro 6.1.1 Crack Licensce key 2025 FREE
utfefguu
 
Agentic Automation Journey Series Day 2 – Prompt Engineering for UiPath Agents
klpathrudu
 
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 

How and When To Code Review