NCNikhil Chandrakarinnikhilchandrakar.hashnode.dev·Sep 9, 2025 · 2 min readDecorator design patternDefinition : Decorator design pattern attaches additional responsibilities to an object dynamically. Decorator provides a flexible alternative to subclassing for extending functionality. Lets understand this with help of an example : Suppose you hav...00
NCNikhil Chandrakarinnikhilchandrakar.hashnode.dev·Sep 8, 2025 · 4 min readStrategy Design PatternDefinition : Formally, strategy design pattern can be defined as a design pattern that defines a family of algorithms and put them into separate classes so that they can be changed at run-time. Lets understand strategy design pattern with help of an ...00
NCNikhil Chandrakarinnikhilchandrakar.hashnode.dev·Sep 8, 2025 · 3 min readSingleton design patternSingleton design pattern is one of the most commonly used design patterns. We use singleton design pattern when we need only one instance of a class. For example : Logger : Suppose you are implementing a logging service in your application. All the ...00
NCNikhil Chandrakarinnikhilchandrakar.hashnode.dev·Jun 4, 2025 · 2 min readDo you know how JavaScript engine runs your code ?You might be aware of the fact that JavaScript is an interpreted language (i.e it converts your code to binary line by line) and that’s why a JavaScript code can run partially if error comes later. But is this always true ? console.log("Hello world")...00
NCNikhil Chandrakarinnikhilchandrakar.hashnode.dev·Dec 5, 2024 · 2 min readDebouncing : What You Need to KnowWhen I was learning web development I came across the jargon “DEBOUNCING” . I looked for more details about debouncing but unfortunately most of the technical blogs out there are not for beginners. So, let us try to understand what it is ? And Why do...00