Photo by Mitchell Luo from Pexels

How to DRY your Python code

Did I ever tell you the definition of insanity ?

DRY ( Don’t Repeat Yourself ) is generally considered to be a good and important practice for writing good code which I mostly agree with* and while there are tons of folks that will shout at you that your code is not DRY, I have yet to find anybody that tells you how to DRY your code while they are shouting at you, so here we are…

--

--

--

AI, Software Developer, Designer : www.k3no.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

VirtualBox with NAT and Host-Only network configuration

Kotlin coding conventions

Docker Tutorial for Beginners | What is Docker?

docker

IoT Application Messaging Protocols a Quick Guide

Building Better Software With XP

Writing scripts to simulate Smart Contract interaction using Truffle Suite

AWS Services: Some Confusing Terms

Unity/C# Challenge 25: Ammo Count

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Keno Leon

Keno Leon

AI, Software Developer, Designer : www.k3no.com

More from Medium

Create Beautiful Tracebacks with Python’s Exception Hooks

4 Python Packages to Beautify and Format Your Codebases

Python Structural Pattern Matching, you didn’t know you need until you have it!

Python Doctest and Unittest