Untitled attachment
https://cdn.fosstodon.org/media_attachments/files/113/236/889/288/315/363/original/f31f7bfab6c5f115.jpg
@inthehands chapter one of Head First Design Patterns is about this. They build out an example using inheritance to share behaviour, then go to using composition instead, arguing why composition is usually better
IMO, it's the most approachable and best programming design book out there
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.