Design Patterns

Flyweight Design Pattern in Java — step-by-step Programming tutorial on Progressive Robot

Flyweight Design Pattern in Java

Today we will look into Flyweight design pattern. Flyweight Design Pattern According to GoF, flyweight design pattern intent is: > Use sharing to support large numbers of fine-grained objects efficiently Flyweight design pattern is a Structural design pattern like [Facade pattern](/community/tutorials/facade-design-pattern-in-java "Facade Pattern in Java – Example Tutorial"), [Adapter Pattern](/community/tutorials/adapter-design-pattern-java "Adapter Design Pattern in Java […]

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

Iterator Design Pattern in Java

URL: https://www.progressiverobot.com/iterator-design-pattern-java/ Iterator design pattern in one of the behavioral pattern. Iterator pattern is used to provide a standard way to traverse through a group of Objects. Iterator pattern is widely used in [Java Collection Framework](/community/tutorials/collections-in-java-tutorial "Java Collections Framework Tutorial"). Iterator interface provides methods for traversing through a collection. Iterator Design Pattern ![iterator design pattern](images/iterator-design-pattern-java-section-1.png) […]

Read more
Java Dependency Injection - DI Design Pattern Example Tutorial — step-by-step Programming tutorial on Progressive Robot

Java Dependency Injection – DI Design Pattern Example Tutorial

URL: https://www.progressiverobot.com/java-dependency-injection-design-pattern-example-tutorial/ Java Dependency Injection design pattern allows us to remove the hard-coded dependencies and make our application loosely coupled, extendable and maintainable. We can implement dependency injection in java to move the dependency resolution from compile-time to runtime. Java Dependency Injection Java Dependency injection seems hard to grasp with theory, so I would take […]

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

Adapter Design Pattern in Java

Adapter design pattern is one of the structural design pattern and its used so that two unrelated interfaces can work together. The object that joins these unrelated interface is called an Adapter. Adapter Design Pattern ![adapter design pattern, adapter design pattern in java, adapter pattern, adapter pattern java example](images/adapter-design-pattern-java-section-1.png) One of the great real life […]

Read more
Java Singleton Design Pattern Best Practices with Examples — step-by-step Programming tutorial on Progressive Robot

Java Singleton Design Pattern Best Practices with Examples

URL: https://www.progressiverobot.com/java-singleton-design-pattern-best-practices-examples/ Introduction _Java Singleton Pattern_ is one of the _Gangs of Four Design patterns_ and comes in the _Creational Design Pattern_ category. From the definition, it seems to be a straightforward design pattern, but when it comes to implementation, it comes with a lot of concerns. In this article, we will learn about singleton […]

Read more
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
CHAT