Category Archives: Design Patterns

Dependency Inversion Principle (DIP)

This principle says the decoupling of software modules. This way, instead of high-level modules depending on low-level modules, both have to depend on abstractions The classical example of this principle of bean configuration in the Spring framework. Another very good example of this principle: When you go to a local store to buy something, and you decide… Read More »

Interface Segregation Principle (ISP)

This principle says: “Clients should not be forced to implement unnecessary methods which they do not use” Let’s take an example. A Developer is created an interface Reportable and added two methods generateExcelReport() and generatedPdfReport(). Now a client wants to use this interface but he intends to use reports only in PDF format and not in excel. Will he be… Read More »

Single Responsibility Principle

Single Responsibility Principle (SRP) In our application-level code, we define model classes to represent real-time entities such as Employee, Person, Admin etc. Most of these classes are examples of SRP or Single responsivity Principle because when we need to change the state of an Employee only then we will modify an Employee class and if… Read More »

SOLID Design Principles

Classes are mainly the building blocks of any Software or application. If these blocks are not designed properly, the application or software is going to face a tough time in the future in terms of maintenance. This essentially means that not so well-written classes can lead to very difficult situations when the application scope goes… Read More »

What are list of good software practices for developing Scalable, Testable and Maintainable Software?

In This post, we will take about  What are list of good software practices for developing Scalable, Testable, and Maintainable Software? Understanding the requirement and the business. We should ask appropriate questions to resolve requirement ambiguities. We should follow good software development practices like Agile with Test Driven Development. Agile methodology development is all about incorporating… Read More »

Iterator Design Pattern in Java

In this post, We will talk and learn about the Iterator Design Pattern in Java. Key Points About Iterator Design Pattern : Iterator design pattern falls under behavioral patterns. This pattern is mainly used to provide a standard way to traverse through a group of Objects. Iterator pattern is widely used in the Java Collection framework. Iterator interface… Read More »

Interpreter Design Pattern in Java

In this post, We will talk and learn about the Interpreter Design Pattern in Java. Key Points About Interpreter Design Pattern : Interpreter design pattern falls under behavioral design pattern. This pattern is mainly used to define a grammatical representation for a language and provides an interpreter to deal with this grammar. One of the best examples of… Read More »