
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...
![Clojure Is Awesome!!! [PART 8]](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbafr0k3eyqn7v48j0z26.jpg)
(ns decorator (:require [clojure.spec.alpha :as s])) (s/def ::id string?) (s/def ::items...
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...