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.
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.
Funny programmer shirts offered on Amazon.
This post was written by Ramiro Gómez (@yaph) and published on . Ramiro is a developer who likes open source, data mining, visualization and writing. To be informed about new posts you can subscribe to the Geeksta RSS feed.
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.