Articles

Bridge Design Pattern is a Structural Design Pattern used to decouple a class into two parts — abstraction and it’s implementation — so that both can be developed independently. This promotes the loose coupling between class abstraction and its implementation. You get this decoupling by adding one more level of indirection i.e. an interface that acts as a bridge between your original class and functionality. Insulation is another name of the Bridge Design Pattern in the C++ world.

"All problems in computer science can be solved by another level of indirection." — David Wheeler

Source de l’article sur DZONE


I wish all of my interfaces were segregated as good as this fish at Catania fish market

In this fourth post on SOLID principles, we will take a look at the interface segregation principle and how to interpret it. If you want to check out the previous post on the Liskov Substitution Principle, you can find it here.

Definition

According to Robert Martin,

Source de l’article sur DZONE