Tag: Design Patterns
All the articles with the tag "Design Patterns".
-
SOLID Principles in Java: Explained with Examples
Series: Java Design Patterns Series
Learn SOLID principles in Java with practical examples for SRP, OCP, LSP, ISP, and DIP to write cleaner, maintainable code.
-
Builder Pattern in Java: Explanation and Example
Series: Java Design Patterns Series
Learn the Builder pattern in Java with a clear example, method chaining, immutable objects, advantages, and common trade-offs.
-
Composite Pattern in Java: Explanation and Example
Series: Java Design Patterns Series
Learn the Composite pattern in Java with a clear tree-structure example, uniform object handling, advantages, and common pitfalls.
-
Factory Pattern in Java: Explanation and Example
Series: Java Design Patterns Series
Learn the Factory pattern in Java with a clear example, object creation flow, benefits, trade-offs, and when to use it.
-
Factory Method Pattern in Java: Explanation and Example
Series: Java Design Patterns Series
Learn the Factory Method pattern in Java with a clear example, subclass-based creation, benefits, trade-offs, and use cases.
-
Prototype Pattern in Java: Explanation and Example
Series: Java Design Patterns Series
Learn the Prototype pattern in Java with cloning examples, shallow vs deep copy, benefits, pitfalls, and practical use cases.
-
Abstract Factory Pattern in Java: Explanation and Example
Series: Java Design Patterns Series
Learn the Abstract Factory pattern in Java with a clear example, object families, advantages, trade-offs, and when to use it.
-
Vertical vs Horizontal Sharding: Key Differences Explained
Series: Database Scalability Series
Compare vertical vs horizontal sharding with clear examples, trade-offs, and guidance on when each database scaling strategy fits best.