ssbhattaraishyam-sundar.com.np·Mar 26, 2024VueUse-Vue composable library that has collection of vue composition utilitiesVueUse is a collection of utility functions based on Composition API. To use this, you need to familiar with this concept. In the context of Vue applications, a “composable” is a function that leverages Vue’s Composition API to encapsulate and reuse ...Discussvue composition utilities
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...Discuss·4 likes·3.4K 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...DiscussComposition over inheritance
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...DiscussObject 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...DiscussReact
Mukesh Pareekmkshprk.hashnode.dev·Sep 14, 2023🚀 Demystifying Composition and Inheritance using Java! 🧙♂️💫Hey there, fellow developers! 🖥️ Let's unravel the magic of two fundamental concepts in Object-Oriented Programming (OOP): Composition and Inheritance, using a spellbinding example involving Wizards and Sorcerers in Java. 🪄📜 🌟 Composition - The A...DiscussJava
Stella Mariesmkou.hashnode.dev·Aug 30, 2023CompositionOriginal: const creatureCanEat = creature => ({ eat: food => `The ${creature} eats the ${food}.` }) const creatureCanSleep = creature => ({ sleep: () => `The ${creature} sleeps.` }) const createCanEatSleep = creature => ({ eat: food => ...Discusscomposition
Lucas Payrfunctional-fieldnotes.hashnode.dev·Aug 11, 2023Composition over InheritanceIn functional programming, you usually don't use classes. But that begs the question: How can you model complex structures without using inheritance? The answer is quite simple: We use a pattern called Composition. Todo-App using OOP As an example, l...Discuss·351 readscomposition
Kumarkmdev.hashnode.dev·Jul 30, 2023Composition Over Inheritance: A Powerful Design PrincipleIntroduction: In the world of Android app development using Kotlin, choosing the right design principle is crucial for creating maintainable and scalable code. One such principle that has gained popularity is "Composition over Inheritance." This prin...Discuss·37 readsinheritance
Amit Chaudharyamitsblog.hashnode.dev·May 28, 2023What is composition and pipe in JavaScript functional programmingPrerequisite - you must have good knowledge of reduce and reduceRight methods of the array in JavaScript and how they work under the hood. If you know about the reduce and reduceRight , please click here composition- When talking about function compo...Discuss·72 readsJavaScript