Revitalizing Geriatric Code

How Polymorphism Enables Effective Reuse of Legacy Code
for Both Present and Future Modifications

By Bradley O'Hearne

pplication code is not like wine; it does not ferment into a more pleasurable substance as time passes; rather, it does the opposite, and grows progressively more unwieldy as time goes by. Such code is known as "legacy," and my purpose is to discuss the use of polymorphism as a means to enable effective reuse of legacy code for both present and future modifications.

Since the onset of object-oriented (OO) programming, the reusability of code has been a much-discussed topic and a major goal of most OO development efforts. Reuse of code is a noble achievement, for well-known reasons. Code doesn't have to be physically written more than once (or cut and pasted into multiple places). Code can be maintained in a single location, and the benefits of bug fixing, optimization, revisions to error handling, and enhanced feature are experienced wherever the code is referenced.

Over the course of time, effective reuse decreases development and support costs as code libraries within an organization grow and are reused across applications. The advantages of reuse are clear, and so logically, it is strongly pursued in new development efforts. However, what is not so evident is how to maintain the benefits of reuse as code ages.

 
The Legacy Class

In this Article
Introduction Retrofitting the Legacy Code
The Legacy Class








FEATURE SOFTWARE:
dtSearch Web
Add power searching to your web site.
Buy Now!

Encrypt It
Encrypt and Decrypt Data, Passwords and Files within your application.
Buy Now!

FEATURE BOOK:
PointBase Mobile Edition
Enable local data access for mobile users.
Buy Now!
Accessibility Legacy Issues (from Java.Sun.com)

JCE 1.2 Legacy Code (from Java.Sun.com)

DevX Java Zone



Product Review of the Week
Rational Suite 2001

Site of the Week

Book Review of the Week
Object-Oriented Implementation of Numerical Methods

Tip of the Day
Use Math.PI and Math.E for Scientific Calculations

Download of the Week
Ebitec JMS Mail Bridge





 
Sponsored Links

Advertising Info  |   Member Services  |   Contact Us  |   Help  |   Feedback  |   Site Map
Jupiterweb networks

internet.comearthweb.comDevx.comClickZ

Search Jupiterweb:

Jupitermedia Corporation has four divisions:
JupiterWeb, JupiterResearch, JupiterEvents, and JupiterImages

Copyright 2004 Jupitermedia Corporation All Rights Reserved.
Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Jupitermedia Corporate Info | Newsletters | Tech Jobs | E-mail Offers

Copyright Information/Privacy Statement