Tagged articles

Wrapper Pattern

2 articles · Page 1 of 1
samdeepthink
samdeepthink
Sep 9, 2026 · Backend Development

Separation of Concerns: Decoupling SDK Details from Business Logic

The article illustrates Separation of Concerns beyond AOP by refactoring a reconciliation service that mixes WeChat Pay and Alipay SDK calls with business logic, introducing a wrapper layer with custom types to isolate SDK-specific parsing from core matching rules, enabling independent evolution of each concern.

JavaReconciliation ServiceSDK Integration
0 likes · 7 min read
Separation of Concerns: Decoupling SDK Details from Business Logic
Code Mala Tang
Code Mala Tang
Mar 18, 2025 · Frontend Development

Why Importing Whole Libraries Bloats Your Bundle and How Wrapper Patterns Can Help

This article explains how importing entire libraries like lodash and Framer Motion can dramatically increase bundle size, demonstrates precise import techniques, introduces a wrapper pattern for better maintainability, and offers practical tips for choosing tree‑shakable libraries and tracking import sizes.

JavaScriptWrapper Patternbundle optimization
0 likes · 6 min read
Why Importing Whole Libraries Bloats Your Bundle and How Wrapper Patterns Can Help