Date: Mon, 20 Jul 2020 21:00:00 -0400
<div class="wp-block-jetpack-markdown"><h3>Summary</h3> <p>Python is an intuitive and flexible language, but that versatility can also lead to problematic designs if you’re not careful. Nikita Sobolev is the CTO of Wemake Services where he works on open source projects that encourage clean coding practices and maintainable architectures. In this episode he discusses his work on the DRY Python set of libraries and how they provide an accessible interface to functional programming patterns while maintaining an idiomatic Python interface. He also shares the story behind the wemake Python styleguide plugin for Flake8 and the benefits of strict linting rules to engender good development habits. This was a great conversation about useful practices to build software that will be easy and fun to work on.</p> <h3>Announcements</h3> <ul> <li>Hello and welcome to Podcast.__init__, the podcast about Python and the people who make it great.</li> <li>When you’re ready to launch your next app or want to try a project you hear about on the show, you’ll need somewhere to deploy it, so take a look at our friends over at Linode. With the launch of their managed Kubernetes platform it’s easy to get started with the next generation of deployment and scaling, powered by the battle tested Linode platform, including simple pricing, node balancers, 40Gbit networking, dedicated CPU and GPU instances, and worldwide data centers. Go to <a href="https://www.pythonpodcast.com/linode?utm_source=rss&utm_medium=rss">pythonpodcast.com/linode</a> and get a $60 credit to try out a Kubernetes cluster of your own. And don’t forget to thank them for their continued support of this show!</li> <li>This portion of Python Podcast is brought to you by Datadog. Do you have an app in production that is slower than you like? Is its performance all over the place (sometimes fast, sometimes slow)? Do you know why? With Datadog, you will. You can troubleshoot your app’s performance with Datadog’s end-to-end tracing and in one click correlate those Python traces with related logs and metrics. Use their detailed flame graphs to identify bottlenecks and latency in that app of yours. Start tracking the performance of your apps with a free trial at datadog.com/pythonpodcast. If you sign up for a trial and install the agent, Datadog will send you a free t-shirt.</li> <li>You listen to this show to learn and stay up to date with the ways that Python is being used, including the latest in machine learning and data analysis. For more opportunities to stay up to date, gain new skills, and learn from your peers there are a growing number of virtual events that you can attend from the comfort and safety of your home. Go to <a href="https://www.pythonpodcast.com/conferences?utm_source=rss&utm_medium=rss">pythonpodcast.com/conferences</a> to check out the upcoming events being offered by our partners and get registered today!</li> <li>Your host as usual is Tobias Macey and today I’m interviewing Nikita Sobolev about his work with DRY Python and Wemake Services</li> </ul> <h3>Interview</h3> <ul> <li>Introductions</li> <li>How did you get introduced to Python?</li> <li>Can you start by sharing your overarching philosophies or design aesthetics for writing maintainable software?</li> <li>What is your process for starting a new project, beginning at the design phase?</li> <li>What are some of the challenges or shortcomings that you see in the "default" way that most developers write Python?</li> <li>What is DRY Python is and how does it help in addressing those concerns? <ul> <li>What was your motivation for creating these projects?</li> </ul> </li> <li>There are a number of different projects that are being built under the DRY Python umbrella. Can you list the ones that are currently active and outline how they fit together?</li> <li>What are some of the initial challenges that newcomers to the DRY Python libraries encounter?</li> <li>How do you approach the design of the API and developer experience to make these development approaches more accessible?</li> <li>What have you seen in terms of real world impact on the maintainability and extensibility of projects that you have built on top of the DRY Python components?</li> <li>In addition to DRY Python you are also involved with development of the wemake-python-styleguide. Can you describe that projects goal and how it got started? <ul> <li>If you make the linting too restrictive then developers are likely to just ignore or disable it. What have you found to be the right balance to which rules will fail a build and which are just informational?</li> <li>Why do you push the responsibility for things like formatting onto the developer, rather than an autoformatter such as YAPF or Black?</li> </ul> </li> <li>What are some of the other supporting technologies that you rely on during your development workflow?</li> <li>What are some of the elements that you think are missing in the common toolbox for Python developers? <ul> <li>What tools are we lacking entirely?</li> </ul> </li> <li>What are the cases where DRY Python is the wrong choice?</li> <li>What are your goals and plans for the future of DRY Python and the various Wemake libraries?</li> </ul> <h3>Keep In Touch</h3> <ul> <li><a href="https://sobolevn.me/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Blog</a></li> <li><a href="https://github.com/sobolevn/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">sobolevn</a> on GitHub</li> </ul> <h3>Picks</h3> <ul> <li>Tobias <ul> <li><a href="http://www.themaptoeverywhere.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The Map To Everywhere</a></li> </ul> </li> <li>Nikita <ul> <li><a href="https://conf.python.ru/moscow/2020?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Russian Python Week</a></li> </ul> </li> </ul> <h3>Closing Announcements</h3> <ul> <li>Thank you for listening! Don’t forget to check out our other show, the <a href="https://feeds.fireside.fm/pythonpodcast/rss">Data Engineering Podcast</a> for the latest on modern data management.</li> <li>Visit the <a href="https://www.pythonpodcast.com?utm_source=rss&utm_medium=rss">site</a> to subscribe to the show, sign up for the mailing list, and read the show notes.</li> <li>If you’ve learned something or tried out a project from the show then tell us about it! Email <a href="mailto:hosts@podcastinit.com">hosts@podcastinit.com</a>) with your story.</li> <li>To help other people find the show please leave a review on <a href="https://itunes.apple.com/us/podcast/podcast.-init/id981834425?mt=2&uo=6&at=&ct=&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">iTunes</a> and tell your friends and co-workers</li> <li>Join the community in the new Zulip chat workspace at <a href="https://www.pythonpodcast.com/chat?utm_source=rss&utm_medium=rss">pythonpodcast.com/chat</a></li> </ul> <h3>Links</h3> <ul> <li><a href="https://github.com/dry-python?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">DRY Python</a></li> <li><a href="https://wemake.services/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Wemake Services</a></li> <li><a href="https://wemake-python-stylegui.de/en/latest/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">wemake-python-styleguide</a></li> <li><a href="https://turbogears.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Turbogears 2</a></li> <li><a href="https://github.com/dotenv-linter/dotenv-linter?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Dotenv Linter</a></li> <li><a href="https://returns.readthedocs.io/en/latest/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Returns</a></li> <li><a href="https://github.com/wemake-services/wemake-python-package?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Wemake Python Package</a> Cookiecutter Template</li> <li><a href="https://en.wikipedia.org/wiki/Test-driven_development?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Test Driven Development</a></li> <li><a href="https://en.wikipedia.org/wiki/Requirements_analysis?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Requirements Analysis</a></li> <li><a href="https://github.com/dry-python/rests?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">RESTs</a></li> <li><a href="https://www.django-rest-framework.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Django Rest Framework</a></li> <li><a href="https://github.com/dry-python/classes?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Classes</a></li> <li><a href="https://en.wikipedia.org/wiki/Monad_(functional_programming)?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Monads</a></li> <li><a href="https://en.wikipedia.org/wiki/Functor_(functional_programming)?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Functors</a></li> <li><a href="https://www.scala-lang.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Scala</a></li> <li><a href="https://kotlinlang.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Kotlin</a></li> <li><a href="https://www.haskell.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Haskell</a></li> <li><a href="https://github.com/bobthemighty/punq?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Punq</a> dependency injection library</li> <li><a href="https://flake8.pycqa.org/en/latest/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Flake8</a></li> <li><a href="https://github.com/wemake-services/wemake-django-template?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Wemake Django Template</a></li> <li><a href="https://gitlab.com/pycqa/flake8/-/issues/602?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Flake8 Baseline</a></li> <li><a href="https://timothycrosley.github.io/isort/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">isort</a></li> <li><a href="https://nitpick.readthedocs.io/en/latest/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Nitpick</a></li> <li><a href="http://mypy-lang.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Mypy</a></li> <li><a href="https://github.com/terrencepreilly/darglint?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Darglint</a></li> <li><a href="https://python-poetry.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Poetry</a></li> <li><a href="http://pyfound.blogspot.com/2020/03/new-pip-resolver-to-roll-out-this-year.html?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Pip Dependency Resolver</a> <ul> <li><a href="https://www.pythonpodcast.com/pip-resolver-dependency-management-episode-264/?utm_source=rss&utm_medium=rss">Podcast Episode</a></li> </ul> </li> <li><a href="https://hypothesis.readthedocs.io/en/latest/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Hypothesis</a> <ul> <li><a href="https://www.pythonpodcast.com/episode-52-hypothesis-with-david-maciver/?utm_source=rss&utm_medium=rss">Podcast Episode</a></li> </ul> </li> <li><a href="https://github.com/kiwicom/schemathesis?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Schemathesis</a></li> <li><a href="https://timothycrosley.github.io/hypothesis-auto/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Pytest Auto Hypothesis</a></li> <li><a href="https://www.typescriptlang.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Typescript</a></li> <li><a href="https://www.rust-lang.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Rust</a></li> <li><a href="https://elixir-lang.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Elixir</a></li> <li><a href="https://zio.dev/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Zio</a> Scala</li> <li><a href="https://github.com/sponsors?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">GitHub Sponsors</a></li> <li><a href="https://sobolevn.me/2020/03/do-not-log?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Do Not Log</a> blog post</li> </ul> <p>The intro and outro music is from Requiem for a Fish <a href="http://freemusicarchive.org/music/The_Freak_Fandango_Orchestra/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The Freak Fandango Orchestra</a> / <a href="http://creativecommons.org/licenses/by-sa/3.0/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">CC BY-SA</a></p> </div> <img alt="" height="0" src="https://analytics.boundlessnotions.com/piwik.php?idsite=1&rec=1&url=https%3A%2F%2Fwww.pythonpodcast.com%2Fdry-python-functional-programming-episode-272%2F&action_name=Idiomatic+Functional+Programming+With+DRY+Python+-+Episode+272&urlref=https%3A%2F%2Fwww.pythonpodcast.com%2Ffeed%2F&utm_source=rss&utm_medium=rss" style="border: 0; width: 0; height: 0;" width="0" />