Week 6 Part III · Architecture and Patterns
Instructor lesson plan: lecture (2 h) and practice (2 h).
solution foldersproject referencesdependency rulesC4 diagrams
| 0:00-0:15 | 15 min | Proposal feedback synthesisCommon scope and boundary issues from week 5. |
| 0:15-0:40 | 25 min | The four common layers
|
| 0:40-1:05 | 25 min | Dependency direction
|
| 1:05-1:15 | 10 min | DTOs, commands, and servicesApplication input and output models versus API models. |
| 1:15-1:25 | 10 min | Break |
| 1:25-1:50 | 25 min | C4 diagramsSystem context, containers, and component diagrams for student systems. |
| 1:50-2:00 | 10 min | Practice previewRestructure the project without breaking behavior. |
Students often think: layers are just folders.
Set it straight: layers are dependency and responsibility rules. Folders without rules do not create architecture.
| 0:00-0:20 | 20 min | Dependency mapDraw current project references and identify violations. |
| 0:20-0:55 | 35 min | Restructure solutionMove code into presentation, application, domain, and infrastructure projects. |
| 0:55-1:10 | 15 min | Compile and inspectFix reference direction and keep behavior intact. |
| 1:10-1:20 | 10 min | Break |
| 1:20-1:50 | 30 min | Diagram updateCreate a C4 container or component sketch for the new structure. |
| 1:50-2:00 | 10 min | Project-integration briefSubmit the revised structure and diagram. |