Workity Work: Finally Joining the In-Crowd (Maybe)

@arclight@oldbytes.space

Content warning: Workity Work: Finally Joining the In-Crowd (Maybe)

I need to put together a schedule & plan to build a replacement for a utility that was just dropped in our lap for which we do not have the source code. We do have a user manual though and the existing code currently works so we can run them side by side and watch for differences. Not a substitute for QA, testing, and V&V but definitely a good start.

My ballpark estimate is 6 months assuming I work on it 1/4 to 1/2 time. Coding & testing should take 2-3 weeks but writing up the use case, needs analysis, safety/quality level determination, requirements, spec, design, test plan, test report, user's manual, training materials, installation request form, and software release form is going to take more time. About 3/4 of that needs to be revised for each release. It all has a purpose; it's the cost of doing business.

That project is fairly basic - read data from 2-3 programs each with a bespoke output format, do a small amount of math, and write the results out in the bespoke input format used by a fourth code. I don't expect it's difficult to reimplement, it's just a lot of design and test documentation.

This may put on hold a different project. I wrote a bit of Python to extract comments from a Word document into a CSV file as part of our technical review process. Word considers comments to be disposable so they're normally inaccessible, buried in the morass of XML inside the .zip archive that is a modern .docx file. We need to retain comments as evidence that a document underwent a rigorous technical review. Comments on the two reports I reviewed last week were logged in a separate Markdown file and converted to a Word document at the end using pandoc.

The big problem with the Word comment extractor is that few engineers are going to install Python and go through the process of building a virtual environment, doing the one-time setup to pip to pull from our internal PyPi server (requires a file full of certs because why would IT manage internal certs), and finally installing the application with pip. It's too much fiddling around for people who don't write code.

And after last Friday's circus of trying to get pip-compile to work with Python 3.13, I think it would be appropriate to rewrite the thing in Rust so I can ship a statically-linked binary they can install like normal software. Or just copy to their machine somewhere.

I've written precisely one toy Rust program a few years ago that (in addition to its actual function) takes command line arguments and writes to the logging infrastructure. The Python code has its own object model for a comment log so it should not be too terrible to port to Rust. There are a few Rust libraries for docx manipulation out there so all the parts I need are available.

This is not so much of a "isn't Rust cool?" effort as much as just being so tired of constantly fighting some piece of Python dev infrastructure that worked fine 6 months to a year ago but is a pile of flaming wreckage today. It's simply not maintainable and the application installation process for non-developers is onerous. I'm not happy and my users aren't thrilled either. I'm tired of complaining about Python dev infrastructure's latest failure mode and I need to migrate away from Python, at least for standalone tooling like this. There's always the (not unreasonable) complaint that nobody else in the company knows Rust. That's fair but there are a dozen technologies in use internally today that nobody knew 4 years ago. The project risk is greater staying with Python than it is moving to Rust because Rust's dev tooling is not currently a nightmare to keep up with and doesn't appear to need constant fixing, reconfiguration, or replacement. I can't justify the amount of crap I have to deal with for what benefit Python provides. It's just not worth it anymore.