Design Patterns
-
SOLID Principles
The SOLID principles are five design principles that help developers write maintainable, scalable, and testable object-oriented code. 1. Single Responsibility Principle (SRP) A class should have only one reason to change. Example (Violating…
-
The Builder Pattern
The Builder pattern is a creational design pattern used in object-oriented programming, particularly in Java, to simplify the construction of complex objects. It is especially useful when an object requires a lot of…
-
Spring Config Server & Client
Configuration are properties that are required by the application but that are specific to an environment. The 12 factor methodology for building cloud native applications notes that externalizing configuration is important where applications…
-
Structural Software Design Patterns
Structural design patterns are a way of structuring code to make it more maintainable and flexible by re-using solutions to common problems. The idea stemmed from the book “Design Patterns: Elements of Reusable…
-
Inversion of control in Spring
In Inversion of Control (IOC), the container itself maintains the class dependencies and manages the lifecycle of those dependencies. Objects are injected as dependencies when required at runtime or at application startup as…