cranial_bore — 2011-07-07T06:48:35-04:00 — #1
I'm just trying to think of the term for code which is written as a bridge or interface between old and new code. Essentially gluing a new API to legacy code.
Can anyone help me out?
tomb — 2011-07-07T08:22:49-04:00 — #2
Wrapper? I don't know whether there is a proper name for wrapping legacy code but generally a wrapper is used to make otherwise incompatible pieces of code useable by providing the correct API.
aamonkey — 2011-07-07T12:39:00-04:00 — #3
cranial_bore — 2011-07-07T18:15:07-04:00 — #4
Adapter is the term I was trying to think of, though according to that Wikipedia article it's synonymous with wrapper.
Thanks — I can now write my doc block
pcspectra — 2011-07-08T09:06:25-04:00 — #5
Adapter and wrapper are essentially two of the same, but adapter is the formal term usually used in patterns books.
Also of possible interest is the strangler application, which Fowler describes as a process of gradually "strangling" legacy code and replacing with new code (As opposed to rewriting an entire system before going live):
lastcraft — 2011-08-03T18:02:50-04:00 — #6
For a more detailed breakdown of these techniques, check out the essay "Big Ball of Mud", Big Ball of Mud.
logic_earth — 2011-08-05T04:04:29-04:00 — #7
serverstorm — 2011-08-04T14:07:20-04:00 — #8
Great article Marcus!
kyberfabrikken — 2011-08-05T17:25:21-04:00 — #9
Eric Evans calls it an anti corruption layer. See Domain Driven Design (There's a short version available for free)
cranial_bore — 2011-08-05T22:03:50-04:00 — #10
Adapter sound a lot more succinct than Anti Corruption Layer; maybe the latter does more.