Adapter: The Travel Plug Pattern


This is the easiest design pattern to understand, because you've literally held one in your hand.




The travel plug


You fly from India to the UK. Your phone charger has round Indian pins. The UK wall socket wants flat rectangular pins.

Do you throw away your charger? Rewire the hotel wall? Of course...