Anuj Kumar Upadhyayanuj1.hashnode.dev·Jul 20, 2024Decorators in TypeScriptWelcome back to our TypeScript series! Today, we’ll explore decorators, a powerful feature that allows you to modify classes, methods, properties, and parameters. Decorators provide a way to add annotations and a meta-programming syntax for class dec...Discuss·1 likeTypeScriptTypeScript
Amit Kumar Maitymyt.hashnode.dev·Jul 19, 2024The `@Injectable()` decorator in AngularThe @Injectable() decorator in Angular is crucial for enabling dependency injection, a design pattern that promotes loose coupling and code reusability. Here's why it's needed and a real-world analogy to simplify the concept: Why Use @Injectable()? ...DiscussAngular
ByteScrum TechnologiesforByteScrum Technologiesblog.bytescrum.com·Jul 18, 2024Building Powerful APIs with NestJS ControllersNestJS is a progressive Node.js framework that allows you to build efficient, reliable, and scalable server-side applications. One of the key components of a NestJS application is the controller, which is responsible for handling incoming requests, p...Discuss·40 likes·46 readsnest controller
Shant Danielyanshant.hashnode.dev·Jun 24, 2024How to Measure Functions Performance Using DecoratorsDecorators in Python are a powerful tool that allows to adjust or enhance the behavior of functions without modifying them. This structural pattern can be especially useful in performance measurements, where we can gauge and log the execution time of...Discusstracemalloc
Meriem Trabelsimeriem-trabelsi-blog.hashnode.dev·Jun 14, 2024Angular Series: Key Concepts in a Flash@Input() and @Output() allow Angular to share data between the parent context and child components. "Think of @Input() and @Output() like ports or doorways—@Input() is the doorway into the component allowing data to flow in while @Output() is the do...Discuss·50 readsAngular Series: Key Concepts in a FlashAngular
Dhirendra Jhadevdj.hashnode.dev·Jun 9, 2024Decorators Argument in PythonHi Dear Pythonistas, Today we will learn about Decorators and performing operations on arguments passed in decorators. Decorators are nothing just a function taking argument as another function. It allows users to add new functionality to an existing...Discuss·8 likes·51 readsPython 3
Youssef BEN SADIKblog.bensadik.net·May 6, 2024Elegant Runtime Type-Checking in TypeScript classes using ZodIn the following cookbook, I want to shed light on a rather interesting way to add runtime validation to your TypeScript project. This is especially relevant to Angular, NestJS, or any other setup that utilizes OOP patterns in TypeScript. Nevertheles...Discuss·10 likeszod
Deven devendraadhikari.com.np·May 1, 2024Decorator In PythonA decorator in Python is a design pattern that allows behavior to be added to objects dynamically. It's a function that takes another function as an argument and extends its functionality without modifying it. Decorators are widely used in Python for...DiscussPython
Aditya Dubeyadityadubey.cloud·Apr 14, 2024Stack Frames in Python: Accessing the frame object using decoratorIntroduction Understanding memory management is crucial for writing efficient and error-free code in any programming language. In Python, a language known for its simplicity and readability, memory management plays a vital role in the execution of pr...Discuss·20 likes·103 readsframe stack
Josh Johnsonjoshjohnson.hashnode.dev·Apr 12, 2024SuiteScript + TypeScript + Decorators = ❤️I've been using TypeScript to write my SuiteScripts for the last 6 years and haven't looked back. The type system provided by TypeScript reduces risk, makes refactoring easier, and prevents silly mistakes we've all made when dealing with dynamically-...Discussnetsuite