Design Patterns

Android MVVM Design Pattern — step-by-step Programming tutorial on Progressive Robot

Android MVVM Design Pattern

In this tutorial, we'll be discussing and implementing the Android MVVM Architectural Pattern in our Android Application. We've previously discussed the [Android MVP Pattern](/community/tutorials/android-mvp). Why do we need these patterns? Adding everything in a Single Activity or Fragment would lead to problems in testing and refactoring the code. Hence, the use of separation of code […]

Read more
Mediator Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Mediator Design Pattern in Java

URL: https://www.progressiverobot.com/mediator-design-pattern-java/ Mediator design pattern is one of the behavioral design pattern, so it deals with the behaviors of objects. Mediator design pattern is used to provide a centralized communication medium between different objects in a system. Mediator Design Pattern ![mediator pattern, mediator design pattern, mediator pattern java](images/mediator-design-pattern-java-section-1.png) According to GoF, mediator pattern intent is: […]

Read more
Bridge Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Bridge Design Pattern in Java

Today we will look into Bridge Design Pattern in java. When we have interface hierarchies in both interfaces as well as implementations, then bridge design pattern is used to decouple the interfaces from implementation and hiding the implementation details from the client programs. Bridge Design Pattern Just like [Adapter pattern](/community/tutorials/adapter-design-pattern-java "Adapter Design Pattern in Java […]

Read more
Observer Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Observer Design Pattern in Java

URL: https://www.progressiverobot.com/observer-design-pattern-in-java/ Observer Pattern is one of the behavioral design pattern. Observer design pattern is useful when you are interested in the state of an object and want to get notified whenever there is any change. In observer pattern, the object that watch on the state of another object are called Observer and the object […]

Read more
Builder Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Builder Design Pattern in Java

Today we will look into Builder pattern in java. Builder design pattern is a creational design pattern like [Factory Pattern](/community/tutorials/factory-design-pattern-in-java "Factory Design Pattern in Java") and [Abstract Factory Pattern](/community/tutorials/abstract-factory-design-pattern-in-java "Abstract Factory Design Pattern in Java"). Builder Design Pattern ![builder pattern in java, builder design pattern, builder pattern](images/builder-design-pattern-in-java-section-1.png) Builder pattern was introduced to solve some of […]

Read more
Prototype Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Prototype Design Pattern in Java

URL: https://www.progressiverobot.com/prototype-design-pattern-in-java/ Prototype design pattern is one of the Creational Design pattern, so it provides a mechanism of object creation. Prototype Design Pattern ![prototype design pattern](images/prototype-design-pattern-in-java-section-1.png) Prototype design pattern is used when the Object creation is a costly affair and requires a lot of time and resources and you have a similar object already existing. […]

Read more
Chain of Responsibility Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Chain of Responsibility Design Pattern in Java

Chain of responsibility design pattern is one of the behavioral design pattern. Chain of Responsibility Design Pattern ![Chain of Responsibility Design Pattern, Chain of Responsibility Pattern, Chain of Responsibility Pattern Java, Chain of Responsibility](images/chain-of-responsibility-design-pattern-in-java-section-1.png) Chain of responsibility pattern is used to achieve loose coupling in software design where a request from client is passed to […]

Read more
Proxy Design Pattern — step-by-step Programming tutorial on Progressive Robot

Proxy Design Pattern

URL: https://www.progressiverobot.com/proxy-design-pattern/ Proxy Design pattern is one of the Structural design pattern and in my opinion one of the simplest pattern to understand. Proxy Design Pattern ![proxy design pattern](images/proxy-design-pattern-section-1.png) Proxy design pattern intent according to GoF is: Provide a surrogate or placeholder for another object to control access to it. The definition itself is very […]

Read more
Command Design Pattern — step-by-step Programming tutorial on Progressive Robot

Command Design Pattern

Command Pattern is one of the Behavioral Design Pattern. Command design pattern is used to implement loose coupling in a request-response model. Command Pattern ![command design pattern, command pattern](images/command-design-pattern-section-1.png) In command pattern, the request is send to the invoker and invoker pass it to the encapsulated command object. Command object passes the request to the […]

Read more
State Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

State Design Pattern in Java

URL: https://www.progressiverobot.com/state-design-pattern-java/ State design pattern is one of the behavioral design pattern. State design pattern is used when an Object change its behavior based on its internal state. State Design Pattern ![state design pattern, state design pattern in java, state pattern](images/state-design-pattern-java-section-1.png) If we have to change the behavior of an object based on its state, […]

Read more
CHAT