Implement a Cache with Time-to-Live (TTL)Problem Description You are building a backend service that needs to perform database lookups for various queries. However, the database is slow and it's not feasible to query it for every request. To speed up your service, you decide to implement a ...Apr 22, 2023 · 6 min readnishanthprabhu.hashnode.dev
Head-First Functional Programming in JavascriptFunctional programming is a programming paradigm that treats computation as the evaluation of mathematical functions and avoids changing state and mutable data. JavaScript, being a multi-paradigm language, allows for functional programming along with...Apr 16, 2023 · 10 min readnishanthprabhu.hashnode.dev
JavaScript implementation of the Publish-Subscribe Pattern using ES6Publish-subscribe is a messaging pattern where publishers send messages to a message broker, which then delivers the message to subscribed consumers. This pattern allows for decoupling between the publisher and consumer, as the publisher does not nee...1SJan 5, 2023 · 6 min readnishanthprabhu.hashnode.dev
Using Mutation Observers in JavaScriptA mutation observer is a JavaScript object that allows you to monitor changes to the DOM (Document Object Model) in real time. This can be useful for a variety of tasks, such as detecting when an element is added or removed from the DOM, or tracking ...Dec 11, 2022 · 2 min readnishanthprabhu.hashnode.dev
Using Dynamic Imports in JavaScript for Improved PerformanceDynamic imports in JavaScript are a way to import modules or functions only when they are needed, rather than importing them upfront. This can improve the performance of your application by reducing the amount of code that is loaded initially and onl...Dec 6, 2022 · 2 min readnishanthprabhu.hashnode.dev