This talk was given at EuroPython 2018 in Edinburgh.
As teams and projects grow, code review becomes increasingly important to support the maintainability of complex codebases. In this talk, I’ll cover guidelines for writing consistent python code beyond pep8, how to look out for common python gotchas, and what python tools are available to automate various parts of the review process.
Most importantly, I’ll cover the human aspect of code reviews - how we can be better at approaching reviews with empathy and understanding from the perspective of both a reviewer and a submitter. Following these successful code review practices will lead to happier teams and healthier code bases.
This talk is useful for python developers with any amount of experience. No prerequisite knowledge is necessary. - For those who are just starting out, it will be a great general overview. - Intermediate developers may not know about the wide variety of tooling that’s available. - Advanced developers will learn techniques for performing code reviews with empathy.
This talk will enable you to have better code reviews on your teams at work, and a better approach to code reviews in open source projects. You’ll leave with 3 main takeaways: 1. Code Reviews are most effective when conducted with empathy. If you do reviews with growth and learning in mind, they become tools for sharing knowledge instead of an opportunity to bruise egos or show off esoteric knowledge. 2. Python has powerful tooling available for code reviews such as pep8 as a style guide, pylint as a linter, coverage.py to identify test coverage, and vulture to identify dead code. 3. That python style guides beyond pep8 have clear benefits in terms of producing more consistent code that’s easier to review and easier to maintain.
Slides
Tweets
Hey #europython, I'm on now!
— Nina Zakharenko 💜🐍 (@nnja) July 26, 2018
Catch my talk on Code Reviews for Pythonistashttps://t.co/ajlmfRV6ft pic.twitter.com/BGA0UZyzFc
Good talk about code review from @nnja at #europython. Love this point on letting small things go so contributors can still feel ownership. pic.twitter.com/F7OIuvrp1Y
— Eric Holscher (@ericholscher) July 26, 2018
Amazing talk about how to do code reviews at #europython #EuroPython2018 by @nnja. I am gonna keep your ideas in mind!
— Stefan Tippelt (@steftip) July 26, 2018
Code review skills for Pythonstas by @nnja #EuroPython pic.twitter.com/uQMZpDg788
— Cheuk Ting Ho (@cheukting_ho) July 26, 2018
One of the talks I've enjoyed the most is "Code Review Skills for Pythonistas" (can be applied to anyone) by @nnja. She's so cool and she wears Python earrings! https://t.co/UEXJ7CZghk
— Sara Báez (@Bz_Sara) July 27, 2018
@nnja great talk on code reviews. It goes far beyond that and trickles into how to have healthy work relationship. 👍💯 #Europython #EuroPython2018 pic.twitter.com/gKvOhftFPk
— Matteo Guzzo (@_teoguso) July 26, 2018
Making great use of "Code Review Skills for Pythonistas" by @nnja while working as a student software developer at @bereacollege. This semester, I took a responsibility of doing code reviews for my team. We build software that improve the administrative workflow of @bereacollege
— Sher Sanginov (@shersanginov) September 6, 2018