Pycon 2015: Beyond PEP 8 by Raymond Hettinger

Python core developer Raymond Hettinger likes PEP 8 except for the line-length limitation, but does not approve of being pep8tified. He argues that there are better ways of improving code than fixing style issues.

In this presentation from Pycon 2015 he gives several examples on how to improve Python code by making it more Pythonic, i. e. using the tools that the language provides to write beautiful and readable code.

I found this talk pretty inspiring and applied several of the best practices to the Logya site generator after watching it. Most of the recent activity visible in the graph below went into reducing complexity by leveraging Python core features.

Logya contributions over time graph
Source: Logya Contributions Graph

For me watching this talk was definitely worthwhile, because it motivated me to make a tool that I often use more readable, testable and thus maintainable. What a nice outcome of watching a video on YouTube.


This post was written by Ramiro Gómez (@yaph) and published on . Subscribe to the Geeksta RSS feed to be informed about new posts.

Tags: python

Disclosure: External links on this website may contain affiliate IDs, which means that I earn a commission if you make a purchase using these links. This allows me to offer hopefully valuable content for free while keeping this website sustainable. For more information, please see the disclosure section on the about page.