-
FaCADE Design Pattern
Facade refers to the front of a building, facing a street or open space. The Facade pattern is a structural design pattern that provides a simplified and unified interface to a complex system For example, you have client side where, you need to start AudioPlayback,for that you need Decoder, Player, Resampler, Mixer, VolumeController etc. 1…
-
Composite Design Pattern
It lets you treat individual objects and groups of objects (composites) in a similar way. A structural pattern that lets you treat individual objects and groups of objects uniformly through a common interface. Represent part-whole hierarchies so that clients can treat leaf and composite nodes the same — enabling recursive tree structures. Another example :…
-
Bridge Design Pattern
Problem : Let’s say we want to communicate from system A to system B. ( Device and Remote ), Device can be anything (TV, fan, sensor), similarly for remote. You already have: Now: 🔁 Comparison Table: Scalability Impact Action Without Bridge (Tightly Coupled) With Bridge Pattern 📦 Classes you already have BasicTVRemote, AdvancedTVRemote,BasicFanRemote, AdvancedFanRemote TV,…
-
Adapter Desing pattern
Structural Design Pattern The Adapter design pattern is a structural design pattern that allows objects with incompatible interfaces to collaborate Follow more posts @ https://jdecodes.wordpress.com My all design pattern articles :
-
Visitor Design Pattern
Visitor is a behavioral design pattern that lets you separate algorithms from the objects on which they operate. For example you have a class Circle, Square, initially you added a functionality to provide area. Now, there is requirement that you want to provide perimeter as well, or some other stuff. You could say, well, we can directly…
-
Strategy pattern
You have some underlying algorithms and from client you want to use interchangibly. Follow more posts @ https://jdecodes.wordpress.com My all design pattern articles :
Subscribe
Enter your email below to receive updates.