Contents tagged with Bridge
Today I want to speak about design pattern Bridge.
Before I'll continue, here is definition of bridge design pattern:
Decouple an abstraction from its implementation so that the two can vary independently.
Very easy to grasp? For me honestly talking wasn't.
I propose another definition:
If your class need some kind of functionality that can be changed, you can inject this functionality as interface. And the question you can get for now, after reading my previous post about Adapter is what is difference between adapter and Bridge?
Well, the main difference is that you have access to all code. Or in other words you need adapter, if you have some library, but if you … more