apdoelsaed.hashnode.devSliding Window Technique in JavaScriptIntroduction Sliding Window Technique is one of the common dynamic programming techniques, frequently used to optimize algorithms that involve searching an array or string for a consecutive subsection that satisfies a given condition by reducing its ...May 21, 2022·5 min read
apdoelsaed.hashnode.devThe Observer PatternIntroduction The Observer pattern is considered the ideal solution for modeling the reactive nature of Node.js. It works by defining an object (called subject) that can notify a set of observers (or listeners) when a change in its state occurs. The ...May 19, 2022·7 min read
apdoelsaed.hashnode.devAvoid Unleashing Zalgo in Node.jsSynchronous or asynchronous ? which one should i choose while implementing an API ? what the hell does unleashing zalgo means ? Before answering those questions, let's first clarify differences between sync and async callbacks : synchronous callbac...May 3, 2022·5 min read