Stop Writing Classes video thumbnail

Stop Writing Classes

Next Day Video · 8 recommenders · 8 months

Jack Diederich's PyCon 2012 talk argues that classes are overused in Python and walks through real code, refactoring away unnecessary classes, exceptions and modules. It popularized the heuristic that a class with two methods, one being __init__, should be a function.

Why Hacker News readers recommend it: HN returns to it repeatedly as the canonical argument for simplicity and against premature abstraction, and several commenters say it changed how they write code.

8 recommenders4 strong recommendations2012–2025
Python, Ruby & scripting languagesSoftware architecture & design#python#pycon#object-oriented design#refactoring#simplicity

“Jack Diederich has a great video called Stop Writing Classes: It's about Python, but the observation can apply to several languages.”

View the original HN discussion