
Build a Logger and Validator with TypeScript Decorators (Like NestJS)
Learn how to implement TypeScript decorators from scratch by building a Logger and a Validator — inspired by how NestJS uses them under the hood.
Tag archive

Learn how to implement TypeScript decorators from scratch by building a Logger and a Validator — inspired by how NestJS uses them under the hood.
Learn the Decorator Design Pattern in Java with real-world examples, pros and cons, and best practices.
The Decorator Pattern is a structural design pattern that allows behavior to be dynamically added to...
In Solidity, the Proxy Delegate and Decorator patterns are used to enhance contracts, particularly...

In this post, we're diving into the fascinating world of callable decorators—an advanced technique...
When working with PHP, I wanted to modify the behavior of class methods, aiming to achieve a method...
What is decorator? In TypeScript, decorator is a special type of declaration that uses the...
Typical situation: you have unreliable function, for example, doing HTTP requests and getting...

It can be a little overwhelming when using NestJS for the first time. Let's try to understand how...
In one of the previous articles on binary sizes, we discussed how making a class polymorphic by using...
Decorator design pattern allows us to add new functionality to an object without affecting the...
The caching decorator from the previous article was fine, but there was a problem with it: it was too...