SlideShare a Scribd company logo
Code Review
hello!
I am Hoang Ngoc Tu
I am here to present how my team is doing code review.
You can find me at tuhoang.me
1.
Basic Concepts
Let’s start with some classic theories
Broken Window
A criminological theory that a small damage
will lead to a system corruption.
Technical Debt
We will spend a big extra effort eventually for a small
shortcut now. Every minute spent on not-quite-right
code counts as interest on that debt.
Even the best will make mistakes
Most of the effort we spend on code,
we spend fixing it.
““Code chạy được chưa chắc được chạy.”
- Nguyễn Thế Điền(A developer in my team)
““Code reviews are the single biggest
thing you can do to improve your code.”
- Jeff Atwood, codinghorror.com
Our Jira process
In
Progress
Code
Review
Ready To
Merge
Our code review steps
git code unit test
2.
Civilized Git Process
I have a separated presentation about this topic.
Follow the civilized git branching model
Commit often, Perfect later - your branch must be “perfect” to be
reviewed:
○ reset, re-committed with proper meaningful commits
○ start from the correct base
Prefix your commit messages with your JIRA ticket
Civilized Git Process
3.
Review the Code
If the programmers like each other, they play a game called “pair
programming”. And if not, then the game is called “code review”.
.. er .. hmm .. okay .. I don’t like you ^_^
Code Review
Coding Standards
For most Magento projects
Zend Coding Standard
Magento Coding Standard
ECG Codesniffer Coding Standard
For general PHP projects
Framework-specific standard
PSR-1
PSR-2
ECG Codesniffer Coding Standard
It is created by Magento Expert Consulting Group.
Automatically check some common Magento and PHP coding issues,
like:
raw SQL queries
SQL queries inside a loop
direct instantiation of Mage and Enterprise classes
unnecessary collection loading
excessive code complexity
use of dangerous functions
use of PHP superglobals
and many others.
Basic Principles
MVC - yes, put your code to the correct place
DRY - Don’t Repeat Yourself
SRP - Single Responsibility Principle
KISS - Keep It Simple, Stupid!
Coding Common Senses
https://magentotherightway.com/
http://www.phptherightway.com/
http://jstherightway.org/
Code Readability is King!
A program that runs perfectly but is unchangeable because it has low
readability is significantly less valuable than a clean and clear program
with some minor bugs that can easily be found and fixed.
Review the Code
InefficiencyErrors
Improve-
ments
4.
Unit Testing
I have a separated presentation about this topic.
What did we
discuss
today?
Let’s review some concepts
Broken Window Theory
Technical Debt Concept
git -> code -> unit test
Coding Standards
PHP_Codesniffer with
ECGDRY
SRP
KISS
Commit often, Perfect
later, but before Review
Readability is King
When will those concepts be obsolete?
When the application become an AI.
It can analyze new business
requirement and write new code for
itself to self-improve.
Probably it will happen in next 20
years.
thanks!
Any questions?
You can find me at
tuhoang.me
Credits
Special thanks to all the people who made and released
these awesome resources for free:
Presentation template by SlidesCarnival
Photographs by WallHaven

More Related Content

PPT
Code Review
PPT
Code Review
PPTX
Code review process with JetBrains UpSource
PDF
Code-Review-Principles-Process-and-Tools (1)
PDF
Effective code reviews
PDF
Code Review Tool Evaluation
PDF
Code Review: How and When
PDF
Code review in practice
Code Review
Code Review
Code review process with JetBrains UpSource
Code-Review-Principles-Process-and-Tools (1)
Effective code reviews
Code Review Tool Evaluation
Code Review: How and When
Code review in practice

What's hot (19)

