O'Reilly logo

Design Patterns in Ruby by Russ Olsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Filling in the Gaps with the Adapter

Like most people who like to tinker with electronics, I have a box in my basement that is overflowing with little electronic gizmos. Near the top of the box is always my trusty USB-to-PS2 converter that lets me plug my new USB keyboard into that battered old Pentium 250 that I keep around for some reason. A little deeper is a layer of serial-to-parallel converters. The bottom strata of my box consist of all those little black power supply things.

All of these gadgets have one thing in common: They let me connect two devices that really want to talk to each other but can’t, because the pins do not line up or the sockets are the wrong size or the voltage coming from one is more than enough to send ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required