DEV Community

loading...

Discussion on: The Secret Life of Objects: Inheritance

Collapse
collenbrecht profile image
collen brecht

good read, thanks for sharing! It seems like the concept is "Simple. As. F**ck.", but how to apply it seems difficult. Writing code and reading articles like this helps me get a grasp of how to write 'clean code'.

Collapse
riccardo_cardin profile image
Riccardo Cardin Author

Thanks for the comment. Maybe, the best place where to start is trying to avoid inheritance from concrete classes. In this way, you are forced to use composition.