by blueflow · 4y ago · 0 comments
I hate guessing parameters for a API call, i hate debugging the garbage that my coworker installed from Github, i hate learning into some software and having it obsoleted within two years and i hate fixing the CI/deployments.
I love writing bare-metal code for the 8086 or AVR, because these platforms and their peripheral chips are well documented. I love platforms with formal standards and good documentation like C or shell script. But this isn't always useful these days.
I hate everything to do with devops and sysadmin work though. It superficially looks like programming work but it totally different, and often involves manually doing things that feel like they should be automated but can't quite be, or working on live systems making changes directly rather than writing code that only touches anything real after review and test.
I hate how often things get obsolete, but sometimes the constant march is wonderful. It's always great to rip out half you in-house code when your new framework does it all for you.
You can write large applications while only having to maintain your core functionality and some wrappers for external stuff.
When IoT stuff started getting big and SSDs became affordable my attitude started slowly changing as I actually experienced more software complexity and how it could just work, and save so much time for users and devs.
The tradeoff is it only saves time if you do exactly what the library dev wants you to do, and don't look into the internals too much.
I still enjoy digital electronics design, but I don't do much outside of work because the finished product is often a bit disappointing compared to commercial stuff that usually has an app ecosystem, a warranty, an injection molded case, etc.
I've been on somewhat of a decluttering binge both physically and digitally, so I've currently got almost no DIY stuff in use at home.
[0] How's this for an abomination: due to an error using SQLAlchemy, one of our types was being constructed in one way in our code and being constructed in a different way by SQLAlchemy. When we instantiated it directly, you got its properties using methods: organization_id(), last_updated_at(), etc. When we loaded it from the database using SQLAlchemy, organization_id, last_updated_at, etc. were fields, not methods. Somehow people managed to call foo.organization_id(), foo.last_updated_at(), etc. in all the code paths where we handled instances we instantiated directly, and access foo.organization_id, foo.last_updated_at, etc. in all the code paths where we dealt with instances fetched from the database.
There's a sense of mystery when diving into an abandoned code base and deciphering the ancient scripts found there. There's the accomplishment when puzzle pieces start fitting together and the original programmer's intent reveals itself in the debris of half-decayed architecture. And then you chisel away at that, extract the beautiful core, and relearn the ancient knowledge. Sometimes there's a strange sort of historical connection formed with immaterial, long-gone programmers. There's always something to learn from those bygone workarounds and edge case traps.
Maybe I'm weird, but I love this stuff.
Much better than dealing with the hurt feelings and entrenched biases of live developers.
Once in that kind of codebase, I found a snippet of code that gave me a tiny glimpse of the long tuning, bugfixing, and hacking had happened on it. In a constant propagation pass inside a compiler/jit system, deep inside for a single kind of propagation, was the line:
if (strcmp(symbol_name, "ip") != 0) {
Gack!! The instruction pointer, special-cased.Blaming others is fine but really sometimes that "other people" is yourself and often you barely remember that you wrote it.
Yes, exactly. My memory is extraordinarily crappy, another reason for me to invest time into writing documentation.
I have a terrible memory. Sometimes I'll look at code I wrote ages ago and think "Wow! I really did a good job here.". Other times I'll think "Wow! What the hell was I thinking?" lol