▶️ Intro ⭐ What is OOPs ? Object-oriented programming is an approach to solving problems by creating objects . ⭐ 4 Pillars of OOP Terminologies in OOP Abstraction – Hiding internal details (show only essential info!) Encapsulation – The act of putting various components together (in a capsule) Inheritance – The act of deriving new things from existing… Continue reading OOPS in JS – Ultimate
Category: JavaScript
How to Use express-rate-limiter to Limit User Rates in Node.js
In modern web applications, it is very common to have user authentication and authorization systems. These systems provide user-specific functionality and data, which requires that each user has a certain level of access and control over the resources they own. However, when these resources are accessed in a rapid and repetitive manner, it can lead… Continue reading How to Use express-rate-limiter to Limit User Rates in Node.js
High-Traffic Node.js: Strategies for Success
Node.js is a powerhouse for building high-performance applications, but handling high traffic requires more than just writing JavaScript. As your application grows, so do the challenges — slow response times, server crashes, memory leaks, and scalability bottlenecks. If you’re running an API, a real-time chat application, an e-commerce platform, or a SaaS product with thousands… Continue reading High-Traffic Node.js: Strategies for Success
Node Dependency Injection.
I have (again) an indiscreet question: what do your dependency injections look like in your Node apps? Have you ever taken the time to think about this topic? Are you the kind of dev who simply relies on ECMAScript modules to import and export functions and underlying logic across the whole application? Randomly passing data… Continue reading Node Dependency Injection.
Understanding JavaScript Execution with some Pizza
Welcome back, fellow developers! I’m excited to have you here for the next part of our JavaScript deep-dive series. The previous article explored the fundamental concepts and core features that make JavaScript a powerful language. Don’t worry if you missed it – you can catch up here. I was all set to explore JavaScript code execution.… Continue reading Understanding JavaScript Execution with some Pizza
Callbacks vs Promises vs Async/Await: The Ultimate Guide to Asynchronous Javascript
What are callbacks? A callback is a function passed as an argument to another function, which is then executed later (synchronously or asynchronously). Callbacks are fundamental in JavaScript for handling asynchronous operations, event listeners, and functional programming. Sample codes Basic example function saveOrder(orderId, userMail, callback) { const order = { orderId, userMail } scrib.show(order) callback(userMail);… Continue reading Callbacks vs Promises vs Async/Await: The Ultimate Guide to Asynchronous Javascript
Top 5 Node.js Design Patterns for Scalable Application
Node.js is a powerhouse for building scalable applications, but writing efficient and maintainable code requires more than just asynchronous magic. To truly level up, you need design patterns — proven solutions to common software architecture challenges. Whether you’re working on a microservices system, an API backend, or a real-time application, using the right design patterns will make… Continue reading Top 5 Node.js Design Patterns for Scalable Application
Promise.all(), Promise.any(), and More: Handling Multiple Promises in JavaScript
Promise Let’s have an overview of Promise first. In JavaScript, Promise is used to perform asynchronous operations. It’s an object that contains a status & represents the eventual completion (or failure) of an asynchronous operation and its resulting value. For example, uploading an image to the server is an asynchronous operation. When the image upload process is done, it can return… Continue reading Promise.all(), Promise.any(), and More: Handling Multiple Promises in JavaScript
Promise.allSettled()
The Promise.allSettled() static method takes an iterable of promises as input and returns a single Promise. This returned promise fulfills when all of the input’s promises settle (including when an empty iterable is passed), with an array of objects that describe the outcome of each promise. Promise.allSettled() is typically used when you have multiple asynchronous… Continue reading Promise.allSettled()
Function to send email
const sendEmail = (author, recepinetsEmail, subject, body, relatedRecords) => { try { email.send({ author: author, recipients: recepinetsEmail, … Continue reading Function to send email