in reply to create wrappers for existing tools or rewrite?

you might find joels opinion useful.
  • Comment on Re: create wrappers for existing tools or rewrite?

Replies are listed 'Best First'.
Re^2: create wrappers for existing tools or rewrite?
by hakkr (Chaplain) on Dec 31, 2004 at 11:24 UTC
    I'd say start off with the wrapper, once you have added an extra layer of abstraction it makes it easier to start changing things underneath. Assuming the wrapper is written well as a interface you should be able to change the implementation of it underneath without impacting any code that uses the wrapper.

    So you can mix the use of old code and new code by migrating each sub as you go. So you will end up with a pure perl implementation of your wrapper, the orginal system call implementation and probably a mixed one along the way as well.

    sometimes this is called programming by contract, your wrapper forms the contract that states what your implementation has to do.