PinnedVahid Najafi·Mar 6, 2024Implement a Dependency Injection Container in TypeScript from ScratchIoC (also known as dependency injection container) from theory to implementation A response icon9A response icon9
PinnedVahid Najafi·Oct 15, 2024Google Cloud Functions: Architecture, Run & Test Locally with NestJSGoogle Cloud Functions is a serverless computing service offered by Google Cloud that allows developers to run code in response to events…
Vahid Najafi·Feb 19Controlling Concurrency in Node.js: Worker Pools and HTTP AgentsWhen building backend systems or frontend apps that fetch data, it’s tempting to either fire off all requests at once or do them…
Vahid Najafi·Jun 12, 20255 Real-World Design Patterns to Replace Common Bad PracticesDesign patterns are more than just academic concepts — they’re time-tested solutions to common software design problems. That’s why I…
Vahid Najafi·Dec 23, 2024TDD with NestJS: A Practical Guide with Real-World ExampleTest-Driven Development (TDD) is a software development approach where tests are written before writing the actual code. It follows a cycle…A response icon1A response icon1
Vahid Najafi·Apr 17, 2024Advanced Jest: Different Mocking for the Same Underlying FunctionsMocking is the most crucial part of testing. When you want to test a class (as unit test), you need to mock it’s dependencies, because you…A response icon2A response icon2
Vahid Najafi·Mar 28, 2024React Remix: Cross Cutting Concerns and the FutureCross Cutting ConcernA response icon1A response icon1
Vahid Najafi·Feb 29, 2024Idempotency in Distributed Systems: Preventing Duplicate OperationsIn this article, we are going to figure out what idempotency is in terms of Rest APIs. Let’s say you have a platform that you are charging…
Vahid Najafi·Feb 19, 2024DI-Part 2: A Deep Dive into the Reflection API in JavascriptBefore talking about Reflection API in JavaScript, let’s review some general concepts to understand better.A response icon1A response icon1
Vahid Najafi·Nov 23, 2023Nestjs MQTT microservice with Async Api docs and validationToday we are going to see how we document the message payloads in nestjs MQTT microservice application. On the other hand, we need to…