Alyaa Talaatalyaatalaat28.hashnode.dev·Oct 13, 2024Decorator Design Pattern – Head First ApproachThe Decorator Pattern is one of the key design patterns that helps in extending the behavior of objects in a flexible and reusable manner. In the Head First Design Patterns book, this pattern is introduced with an analogy to adding toppings to a beve...Discussdesign patterns
Neelneelchikhal.hashnode.dev·Jul 7, 2024Design Pattern - 3Decorator design pattern saves us from object explosion. Composition is a design technique in OOP which defines has-a relationship between objects. public class Job{ // methods and properties... } Person HAS-A Job public class Person{ privat...Discussdecorator design pattern
Max Martínez Cartagenamaxmartinez.dev·Jun 1, 2024FeaturedDecorator Pattern: Let's have an ice cream!In this article I will explain one Object Oriented Programing Pattern called the "Decorators Pattern" and how we can implement it using typescript to handle multiple-optional behaviors. Lets imagine that we have an ice-cream shop which offers to our ...Discuss·14 likes·124 readsObject Oriented Design PatternsObject Oriented Programming
Kresno Fatih Imanikresnofatih.hashnode.dev·Jan 23, 2024Decorator Patterns In GoIntroduction The decorator pattern is a software design pattern that lets you add more functionality on top of an existing logic. The first thing that comes to people's minds to tackle this is using inheritance - which completely makes sense. However...Discuss·99 readsdesign patterns
Venu Madhav Emmadivenumadhavemmadi.hashnode.dev·Jan 19, 20242.4 Decorator Pattern - Structural Design PatternDesign patterns are vital resources in the field of software engineering that help address common design issues in software development. The Decorator Pattern is unique among these patterns in that it is a structural pattern that enables objects to b...Discuss·5 likesDesign Patterns in Software Engineeringdecorator design pattern
Syed Jafer Kparottasalna.hashnode.dev·Jan 12, 2024Decorator Design PatternDecorator design pattern is used to modify the functionality of an object at runtime. At the same time other instances of the same class will not be affected by this, so individual object gets the modified behaviour. When to use ? When you want to...DiscussLLDdecorator design pattern
Ian Carsoniancarson.hashnode.dev·Nov 27, 20235 must Know Design Patterns.Design patterns are critical components that require time and lots of effort to get them right. Every application and system will ultimately require scaling and in almost all instances, they will require refactoring. That is why design patterns are q...Discussdesign patterns
Phillippe Santanaphillcode.hashnode.dev·Nov 9, 2023Mastering JavaScript unit tests with the RPG Combat Kata - Iteration ThreeWelcome back to our RPG Combat Kata series, where we're not just leveling up our characters but also our skills in JavaScript unit testing. In this third installment, we tackle Iteration Three, a stage that challenges us to think spatially and introd...Discuss·75 readsTest Driven Development with JavaScriptTDD (Test-driven development)
Dhairya Vermarajurastogi.hashnode.dev·Oct 25, 2023Trace latency: Typescript method decoratorIn this blog, I will delve into using a typescript method decorator for tracking latency for any piece of code. We have a lot of function calls in our code where we start the timer, calculate the time elapsed, and then publish it to some metric servi...Discuss·54 readsTypeScript
Chetan Dattachetan77.hashnode.dev·Sep 5, 2023Decorator Design PatternThe Decorator design pattern can be beneficial when the features are mutually independent, and applying each feature to an object results in the same type of object. In this pattern, applying features in any order produces consistent results or objec...DiscussLow Level Designdecorator design pattern