Logo Jim Chng
Jim Chng

  • About
  • Projects
  • Blog
    • Blog Menu Description
    • Archives

    • Series

      List of series.

    • Categories

      List of categories.

    • Tags

      List of tags.


/

  • Github RSS

  • Language
    • English

  • Font Size
  • Palette
  • Mode
  1. Home
  2. Tags
  3. Metaprogramming

The Comprehensive Guide to Python Decorators

feature-asyncmove-python-decorators.png
January 25, 202614 min read Development Python PythonAdvancedDecoratorsMetaprogrammingPython

Decorators are one of Python’s most powerful metaprogramming tools, widely used in the industry to write cleaner, more maintainable code. They excel at solving “cross-cutting concerns”β€”logic that applies to many different parts of your application but doesn’t belong to the core business logic of any single function.

Read More

Compile-Time Hex String Validation in Rust Using Const Evaluation

feature-rust-compile-time-hex-str-validate.png
January 12, 20258 min read Engineering Rust Development Engineering RustConst EvaluationMetaprogrammingRustType Safety

Learn how to leverage Rust's const evaluation features to validate hex strings at compile time, ensuring type safety and zero runtime overhead.

Read More

All Decorators - Systematically Decorating Python Class Methods

featured.webp
January 9, 202513 min read Engineering Python Development Engineering PythonDecoratorsMetaprogrammingPython

A deep dive into systematically decorating all methods of a Python class, exploring challenges and solutions using the Descriptor protocol.

Read More

Template Metaprogramming: A Tale of Two Languages (C++ and Rust)

feature-cpp-rust-median.png
March 16, 202417 min read Engineering Programming C++ Programming RustC++MetaprogrammingRustTemplatesType Systems

Exploring the fascinating world of template metaprogramming in both C++ and Rust through a practical example of calculating medians with type-dependent returns.

Read More
Profile
Jim Chng
Jim Chng
Software Engineer. Python | Rust | TypeScript | C++ | Go.
Earth
AboutContact
Taxonomies
Engineering 7 Development 6 Rust 4 Python 3 C++ 1 Databases 1 Decorator-Based Design 1 FastAPI 1 Programming 1 Python Security 1 ALL 13
Engineering 8 Python 4 Rust 3 API Security 1 Authorization 1 Databases 1 Dependency Injection 1 Development 1 FastAPI 1 Programming 1 ALL 12
Python 7 Rust 7 Metaprogramming 4 Decorators 3 Type Safety 3 ManuallyDrop 2 Pydantic 2 Advanced 1 Advanced Types 1 api security 1 ALL 38
2026 1 2025 6 2024 3 2023 2
Posts
  • feature-asyncmove-python-decorators.png
    The Comprehensive Guide to Python Decorators
    January 25, 2026
  • feature-gerraintVsDragon.png
    FastAPI Shield - Building Robust Authentication and Authorization With Layered Security
    June 13, 2025
  • featuresqlblog.png
    Taming Hierarchical Data: Mastering SQL Recursive CTEs for Advanced Tag Management
    May 10, 2025
  • feature-typescript-opaque-types.png
    Refining TypeScript's Opaque Types for Enhanced Type Safety
    February 1, 2025
  • featured-nox-blog-post.png
    Supercharging Python Automation With Nox: Beyond Basic Usage
    January 15, 2025
  • feature-asyncmove-python-decorators.png
    The Comprehensive Guide to Python Decorators
    January 25, 2026
  • feature-gerraintVsDragon.png
    FastAPI Shield - Building Robust Authentication and Authorization With Layered Security
    June 13, 2025
  • featuresqlblog.png
    Taming Hierarchical Data: Mastering SQL Recursive CTEs for Advanced Tag Management
    May 10, 2025
  • feature-typescript-opaque-types.png
    Refining TypeScript's Opaque Types for Enhanced Type Safety
    February 1, 2025
  • featured-nox-blog-post.png
    Supercharging Python Automation With Nox: Beyond Basic Usage
    January 15, 2025

Featured Posts

Featured Posts
  • The Comprehensive Guide to Python Decorators
  • FastAPI Shield - Building Robust Authentication and Authorization With Layered Security
  • Taming Hierarchical Data: Mastering SQL Recursive CTEs for Advanced Tag Management
  • Refining TypeScript's Opaque Types for Enhanced Type Safety
  • Supercharging Python Automation With Nox: Beyond Basic Usage

Recent Posts

Recent Posts
  • The Comprehensive Guide to Python Decorators
  • FastAPI Shield - Building Robust Authentication and Authorization With Layered Security
  • Taming Hierarchical Data: Mastering SQL Recursive CTEs for Advanced Tag Management
  • Refining TypeScript's Opaque Types for Enhanced Type Safety
  • Supercharging Python Automation With Nox: Beyond Basic Usage
Actions
Twitter Facebook

Go back Reload Copy URL

Move into the Future

Software Engineer | Python 🐍, Rust πŸ¦€, TypeScript, Mojo, Go

Copyright Β© 2016-2026 Jim Chng. All Rights Reserved.
Build with ❀️ from the Hugo and the HBS theme.