Ilko Kacharov
Lead Dev @Proxiad / @Mailjet
12+ years in PHP
Zend Framework 2 Certified Architect
Engineer in communications
4+ years in Code reviews
Shiny
Frontend
Messy
Backend
~8 hours a day
Clean and tidy
Secure and private
When you start a project you define the rules of the house.
Everyone who joins the project
should follow the rules!
Don't end up here
The housekeeper
Artwork by
Maintainability and Simplicity
Code management
Code quality / style / standards, best practices
Browser wars and internet revolution - Web 2.0
do we need the process
to look for in the code
Artwork by
to comment the code
Uncontroversial approach
to be formally polite
"We can use a tool instead of doing it manual."
"We better do filtering before we insert in the database."
"You can check if this code is available already."
Artwork by
to be formally polite
"We've changed this recently. Have you seen it?"
"Have you checked the code in the other module?"
"Is this code gonna be able to do the math if we pass 0?"
to be formally polite
"Please verify that input, so we include all edge cases."
"Please use Оctocat memes when doing web presentations."
"Please add exclamation marks when code must be changed!"
Artwork by
to be formally polite
"Good catch!"
"Clever approach!"
"Never knew code can do that!"
Artwork by
to be formally polite
"I think this code already exists."
"I think we can do backflips instead."
The one who gives only opinion takes no responsibility.
To improve is to change
To perfect is to change often
Winston Churchill
«
»
Artwork by
~ 40 lines
~ 200 lines
> 500 lines
Diff
History
Blame
Ignore whitespace
Ticket references #
Pre-commit hooks
Pull Requests
Labels (ask me later)
Code comments
Inline resolving of conflicts
Automatic code quality tools
Slack / Email notifications
to improve the process
Artwork by
to improve the process
Slack Notifications in #git-repo-name
@kachar136
https://slides.com/kachar/practical-code-reviews-bws/
@kachar136
Thanks to GitHub.com for all the Octocats