DOCX
Code review guidelines
PPTX
Improving Code Quality Through Effective Review Process
PDF
Code Review: How and When
ODP
Beyond Unit Testing
PPT
Code review
PDF
Effective code reviews
PDF
Quality Assurance Guidelines
PDF
Code Review
ODP
Documenting Code - Patterns and Anti-patterns - NLPW 2016
PDF
Test driven development_continuous_integration
PPTX
Code Review tool for personal effectiveness and waste analysis
PPTX
Code Review
PPTX
PDF
Code Review
PPTX
Code review
PDF
Code Review for iOS
ODP
Documenting code yapceu2016
PPTX
Automation and Technical Debt
PDF
Java Code Review Checklist
Code review guidelines
Improving Code Quality Through Effective Review Process
Code Review: How and When
Beyond Unit Testing
Code review
Effective code reviews
Quality Assurance Guidelines
Code Review
Documenting Code - Patterns and Anti-patterns - NLPW 2016
Test driven development_continuous_integration
Code Review tool for personal effectiveness and waste analysis
Code Review
Code Review
Code review
Code Review for iOS
Documenting code yapceu2016
Automation and Technical Debt
Java Code Review Checklist
Ad

Similar to Code Review (20)

PDF
Enter Cookbook: refactoring under a microscope
PDF
Code reviews
ODP
PHP Code Quality
PPTX
Polish Magento Code Quality for Lasting Performance and Maintainability.pptx
PDF
Clean Code V2
PDF
"PHP Code Avengers: Structuring, Refactoring, and Superhero Practices", Vlad...
PPTX
CodeQuality.pptx
PDF
Code Quality Control in a PHP project. GeekTalks, Cherkassy 2020
PDF
Voxxed days 2015-hakansaglam-codereview
PDF
From dev to ops and beyond - getting it done
PPTX
Code Reviews
PPTX
Capability Building for Cyber Defense: Software Walk through and Screening
PDF
Writing clean and maintainable code
PPT
Test Presentation
ODP
The Professional Programmer
ODP
Building Scalable Development Environments
PDF
Look beyond PHP
PPT
Comparing the code quality of ECMs
PDF
How to do code review and use analysis tool in software development
PDF
Reduce Reuse Refactor
Enter Cookbook: refactoring under a microscope
Code reviews
PHP Code Quality
Polish Magento Code Quality for Lasting Performance and Maintainability.pptx
Clean Code V2
"PHP Code Avengers: Structuring, Refactoring, and Superhero Practices", Vlad...
CodeQuality.pptx
Code Quality Control in a PHP project. GeekTalks, Cherkassy 2020
Voxxed days 2015-hakansaglam-codereview
From dev to ops and beyond - getting it done
Code Reviews
Capability Building for Cyber Defense: Software Walk through and Screening
Writing clean and maintainable code
Test Presentation
The Professional Programmer
Building Scalable Development Environments
Look beyond PHP
Comparing the code quality of ECMs
How to do code review and use analysis tool in software development
Reduce Reuse Refactor
Ad

Recently uploaded (20)

PDF
Nekopoi APK 2025 free lastest update
PDF
Cost to Outsource Software Development in 2025
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PDF
Autodesk AutoCAD Crack Free Download 2025
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PPTX
assetexplorer- product-overview - presentation
PDF
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
PDF
17 Powerful Integrations Your Next-Gen MLM Software Needs
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
Nekopoi APK 2025 free lastest update
Cost to Outsource Software Development in 2025
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
Autodesk AutoCAD Crack Free Download 2025
iTop VPN Free 5.6.0.5262 Crack latest version 2025
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Oracle Fusion HCM Cloud Demo for Beginners
Why Generative AI is the Future of Content, Code & Creativity?
assetexplorer- product-overview - presentation
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
17 Powerful Integrations Your Next-Gen MLM Software Needs
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Wondershare Filmora 15 Crack With Activation Key [2025
How to Choose the Right IT Partner for Your Business in Malaysia
Design an Analysis of Algorithms I-SECS-1021-03
Reimagine Home Health with the Power of Agentic AI​
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free

Code Review