SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Thread: what's the term for code allowing legacy & new to interact?

  1. #1
    SitePoint Wizard cranial-bore's Avatar
    Join Date
    Jan 2002
    Location
    Australia
    Posts
    2,633
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    what's the term for code allowing legacy & new to interact?

    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?
    mikehealy.com.au
    diigital.com art, design . Latest WorkSaturday Morning

  2. #2
    SitePoint Guru TomB's Avatar
    Join Date
    Oct 2005
    Location
    Milton Keynes, UK
    Posts
    960
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    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.

  3. #3
    SitePoint Guru aamonkey's Avatar
    Join Date
    Sep 2004
    Location
    kansas
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    aaron-fisher.com - PHP articles and more

  4. #4
    SitePoint Wizard cranial-bore's Avatar
    Join Date
    Jan 2002
    Location
    Australia
    Posts
    2,633
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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
    mikehealy.com.au
    diigital.com art, design . Latest WorkSaturday Morning

  5. #5
    SitePoint Evangelist
    Join Date
    Aug 2005
    Location
    Winnipeg
    Posts
    498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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):

    StranglerApplication

    Cheers,
    Alex
    The only constant in software is change itself

  6. #6
    ********* Victim lastcraft's Avatar
    Join Date
    Apr 2003
    Location
    London
    Posts
    2,423
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hi...

    For a more detailed breakdown of these techniques, check out the essay "Big Ball of Mud", Big Ball of Mud.

    yours, Marcus
    Marcus Baker
    Testing: SimpleTest, Cgreen, Fakemail
    Other: Phemto dependency injector
    Books: PHP in Action, 97 things

  7. #7
    Foozle Reducer ServerStorm's Avatar
    Join Date
    Feb 2005
    Location
    Burlington, Canada
    Posts
    2,612
    Mentioned
    83 Post(s)
    Tagged
    1 Thread(s)
    Great article Marcus!
    Steve

  8. #8
    ¬.¬ shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    8,985
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    In Windows, those are called shims. https://secure.wikimedia.org/wikiped...28computing%29
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  9. #9
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Eric Evans calls it an anti corruption layer. See Domain Driven Design (There's a short version available for free)

  10. #10
    SitePoint Wizard cranial-bore's Avatar
    Join Date
    Jan 2002
    Location
    Australia
    Posts
    2,633
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Adapter sound a lot more succinct than Anti Corruption Layer; maybe the latter does more.
    mikehealy.com.au
    diigital.com art, design . Latest WorkSaturday Morning

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •