Tag

PropertyDecorator

1 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 22, 2024 · Frontend Development

Practical Use of TypeScript Decorators in Front‑End Development

This article demonstrates how to apply class, property, method, and parameter decorators in TypeScript to create configurable, non‑intrusive front‑end components such as tables and forms, showing concrete code examples and explaining the underlying AOP concepts.

ClassDecoratorPropertyDecoratorTypeScript
0 likes · 10 min read
Practical Use of TypeScript Decorators in Front‑End Development
Test Development Learning Exchange
Test Development Learning Exchange
Nov 27, 2023 · Fundamentals

10 Practical Python Metaprogramming Scenarios Using __getattr__, __setattr__, Property Decorators, Descriptors, and Metaclasses

This article demonstrates ten practical Python metaprogramming techniques—including dynamic attribute access with __getattr__, attribute assignment with __setattr__, descriptor-based validation, property decorators, dynamic class and method creation, and metaclass usage—providing complete code examples for each scenario.

DynamicAttributesMetaprogrammingPropertyDecorator
0 likes · 6 min read
10 Practical Python Metaprogramming Scenarios Using __getattr__, __setattr__, Property Decorators, Descriptors, and Metaclasses