Tag: design-pattern
All the articles with the tag "design-pattern"
Collapsing Multi-Gateway Payment if-else with the Strategy Pattern
Posted on:June 2, 2026Wiring up several payment gateways with if-else gets longer and harder to maintain over time — notes on collapsing it with the Strategy Pattern plus a registry, leaving before/after hooks for each gateway to customize.