SlideShare a Scribd company logo
<CODE REVIEWS/>
Why you should do
December 2015
WHO AM I?
Ma s Devriendt
Developer & entrepreneur
@iMa s
Image source: http://image.shutterstock.com/z/stock-photo-portrait-of-alarmed-man-99912533.jpg
CODE REVIEWS ?
Code review is systematic
examination (often known as peer
review) of a developer’s source
code.
CODE REVIEWS ?
GOAL?
Improve the overall quality of the
software product and the
knowledge of developers
CODE REVIEWS ?
Image source: http://image.shutterstock.com/z/stock-photo-man-setting-time-on-a-big-clock-91707425.jpg
WHEN & WHAT?
When a developer is finished
working on an issue,
another developer looks over the
code and considers questions like:
WHEN & WHAT?
1) ERRORS
Are there any
obvious logic errors
in the code?
WHEN & WHAT?
2) REQUIREMENTS
Looking at the requirements,
are all cases fully implemented?
WHEN & WHAT?
3) TESTS
A) Are the new automated tests
sufficient for the new code?
B) Do existing automated tests
need to be rewri en to account
for changes in the code?
WHEN & WHAT?
4) STYLE GUIDELINES
Does the new code conform to
existing style guidelines?
WHEN & WHAT?
Image source: http://image.shutterstock.com/z/stock-photo-switchboard-94006822.jpg
WHY DO CODE REVIEWS MATTER?
for developers and (project-)managers
Code is reviewed by
another developer
WHY DO CR MATTER?
Code is reviewed by
another developer
WHY DO CR MATTER?
Developers will be
more likely to write
comments and tests
Better code quality & less bugs
New employees come
up to speed faster
ü  Knowledge of other developers: possible improvements,
new classes/methods/libraries, new insights, be er ways, …
ü  Because developer knows his/her code will be reviewed
No one is the only person
who knows a specific part
of the code base
WHY DO CR MATTER?
No one is the only person
who knows a specific part
of the code base
WHY DO CR MATTER?
Teamwork
Flexibility:
Shared responsibility
ü  Others can help out if needed (to meet deadlines)
They can take work of the backlog and start programming
ü  Be er control of resources: developers can be interchanged
more easily (they will already know about the source code)
No one is the only person
who knows a specific part
of the code base
WHY DO CR MATTER?
Less human resources problems:
Peace of mind
When only 1 person knows about the source code of a program:
What if he/she is not in the office? Or worse: what if he/she left the company…
“Hé can you do a small bugfix because Mr. X is not here and things are failing
on the production server?”
No one is the critical path
Knowledge sharing
WHY DO CR MATTER?
Knowledge sharing
WHY DO CR MATTER?
Opportunity to learn about
a new languages, libraries
and frameworks.
Hidden knowledge
New SDKs
‘Known issues’
And many other advantages…
WHY DO CR MATTER?
Early feedback in
development process
Extra efforts of developers
for well-designed code and
passing tests
Shared load
No code gets in
unreviewed
(code written at 3am or by inters)
Image source: http://image.shutterstock.com/z/stock-photo-teacher-holding-a-book-in-front-of-a-black-board-looking-surprised-92438437.jpg
PRACTICAL TIPS
Review as soon as possible, before merging
PRACTICAL TIPS
Use git-pull or work with a
branch-approach where a feature-
branch can only be merged to
development if it’s reviewed
How fast should code be reviewed?
PRACTICAL TIPS
200-300 lines of code / hour
Background image: Smartbear - Cisco Case Study - Plotting inspection size versus time at Cisco. There is no apparent systematic "inspection rate.”
Take time for a decent review
PRACTICAL TIPS
Source: Smartbear - Cisco Case Study
Reviewers become less effective at finding defects as
their pace through the review accelerates.
How much lines should be reviewed at a time?
PRACTICAL TIPS
Reviewers are most effective at
reviewing small amounts of code.
200 – 400 lines
Source: Smartbear - Cisco Case Study
Total review time
PRACTICAL TIPS
Less than 60 minutes,
max 90 minutes
Source: Smartbear - Cisco Case Study
Image source: http://image.shutterstock.com/z/stock-photo-parents-visiting-day-93711238.jpg
CODE REVIEWS ARE PART OF THE
AGILE APPROACH, COMBINE CODE
REVIEWS WITH CONTINUOUS
INTEGRATION, TESTING, SCRUM, …
AND AIM FOR ULTIMATE FLEXIBILITY!
Image source: http://image.shutterstock.com/z/stock-photo-group-of-photographers-taking-picture-with-cameras-99830894.jpg
QUESTIONS?
START CODE REVIEWING!
Sources and references	
  
•  h#ps://www.atlassian.com/agile/code-­‐reviews	
  
•  h#p://support.smartbear.com/support/media/resources/cc/book/code-­‐review-­‐cisco-­‐case-­‐
study.pdf	
  

More Related Content

PPT
Peer Code Review An Agile Process
PDF
Unwritten Manual for Pair Programming
PDF
10 Faulty Behaviors of Code Review - Developer Summit Istanbul 2018
PPTX
To document or not to document? An exploratory study on developers' motivatio...
PPTX
SCA in an Agile World | June 2010
PPT
Agile Austin - Peer Code Review An Agile Process
PPTX
Tdd 4 everyone full version
PDF
Taming Big Balls of Mud with Diligence, Agile Practices, and Hard Work
Peer Code Review An Agile Process
Unwritten Manual for Pair Programming
10 Faulty Behaviors of Code Review - Developer Summit Istanbul 2018
To document or not to document? An exploratory study on developers' motivatio...
SCA in an Agile World | June 2010
Agile Austin - Peer Code Review An Agile Process
Tdd 4 everyone full version
Taming Big Balls of Mud with Diligence, Agile Practices, and Hard Work

