Tags
#design-pattern
Blog posts, snippets, and glossary entries related to "design-pattern", gathered in one place.
- SnippetsCache-First, Live-Fetch Orchestration Pattern
Orchestration combining a fast path from cache and a slow path from remote. Measures cache hit/miss, fetch latency, and final outcome as metrics, delegating side effects outward.
- SnippetsEntity-Embedded Cooldown Warning Suppression
A pattern that embeds repeated warning suppression logic within the quota entity itself. Properly controls frequent warnings like rate limit notices and billing alerts.
- SnippetsTwo-Phase Repository Walk with Byte Budget
Split processing into path/size scan → structure analysis → read only needed chunks → parse to make memory limits controllable even for large repositories.
- BlogConsider strategy patterns when v-if branches increase in Vue
When there are three or more patterns of conditional branching using v-if, consider implementing a strategy pattern to dynamically switch components. Improved readability and maintainability.
hsb.horse