Please enable JavaScript.
Coggle requires JavaScript to display documents.
Good Code (Good Code (Testable, Easy to change, Short, Less dependency…
Good Code
Good Code
Testable
Easy to change
Short
Less dependency & Less side effect
Principles
OOP
SOLID
Single Responsible
Open for Extension / Close for Modification
Liskov Subsitution
A extends B; a, b instance of A, B
a can replace b anywhere in program without breaking things
Interface Seggregate
many specified client interface
better than one general interface
Dependency Inversion
depends on Abstraction
not on Concrete
YAGNI - You Ain't Gonna Need It
Good Architecture
Easy to use
Easy to learn
Simple