Write Better Python Functions
Too Long; Didn't Read
In <a href="https://hackernoon.com/tagged/python" target="_blank">Python</a>, like most modern <a href="https://hackernoon.com/tagged/programming" target="_blank">programming</a> languages, the <em>function</em> is a primary method of abstraction and encapsulation. You’ve probably written hundreds of functions in your time as a developer. But not all functions are created equal. And writing “bad” functions directly affects the readability and maintainability of your code. So what, then, is a “bad” function and, more importantly, what makes a “good” function?