by rjbwork · 2y ago · 0 comments
An aside - while I love the snark and making fun of these "legacy" systems, it has given me a window into my own maturity as an engineer. I was absolutely this cavalier and cocky about poorly implemented systems I've been a user or admin of in the past. But having now spent nearly a decade and a half getting paid for this work and seeing a lot of stuff and the evolution of best practices, I have much more empathy for the organizations and authors of these systems. There are very very few programs that ever achieve something like elegance and beauty when they collide with the real world.
In fact there is a non-zero chance that the company's response to this blog post will be to file a lawsuit against these students for "hacking" and ruining their lives, as has happened many times in the past in such cases.
You just can't always apply today's sensibilities to code that has lasted longer than your life so far.
I agree that companies need to be held responsible for their decisions not to update security, but that's a different (related) issue than 'legacy'.
I am more concerned with legislation and law enforcement. That's the real way to fix things. Rust rewrites wont change business incentives.
Learning existing system is harder than to create something seemingly equivalent that author understands well. For some time at least.
If the code is on the back burner and only receiving maintenance then no need to mess with it.
But active feature development? Teams need to have a grasp on it and have a way to get a mental model of what is happening.
If there are knowledgeable people to lead the process, and the transition is done appropriately: it is 100% possible and I have done multiple times in my career.
The burden on rewriting shouldn't lie in developers alone. And before someone quotes Spolsky: not every software is Netscape Navigator.
(this corollary might be most applicable in robotics?; dealing with the fallout of kubernetes being forced onto robots by cloud-oriented folks)
Solving problems? Sure, love to.
But slogging out LOC for the sake of it? Hard pass. Even as a teen that never really appealed to me.
If I can do things better, and I usually can, it's because I have a more performant higher level algorithm or set of low level optimization strategies to apply.
I agree, Those API organizers are just creating future crap for others. However, objective benchmarks showing my changes yield 10 to 100 thousand times quicker execution than the old method mean the legacy code was crap...
Legacy being crap is not always the fault of devs. Back on Z80 and similar, before execution caches were expansive and expensive to invalidate, the short circuiting && and || bool operators made sense. Now that invalidating the CPU instruction cache with a jump is far more expensive than just running the ops these short circuits are trying to avoid, it is better to just use bitwise | or & instead of boolean || or && unless there are needed side-effects (really should make the conditional evaluations into proper branches [if statements] anyway, if only for clarity). Benchmark it and see. C is stuck doing LOTS of old and busted style logic, and coders imagine their compiler is doing a lot of magic voodoo under the hood that simply isn't happening. There's loads of compiler optimization hype.
Sometimes the hardware or platform just shifts underneath Good Code and turns it into Crap Code.
I think as a profession we need more derision and mockery of poorly made, documented and maintained shit and less reverting to robotic response of "you just don't understand, man".
A lot of this stuff is hacked together by young aspiring programmers just finding their footing, often grossly underpaid, and with very little experience or formal training. Which is great, respect the hustle! But not so super when personal data is being handled. Luckily, it kind of looks like they maybe dodged that bullet in this case?
Lesson of the day is: Use different passwords for each thing you log in to. :-)
This is an odd generalization to me - are the massive mainframe COBOL systems handling personal data at banks to this day, "hacked together" by underpaid young programmers? I'm sure they were underpaid... but inexperienced with no formal training?
Here are some other kinds of business:
Freight
Logistics
Concrete
Construction
Eyeglasses
Lawn care
Plumbing
Cabinet making
Law Office
Hair styling
These small shops run on bespoke industry specific software with few competitors. They are often buggy and out of date because there is only one game in town a lot of times.
There is more to the world than huge businesses headquartered in NYC or SF.
someone doesn't have any experience with offshore programmers, eh?
I write embedded systems. Tell me about it!
What still bugs me though is that when poorly done/hacky/broken systems still 'work', the assumption is that everything is 'fine'. When I'm needing to work with those systems, the assumption by others (management, other devs, whoever) is ... "why is this taking so long? just do XYZ and move on!" not understanding that often I'm discovering all the ways the broken system is broken - very hidden things, bad docs, charset issues, speed, incorrect data coming back that other consumers just 'know' to hack around (without it being documented anywhere, etc). It's not frustration at the devs of the other system as much as the pressure you face when others don't realize how much workaround you're needing to do to do something 'simple'. And yeah, it should be simple, if the broken system wasn't broken in the first place.
Being able to jump in and put out fires on a building that's already built has served me very well in my career, but in overall satisfaction as well!
To me it seems like a miracle anyone ever had the budget to create this kind of website to begin with, let alone to "keep up with the times" :)