Geeks With Blogs
Charles Courchaine Still in search of a compelling title & subtitle April 2010 Entries
Functional Adaptation
In real life and OO programming we’re often faced with using adapters, DVI to VGA, 1/4” to 1/8” audio connections, 110V to 220V, wrapping an incompatible interface with a new one, and so on. Where the adapter pattern is generally considered for interfaces and classes a similar technique can be applied to method signatures. To be fair, this adaptation is generally used to reduce the number of parameters but I’m sure there are other clever possibilities to be had. As Jan questioned in the last post, ......

Posted On Sunday, April 25, 2010 3:28 PM

Copyright © Charles Courchaine | Powered by: