Hynek Schlawack 4/22/2023

Subclassing, Composition, Python, and You

Read Original

This article discusses the classic software design principle 'favor composition over inheritance' in the context of Python. It argues that strictly avoiding all subclassing can lead to verbose code and advocates for a more nuanced, pragmatic approach to object-oriented design. The content is based on a conference talk given at several PyCon events, focusing on best practices for Python developers.

Subclassing, Composition, Python, and You

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week