Sohag Hasannotes.sohag.pro·Oct 31, 2024Composition Over Inheritance: Crafting More Flexible PHP CodeComposition Over Inheritance Introduction Imagine you're building a LEGO set. Would you prefer a massive, pre-built structure that's hard to modify, or a collection of flexible blocks that you can rearrange and combine in countless ways? In the world...PrinciplesComposition over inheritance
Sundaram Kumar Jhasundaram2023.hashnode.dev·Sep 10, 2024A Complete Guide to Composition in GOComposition is a fundamental concept in Go that allows developers to build complex systems by combining simpler, reusable components. Unlike inheritance in other languages, Go promotes composition to achieve code reuse and modularity. This blog will ...go-composition
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.8K readsKotlin
Chinmay Singhblog.singhch.in·Jan 7, 2024Why you should almost never use Abstract ClassesImagine rules like this one defining a landscape, where maintainable code lives in the valleys. As you add new behavior, it’s like rain landing on your code. Initially you put it wherever it lands. Then you refactor to allow the forces of good design...Composition over inheritance