Sebastian Sellmairblog.sellmair.io·Mar 18, 2024Composition over Inheritance: My refactoring recipe"DRy", "KisS", "CLEAn", "SoLid". We all read these almost meaningless terms being thrown around in our code reviews. Whilst just mentioning some acronym never really seemed like a convincing argument to me, the intention of the reviewer was mostly al...6 likes·4.9K readsKotlin
Gabriele Buffolinobite-sized.hashnode.dev·Nov 16, 2023Inheritance vs composition: a fight against Egyptian godsWe all heard about the "favor composition over inheritance" mantra, but only a few have read Thoughtworks' article on the matter, by Steven Lowe. What I am going to do in this bite is to describe what would happen if this principle is ignored. Unfort...Object Oriented Programming
Gujarati Coderreactflux.hashnode.dev·Sep 23, 2023Composition vs InheritanceReact has a powerful composition model, and we recommend using composition instead of inheritance to reuse code between components. In this section, we will consider a few problems where developers new to React often reach for inheritance, and show h...React