5 ms·
> Manually converting code from one format to another is the most boring, draining and soul-crushing work you can imagine. It's not that bad. I've converted ma
by WalterBright 10y ago
> Manually converting code from one format to another is the most boring, draining and soul-crushing work you can imagine.
It's not that bad. I've converted many programs from one language to another. For example, in the 1980s I converted the FutureNet DASH schematic editor from 16 bit x86 assembler to C (so it could be ported to other platforms). I converted my game Empire from BASIC to Fortran to PDP11 assembler to C. I've converted parts of Optlink from assembler to C. I've converted a lot of the DMD compiler from C++ to D.
The conversions I've done have all produced valuable results.
It's actually rather enjoyable work, but I like obsessive detail work.
- Ultimatt 10y agoMost of those have relatively high value added from the conversion. Perl to Python is essentially meaningless as the languages have feature parity. Complaints like "remove all the global variables and add objects", given Perl actually has all the constructs necessary to remove those way less hours could be used just architecturally refactoring what's there for the same actual value. Something like homogenising dependencies project level are abstract wins its hard to both quantify and be motivated by. Going from assembly to C is hugely improving the situation of productivity.
- WalterBright 10y ago> Most of those have relatively high value added from the conversion. That is true. There are so many things I can work on, I try to pick only the ones with the highest ROI of my time. > feature parity The initial conversion is feature parity. This is deliberate, as conversion only works if you ruthlessly avoid any attempt at fixing, improving, or refactoring code. Just translate. But once the translation is done, and the new program is working exactly like the old one, then the benefits start accruing as you can start removing the technical debt, and take advantage of what the new language offers.
- dom0 10y ago> Perl to Python is essentially meaningless as the languages have feature parity. Well there is some greater context here, namely that they want to put all their tools on one platform. That's not at all meaningless, though I too doubt the importance here. The poor deployment story of scripting languages likely does not play a big role here.
- majewsky 10y agoThere's a certain breed of developer (me included, and probably also Walter above) who really like refactoring and porting tasks which others would consider soul-crushing. When the codebase has evolved for a really long time, and you can see the different coding styles of different generations of developers, you get to feel like an archeologist or a geologist who's digging through multiple layers of rock.
- johnny22 10y agoyes please :) I definitely enjoy this sort of work .
- tofflos 10y agoI often use the archeology analogy to describe my work to others. I like how you become familiar with your predecessors and their strategies for solving problems. It's a way of getting to know them even if you never actually get a chance to meet them. Some of the best parts: 1. Trying something totally new only to realize that one of your predecessors has attempted to do it before. Bonus points if you can solve it this time around. 2. Digging around and realizing that your predecessor was in fact yourself. 3. Randomly encountering one of your predecessors in real life and becoming instant friends while reminiscing about old times. ;-)