DEV Community

Discussion on: Adapter Pattern vs. Bridge Pattern

Collapse
 
huyduy profile image
Huy Duy

Let's say I want to upload to Google Drive but sometimes upload to Dropbox. Which pattern should I use?

Collapse
 
sanzhardanybayev profile image
Sanzhar Danybayev

I would go for Bridge Pattern

Collapse
 
doekenorg profile image
Doeke Norg

It always depends, but first thought would be adapter. And I can hugely recommend using FlySystem in that case. There are third party adapters for both.