Tagged “Design-Principles”
3 articles with this tag.
- Designing concurrent objectsDoug Lea's design forces for concurrent Java — safety, liveness, performance and reusability — and the strategies for thread-safe objects: immutability, confinement, full synchronization, containment, lock splitting, optimistic updates with CAS, deadlock avoidance through lock ordering, and documenting thread-safety policies.
- OO design principlesThe nine object-oriented design principles that the GoF patterns put into practice: encapsulate what varies, favour composition over inheritance, program to interfaces, loose coupling, open/closed, dependency inversion, least knowledge, the Hollywood Principle and single responsibility — each with the patterns that apply it.
- SOLID PrinciplesThe five SOLID principles with Java examples: what each one actually says, the problem it prevents, how it connects to design patterns, and how to avoid applying it dogmatically.