talk · intermediate · evergreen

Stop Writing Classes

Next Day Video · Mar 15, 2012 · 27m 29s

What this video covers

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 it surfaced in Hacker News

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.

10recommendation score
8
distinct recommenders
8
recommendation months
4
strong recommendations

Recommendation context

Short excerpts from positive mentions. Open the source to read the full Hacker News discussion.

“You can (and should!) watch it online here”

“Then I saw the video above, and all fell into place.”

“Stop writing classes is one of my favorites.”

Watch on YouTube ↗