hackertubescom
← o catálogo

Stop Writing Classes

Next Day Video · 8 recomendações no HN

Perguntas sobre o vídeo

Peça à IA para explicar esta cena ou resumir o vídeo inteiro. Se a resposta tiver marcações de tempo, selecione uma para ir ao trecho.

Experimente perguntar: O que a pessoa está explicando aqui?

Entre com o Google. Confira o custo máximo em créditos antes de confirmar.

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.

Por que o HN recomenda: 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.

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