adapter-pattern-typescript
TypeScript/Node object adapters for boundary translation (DTO mapping, error model, sync/async), fitting ports/adapters or NestJS layers, with trade-offs and testing guidance.
浏览 ilkeozi 维护的已发布 AI 技能,比较用途与说明,并通过来源仓库了解安装方式。
已收录技能
19收录技能的仓库 Stars 合计
0仓库 Forks
0平均每个技能的仓库 Stars
0同一仓库中的多个技能可能共享 Stars,合计包含重复仓库数据。
TypeScript/Node object adapters for boundary translation (DTO mapping, error model, sync/async), fitting ports/adapters or NestJS layers, with trade-offs and testing guidance.
TypeScript guidance and examples for Prototype: cloning without coupling, explicit clone semantics, presets/registries, and pitfalls like deep copy ambiguity, circular refs, and external resources.
TypeScript guidance and examples for snapshot/restore undo and rollback while preserving encapsulation; clarifies originator/memento/caretaker roles, Command+Memento undo flows, and memory trade-offs versus Com...
TypeScript/Node decorator pattern using wrapper objects (not TS language decorators), same-interface composition, order sensitivity, and trade-offs vs Adapter/Proxy.
TypeScript guidance for Strategy with interchangeable algorithms, context delegation, client selection, runtime swapping, removing switch/if ladders, DI or registry selection, per-algorithm tests, and disambigu...
Simplified entrypoint over complex subsystems with TS/Node wiring, hidden lifecycle/ordering, testability via DI, and trade-offs vs Adapter/Mediator/Proxy.
TypeScript guidance for Flyweight with intrinsic/extrinsic split, immutable flyweights, Map-based factory/pool, and RAM-vs-CPU trade-offs.
TypeScript/Node singleton patterns (module instance, classic singleton class, DI singleton scope) with trade-offs on testability and hidden deps, plus safe usage guidance.
Represent actions as objects for decoupled invocation, queue/schedule/retry/audit, and optional undo/redo; TS/Node async-friendly command bus; trade-offs vs Strategy/CoR/Events.
TypeScript guidance for Visitor to separate algorithms from object structure via accept/visitor double dispatch, add new operations without modifying elements, and handle trade-offs when adding new element type...
Same-interface substitution for lifecycle control (lazy init/close/retry) and cross-cutting concerns (caching/logging/auth) in TS/Node, with trade-offs vs Decorator/Adapter/Facade.
TypeScript guidance for Observer with dynamic subscribe/unsubscribe, typed event payloads, sync vs async dispatch, lifecycle/memory leak avoidance, ordering/error isolation, and disambiguation vs Mediator, Pub/...
Provide TypeScript guidance, examples, and when to use Factory Method to reduce coupling to concretes and support product variants across environments.
Composable handler chains for checks/pipelines with early-exit; TS/Node-friendly functional or object handlers, runtime ordering, and trade-offs vs middleware/decorator/strategy.
Split two varying axes into abstraction + implementation using TS/Node composition, enable runtime swapping, and compare trade-offs vs Strategy/Adapter.
TypeScript guidance and examples for Abstract Factory to create families of related objects, keep variants consistent, and avoid coupling to concrete implementations.
Traverse without exposing representation; multiple traversal orders; pause/resume; TS Iterable/generators and async iterables; trade-offs vs Generator/Visitor/Composite.
Reduce many-to-many dependencies via a mediator for UI/workflow coordination with typed events; TS/Node composition; trade-offs vs Observer/Facade/Command; avoid God Object drift.
TypeScript guidance for tree structures with uniform leaf/composite operations, including trade-offs and disambiguation vs Decorator/Visitor.
默认按已收录数据中的 GitHub 仓库 Stars 排序。Stars 属于来源仓库,同一仓库的多个技能可能共享相同数值;它反映仓库关注度,不代表单个技能的安装量或质量评分。