nikhilchandrakar.hashnode.devDecorator 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...Sep 9, 2025·2 min read
nikhilchandrakar.hashnode.devStrategy 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 ...Sep 8, 2025·4 min read
nikhilchandrakar.hashnode.devSingleton 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 ...Sep 8, 2025·3 min read
nikhilchandrakar.hashnode.devDo 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")...Jun 4, 2025·2 min read
nikhilchandrakar.hashnode.devDebouncing : 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...Dec 5, 2024·2 min read