3 ms·
I never wrote RPG code, but 50k LOC seems a pretty small project to me...
by tigershark 10y ago
I never wrote RPG code, but 50k LOC seems a pretty small project to me...
- meddlepal 10y agoIt might be small, but I doubt it is. I am really curious what kind of test suite an RPG program would have. If it doesn't have a test suite then good luck because you're basically rewriting a decades old 50K line program and its behavior by guessing how it works. Also who knows what kinds of weird data formats or protocols it deals with that no libraries exist for in other languages.
- dragonwriter 10y agoA 50k LOC program serving a critical business function without a test suite or requirements documentation can be quite a chore to replace, especially if you let it go until you have neither staff experienced in the language or with experience with the background of the specific application.
- WalterBright 10y agoI've converted such programs from one language to another. It is not necessary to understand how the program works, only how the language works. What you do is function by function, convert the language by duplicating what it does in the new language. Resist any and all urges to fix it, refactor it, improve it, etc. Just translate.
- chii 10y agoThe problem is if there's some obscure language behaviour that's not documented well, and the code relied on that behaviour. unless you're an expert and knows the language inside out, it's hard to even know such a problem occurred.
- WalterBright 10y agoTrue, but languages tend to be far, far better understood and documented than some random application logic.
- fgonzag 10y agoOne semi modern language to another language is one thing. You could probably transpile the damn thing. Converting batch based, RPG systems to a whole different paradigm, without a test suite covering the edge cases and 0 documentation is another.
- bpicolo 10y ago> critical business function without a test suite or requirements documentation Even in the world of standard consumer webapps, this is a real challenge.