What's hot (20)

PDF
Fighting with Waste Driven Development - XP Days Ukraine 2017
PDF
Coderetreat - Practice to Master Your Crafts
PDF
Amanda Cinnamon - Treat Your Code Like the Valuable Software It Is
PDF
Code reviews
PDF
To document or not to document? An exploratory study on developers' motivatio...
PDF
Campbell & Readman - TDD It's Not Tester Driven Development - EuroSTAR 2012
PPT
Specification by example and agile acceptance testing
PDF
Digital transformation testing.
PDF
Software craftmanship coaching
PDF
Ilari henrik
PPT
Software Development in 21st Century
ODP
Automating good coding practices
PDF
I Don't Code, Am I No Longer Useful
PDF
Android testing
PPTX
XP Injection
PDF
Caring about Code Quality
PDF
Leveraging AI and ML in Test Management Systems - DevOps Next
PDF
TDD Workshop UTN 2012
PPT
SW Engineering Management
PPTX
Behavior Driven Development with AngularJS & Jasmine
Fighting with Waste Driven Development - XP Days Ukraine 2017
Coderetreat - Practice to Master Your Crafts
Amanda Cinnamon - Treat Your Code Like the Valuable Software It Is
Code reviews
To document or not to document? An exploratory study on developers' motivatio...
Campbell & Readman - TDD It's Not Tester Driven Development - EuroSTAR 2012
Specification by example and agile acceptance testing
Digital transformation testing.
Software craftmanship coaching
Ilari henrik
Software Development in 21st Century
Automating good coding practices
I Don't Code, Am I No Longer Useful
Android testing
XP Injection
Caring about Code Quality
Leveraging AI and ML in Test Management Systems - DevOps Next
TDD Workshop UTN 2012
SW Engineering Management
Behavior Driven Development with AngularJS & Jasmine
Ad

Similar to Why you should integrate peer code reviews in your software company (20)

PDF
Code Review
PDF
Voxxed days 2015-hakansaglam-codereview
PDF
Code Review for iOS
PPTX
Code Reviews
PDF
Code reviews
PPTX
Code Review
PDF
Code-Review-Principles-Process-and-Tools (1)
PPTX
Code review
PPTX
Testers in product development code review phase
PPT
Code Review
PDF
Agile Code Reviews for Better Software—Sooner
PPTX
Capability Building for Cyber Defense: Software Walk through and Screening
PDF
Code Review Tool Evaluation
PDF
Code Review
PDF
2014 State of Code Review Survey Results
PDF
The Anatomy of a Code Review
PPTX
Expert Code Review best practices
PDF
Code Reviews Inside Out
PDF
Let's review it: What designers can learn from (code) review
PDF
code_review_checklist_6_actions_to_improve_the_quality_of_your_reviews.pdf
Code Review
Voxxed days 2015-hakansaglam-codereview
Code Review for iOS
Code Reviews
Code reviews
Code Review
Code-Review-Principles-Process-and-Tools (1)
Code review
Testers in product development code review phase
Code Review
Agile Code Reviews for Better Software—Sooner
Capability Building for Cyber Defense: Software Walk through and Screening
Code Review Tool Evaluation
Code Review
2014 State of Code Review Survey Results
The Anatomy of a Code Review
Expert Code Review best practices
Code Reviews Inside Out
Let's review it: What designers can learn from (code) review
code_review_checklist_6_actions_to_improve_the_quality_of_your_reviews.pdf
Ad

Recently uploaded (20)

PDF
System and Network Administraation Chapter 3
PPTX
ai tools demonstartion for schools and inter college
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
System and Network Administration Chapter 2
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Introduction to Artificial Intelligence
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
System and Network Administraation Chapter 3
ai tools demonstartion for schools and inter college
How Creative Agencies Leverage Project Management Software.pdf
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
How to Choose the Right IT Partner for Your Business in Malaysia
System and Network Administration Chapter 2
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Odoo POS Development Services by CandidRoot Solutions
Navsoft: AI-Powered Business Solutions & Custom Software Development
wealthsignaloriginal-com-DS-text-... (1).pdf
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Introduction to Artificial Intelligence
2025 Textile ERP Trends: SAP, Odoo & Oracle
How to Migrate SBCGlobal Email to Yahoo Easily
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PTS Company Brochure 2025 (1).pdf.......
Odoo Companies in India – Driving Business Transformation.pdf
Design an Analysis of Algorithms II-SECS-1021-03

Why you should integrate peer code reviews in your software company

Editor's Notes

  • #8: Geautomatiseerde testen moeten wel eerst slagen! De reviewtijd moet dienen voor zaken die niet onder de tests vallen.
  • #15: De code zal niet vervuild raken vanwege slechte programmeerbeslissingen.
  • #16: Simply put, code reviews help facilitate knowledge sharing across the code base and across the team. 
  • #18: Nobody likes to inherit thousands of lines of new code Peace of mind: je weet dat anderen het product kunnen builden, verder werken, … Je mag gerust een dag verlof nemen.
  • #24: Reviewers slower than 400 lines per hour were above average in their ability to uncover defects. But when faster than 450 lines/hour the defect density is below average in 87% of the cases.
  • #25: Reviewers become less effective at finding defects as their pace through the review accelerates.