Learn to record business facts from an Aggregate Root and process them with TypeScript handlers. An order case explores tests, idempotency, post-save failures, and when to incorporate a Transactional Outbox.
Design a storage-independent OrderRepository and compare it with a DAO, an ORM, and an Application Service. Implement in-memory and SQLite adapters, retrieve complete Aggregates, and check saving, version conflicts, and rollback with executable tests.
Learn when to use a constructor, static method, or dedicated Factory to create complete domain objects. Build an order from a quote in TypeScript, check its invariants, and distinguish new creation from reconstituting persisted state.
Design an Order Aggregate with a root that controls its lines and protects shared rules. With TypeScript and executable tests, learn to choose consistency boundaries, avoid partial changes, and distinguish model guarantees from those requiring transactional persistence.
Learn to define Modules from business responsibilities, offer public interfaces, and control their dependencies. With an executable TypeScript example, distinguish a module from a folder, layer, or Bounded Context and establish useful boundaries for working with AI.
Learn to recognize an operation that needs a Domain Service and distinguish it from coordination and technical integrations. Design shipping selection in TypeScript, preserve Entities' own rules, and verify your decisions with tests and criteria for reviewing AI-generated code.
Learn to represent concepts with Value Objects that validate their data, compare by value, and offer immutable operations. Implement Money, Email, and Address in TypeScript, use them within an Entity, and discover what to check when reviewing AI-generated code.
Learn to recognize an Entity by its identity and protect its evolution through business operations. Implement a complete TypeScript example, distinguish identity equality from reference equality, and use tests to review both your model and AI-generated code.
Learn to distribute responsibilities across Presentation, Application, Domain, and Infrastructure. Follow a complete endpoint with TypeScript and Express, distinguish calls from dependencies, and use clear rules to review your code and AI-generated code.
Discover how a Domain Model guides code decisions and how it differs from a Data Model. Through TypeScript examples, learn to represent rules, recognize the responsibilities of DDD patterns, and give AI concrete criteria for implementing and reviewing changes.
Build a shared language that enables decisions. We will explore reservations, logistics, and education to detect ambiguities, write precise examples, and evolve names, contracts, and tests with AI assistance.
Learn to translate business rules into software with Domain-Driven Design. Explore its fundamental concepts through TypeScript examples and discover how to use them to guide and review AI-generated code, beyond whether it compiles or responds correctly to a request.