Please enable JavaScript.
Coggle requires JavaScript to display documents.
Clean Architecture - Coggle Diagram
Clean Architecture
Paradigms
OOP
-
what is didnt give us
-
'inheritance' - could masquerade DSs with C, but OOP a bit easier. 0.5pt
'encapsulation' - C had this with header files, C++ broke! 0pts
-
-
Application architecture
Code organisation
Vertical slicing
-
-
-
-
-
what: code organisation pattern, so pair with DDD/clean arc etc
N layererd arc
-
-
why: clear technical separation, simple to start
modular monolith
-
-
-
why: simpler than micros, easier testing, can evolve into micros. later
screaming arc
what: structure communicates business purpose, reflect biz not framework
pair with vertical slices with top level and business areas: Tickets (CreateTicket, RefundTicket, GetTicket), Payments (TakePayment, RefundPayment)
-
-
-
Design Principles
SOLID
Srp - one reason to change aka only responsible to one 'actor'. Separate code for each actor! payroll, CTO, COO, CFO
-
-
-
-
-
-