- Home
- Java Ecosystem
- Book 5
Book 5: Software Design & Design Patterns
Designing code that lasts: principles, SOLID, the classic design patterns, enterprise patterns, refactoring and design decisions.
The library is released one complete volume at a time, in order, starting with Book 1. The current release is Book 1, Volume II (Generics, Collections & Type System). The other volumes show the first topics published earlier; each fills in when its turn in the release order comes.
Software Design Foundations & Principles
1.1 Software DesignWhat design is, how it differs from implementation and architecture, and its high- and low-level forms1.2 Why Software Design MattersChangeability, maintainability, testability, reusability, extensibility and reliability1.3 Good vs Poor DesignCoupling, cohesion, complexity, duplication, rigidity, fragility and immobility1.4 Design as a Set of Trade-offsSimplicity vs flexibility, performance vs maintainability, abstraction vs complexity, reuse vs couplingVolume page →Object-Oriented Design & SOLID
1.1 ObjectsState, behaviour and identity1.2 ClassesResponsibility, collaboration and inheritance1.3 RelationshipsAssociation, aggregation, composition and dependency1.4 Composition vs InheritanceReuse through inheritance, reuse through composition, fragile base class and composition preferenceVolume page →Creational & Structural Design Patterns
1.1 What Is a Design Pattern?Pattern, problem, context, solution and consequences1.2 Pattern CategoriesCreational, structural and behavioral patterns1.3 Pattern vs FrameworkPattern, library, framework and architecture1.4 Pattern SelectionProblem-first thinking, trade-offs and when not to use a patternVolume page →Behavioral Design Patterns
1.1 Strategy PatternEncapsulated algorithms and runtime selection1.2 Strategy in JavaInterfaces, lambdas and functional interfaces1.3 Strategy vs Conditional LogicThe if/else explosion and extension without modification2.1 Template MethodAlgorithm skeleton and hook methodsVolume page →Enterprise & Application Design Patterns
1.1 Layered ArchitecturePresentation, application, domain and infrastructure1.2 Service LayerApplication services, transaction boundaries and business orchestration1.3 RepositoryPersistence abstraction and a collection-like interface1.4 Unit of WorkChange tracking and transaction coordinationVolume page →Refactoring, Code Quality & Evolutionary Design
1.1 What Is Refactoring?Behaviour preservation and structural improvement1.2 Why Refactor?Reduce complexity, improve maintainability, enable change1.3 Refactoring SafetyTests, small changes and continuous verification2.1 BloatersLong method, large class and large parameter listVolume page →Advanced Design & Architecture-Level Design Decisions
1.1 Method-Level DesignResponsibilities and control flow1.2 Class-Level DesignCohesion, encapsulation and collaboration1.3 Module-Level DesignDependency direction, public API and internal implementation1.4 Service-Level DesignService responsibility, API boundaries and ownershipVolume page →
Free question pack
Get 100 free Core Java interview questions
Subscribe for the Book 1 question pack (PDF, every answer explained) and new tutorials once a week. No spam, unsubscribe anytime. What is in the pack?