How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Compile-Time Policy Composition for Password Validation -- Daniel Gómez Vergel

calendar_today November 7, 2026 person Daniel G Vergel domain cplusplus

This article presents the design of a simple password validator that can be configured at compile time by composing independent validation policies. Compile-Time Policy Composition for Password Validation by Daniel Gómez Vergel From the article: A traditional object-oriented solution could rely on dynamic polymorphism and the Decorator pattern to select and combine validation policies at runtime. In this article, we take a different approach: policy composition is performed entirely at compile time, making the validator configuration part of the type itself.

open_in_new Read original post