hackertubescom
← el catálogo

Stop Writing Classes

Next Day Video · 8 recomendaciones en HN

Preguntas sobre el video

Pide a la IA que explique esta escena o resuma el video completo. Si la respuesta incluye marcas de tiempo, selecciona una para ir al fragmento.

Prueba a preguntar: ¿Qué está explicando aquí la persona que habla?

Inicia sesión con Google. Consulta el costo máximo en 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 qué lo recomienda HN: 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.” Leer en HN ↗