Stop Writing Classes
Next Day Video · 8 件のHN推薦
動画への質問
現在の場面の解説や、動画全体の要約を AI に頼めます。回答にタイムスタンプがある場合は、選択するとその場面に移動します。
質問例:ここで話し手は何を説明していますか?
Google でのログインが必要です。確定前に消費クレジットの上限を確認できます。
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.
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.” HNのコメントを読む ↗