• Fortran or Python, you decide

This isn't a post about the politics of Trump, Elon Musk, or DOGE, it's just about one of the distressing artifacts of their effort.

Sahil Lavingia is the founder of the "Gumroad" eCommerce site, and he's one of the bright young things that Musk brought in to cure all government ills. He was eventually locked out of DOGE after he went public with his concerns; see his writeup here.

He was brought in to help change how the VA does things, and he.. changed how the chat window looks and wrote some procedural Python dreck. An image of the chat window is at the last link, and you can wade through the Python dreck here.

Python is hard to reuse, it can have hidden side-effects, and it isn't self-contained. His code isn't even in a "class" (to the extent Python has classes).

For an example, consider the extract_text_from_pdf function. Isn't there already a library to do that? One that's been tested? Because that Python dreck will no doubt choke on some PDFs. Then, someone will need to figure out what happened and they might eventually decide to do things the DOGE way by tacking on more Python dreck, making it even worse. All of that will take a lot of time. Now, if he'd led the effort to create a government-wide, thoroughly-tested, thoroughly-vetted library in a real language (such as Java or PHP), that would have actually saved effort.

Even worse, bear in mind we're talking about a government agency that deals with highly personal information. It's pathetically easy to imagine foreign governments or hackers targeting that function specifically, such as crafting a PDF that causes it to fail in such a way that they'd get benefit from it (like installing a backdoor). Or, providing a non-PDF that looks like a PDF. Or, somehow trying to display some sort of phishing message to the user.

Plus, python developers can engage in "duck typing" and that should be considered a security risk. An adversary could change a highly-used method (such as a string manipulation method) so it would send them confidential information.

Given the above, one can only imagine what the other DOGE artifacts are like. Or, don't imagine them if you want to avoid nightmares.

Technology