in reply to Re^2: Mission critial code required: I have some code in BASIC and require it to be translated to perl
in thread XBASIC to Perl translator: semantical equity

That is one option. I tend to prefer, after a few times doing this, to rewrite the app. The number of improvements and bugs fixed tend to outweigh the number of errors. Granted, I have only worked with relatively young apps and rewriting them after they were implemented by junior developers. *shrugs* YMMV, as with everything.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

  • Comment on Re: Re^2: Mission critial code required: I have some code in BASIC and require it to be translated to perl

Replies are listed 'Best First'.
Re^4: Mission critial code required: I have some code in BASIC and require it to be translated to perl
by adrianh (Chancellor) on Apr 24, 2004 at 16:44 UTC
    That is one option. I tend to prefer, after a few times doing this, to rewrite the app. The number of improvements and bugs fixed tend to outweigh the number of errors.

    If you have buggy code that nobody understands then translation may be a better option.

    In my case my clients were perfectly happy with their little language and the quality of their codebase. They were not happy with their PDP-11s - which were getting more expensive to maintain every year. So building a new compiler for a new box was the obvious decision. For all I know they're still tweaking their little expert system now.

    If we'd gone the translation route then not only would the development time have been longer, the client would have also had to retrain their internal people to use a new language.

    Also 20KLOC isn't really that much. When you have organisations with hundreds of programmer years invested in their code you know why they prefer to take compiler development in-house rather than manually convert everything to whatever the current language-of-choice is :-)

    The number of improvements and bugs fixed tend to outweigh the number of errors. Granted, I have only worked with relatively young apps and rewriting them after they were implemented by junior developers. *shrugs* YMMV, as with everything

    Indeed. Sometimes moving to another language is exactly the right thing to do. Context is everything.