Architecture
This section covers placing types at clear ownership and dependency boundaries in large systems. Every lesson stands alone while fitting the beginner-to-staff progression.
Learning outcomes
- Explain runtime and compile-time responsibilities.
- Write a correct example without unsafe escape hatches.
- Diagnose a representative compiler error.
- Identify API, performance, security, and production trade-offs.
- Apply the concept in a project or interview.
Lessons
- Domain Models
- DTOs
- Entity Types
- Value Objects
- Branded Identifiers
- Layer Boundaries
- Dependency Direction
- Public vs Internal Types
- Type Ownership
- Shared Contract Packages
- Monorepo Architecture
- Multi-Tenant Types
- Type-Safe Feature Boundaries
Study method
Run the examples under strict checking, intentionally introduce an error, explain the diagnostic, and finish the exercises.