[Design Patterns in Javascript] The Adapter Design Pattern in Javascript

4 years ago
1

The Adapter Design Pattern is a useful design pattern for when you have two things you'd like to use together, but the interfaces don't match. This Javascript example will help you get a solid understanding of exactly how it works.

Want to move out of the beginner and intermediate programming levels into being more advanced? One of the things that will help get you there is learning design patterns.

In this video, we take a look at a classic: the Adapter Design Pattern.

Think about traveling to another country and wanting to plug your phone into the socket. You can't! You've got to buy an adapter.

That's exactly what's going on here.

In this video we also dive into a really neat example that shows you the Adapter Pattern in Javascript. 👊 Helpful Links 👊

Free E-book:
*Power Portfolio* - How to stand out... even if you're just getting started: https://bit.ly/2ylvdcb

Building a Messenger app in Rails 6: https://www.youtube.com/watch?v=s3CmHhDjuWc&t=18s

Action Cable Basics in Rails 6: https://youtu.be/t9iubpbqmnM

Building a Link Shortener with Rails 6 (playlist): https://www.youtube.com/playlist?list=PLjItgYqIzJ9WGy9WMf-44DXHB_7aWwJMc

Building a Stock Market Tracker with React JS (playlist): https://www.youtube.com/playlist?list=PLjItgYqIzJ9VOBgwZ82D9kjQ_QtM5R4u5

Loading comments...