Search
Lessons (20)
- Behavioral Patterns I: Observer, Strategy, Command, State
… 0] S -- D[by weight] In JavaScript, a strategy is usually just a function . You use it every …
- Frontend Testing Strategy
What to test and how. The testing trophy, unit tests with Vitest, component tests with Testing Library, API …
- What Are Design Patterns?
… JavaScript's first-class functions , closures and modules make several of them much simpler: - Strategy → just pass a …
- Which Pattern Do I Need?
… Facade simplifies many interfaces into one. Strategy vs State In Strategy the caller chooses. In State the object …
- Deploying & Operating Microservices
… That takes automation, careful release strategies and good visibility.  }); } When you have five notification channels, a strategy pattern may earn its place. With one, it …
- Caching & Redis
… 300 }); // TTL 5 min return product; } Other strategies Strategy How it works Pros Cons --- --- --- --- Cache-aside App reads …
- Releases, Observability and Production Safety
Ship changes safely with rollout strategy, flags, migration discipline, rollback plans and observable service-level outcomes. ![Safe release …
- API Contracts, Gateways and Security
… Sessions are server-managed state; signed tokens carry claims but still need expiry, rotation and revocation strategy. OAuth …
- REST API Design
… Common strategies: Strategy Example --- --- URL path (most common) /v1/users , /v2/users Header Accept: application/vnd.shop.v2 …
- O — Open/Closed Principle
… plug-in strategies js // ✅ Each payment method is a separate "plug-in" with the same shape const cardPayment …
- N+1 Queries, Loading & Pagination
… database/n-plus-one.svg) Three correct loading strategies Need Use Watch out for --- --- --- One related row per …
- How Browsers Render a Page
… script, then continues. mermaid gantt title Script loading strategies dateFormat x axisFormat %L section normal script parse HTML …
- Binary Search
… a number between 1 and 100." The smart strategy is to guess 50. "Higher!" Guess 75. "Lower!" Guess …
- Deployments, ReplicaSets & Rollouts
… shop-api } which pods belong to this Deployment strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 at most 1 extra …
- Service Communication: Sync vs Async
… harder debugging, and you need idempotency and ordering strategies. Commands vs events Command Event --- --- --- Meaning "Please do this …
- What Is Software Architecture?
… Design How is one part organised? Classes, patterns (Strategy, Repository), module APIs 🟡 Medium Code How is one …
- Helm, kubectl Cheat Sheet & Best Practices
… yaml Explain a field kubectl explain deployment.spec.strategy Switch namespace kubectl config set-context --current --namespace=team …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… pass the varying steps as functions (Strategy) instead of subclassing, i.e. composition over inheritance. --- 3. Iterator 📺 Analogy …
- Domain-Driven Design: Strategic Design
… It splits into subdomains , and not all of them are equally important. Type What it is Strategy Example …