All notes

Before I Was Writing Software, I Was Fixing Computers

I started with broken PCs, operating systems, cables and a lot of guessing. Years later I realised I was doing the same thing with different layers.

6 min readjourneyhardwareinfrastructure
On this page
  1. Troubleshooting is asking questions
  2. Change one thing at a time
  3. Building PCs taught me to ask first
  4. Networks and labs
  5. A server is still a computer
  6. What it gave me and what it didn't

Software wasn't where I started. I started with computers, not programming them but working on them. I love repairing computers. I installed operating systems, worked out why a machine that worked yesterday wouldn't power on today, built PCs for people with a budget and a vague idea of what they wanted, set up offices, ran cables and configured networks.

At the time I thought hardware was one thing and software was another, the same way printer repair is its own thing. Then I started learning Python for automation, and bash scripting, which I dropped two months later. Then I picked up web development, starting with HTML, and eventually the web development bootcamp by Dr. Angela Yu on Udemy (it was a gift).

Fast forward about five years and I'm fully in software, building APIs, working with databases, deploying applications and running servers. Somewhere along the way I realised I hadn't changed careers at all. I'd just moved up a few layers.

Troubleshooting is asking questions#

When a computer doesn't work, you usually don't know why at first. You only know something is wrong. It won't power on, so is it the PSU, is the motherboard getting power, is the RAM seated properly, is the storage connected, is the monitor even on? You end up doing silly little checks that turn out to be the actual problem. A cable, a switch, a display port.

Say you swap the RAM and the GPU and suddenly it displays. What fixed it? Maybe the RAM wasn't seated properly. Maybe you never needed to touch it and it was the display cable. You can't say "no display, so the RAM is bad". Maybe, maybe not. You have to ask.

I carried that into software without noticing. A server isn't responding: is the process running, is it listening on the port I think it is, is the firewall allowing traffic, is DNS pointing where I expect, is the proxy forwarding, can the app reach the database, is the certificate valid, did the deployment even finish? Sometimes the answer is complicated and often it isn't. I've spent 30 minutes on the wrong thing more than once.

Change one thing at a time#

This sounds obvious and I still catch myself breaking it. A PC isn't working, so you change the RAM, then the PSU, remove the GPU, move the storage, reinstall Windows, restart, and suddenly it works. Nice, but what fixed it? I don't know, so if it happens again I learned very little.

Software does the same thing to me. The API isn't working, so I change the environment variables, the database connection, the Docker config and the proxy, restart everything, and get a 200 OK. Great. But was it the variable, a container that hadn't restarted, the proxy, the database, or just something stuck? Getting it working is good. Knowing why it wasn't is better, at least that's what I tell myself when I'm staring at logs at 2 AM.

The other half of that is keeping something you know works. If I suspect a RAM stick, I try another. Suspect the cable, try another cable. Software has the same idea: a clean environment, a known-good config, a minimal reproduction, a fresh install, a simple request that should work. Debugging a lot of the time isn't genius. It's reducing the places the problem can hide.

Building PCs taught me to ask first#

Someone says "I need a computer for editing". What kind of editing, what software, what budget, how often? Someone says "I want a gaming PC". Which games, what resolution, how much do you want to spend? The phrase alone tells you almost nothing.

Software is the same. Someone says they need an application. What are they trying to do, who will use it, what happens now, what would make it useful? The hard part of a PC build isn't picking parts, it's figuring out which parts matter. You can build an expensive PC that makes no sense for the person paying for it. You can also build an app with Next.js, Postgres, Redis, Docker, queues and three auth providers and still not solve the actual problem.

Networks and labs#

One computer is one thing. Connecting computers is another, because you can have a perfectly fine machine that's useless if it can't talk to anything. Then it's IP addresses, DNS, DHCP, routers, switches, Wi-Fi, ports and firewalls, and everything can look fine individually while the whole thing still doesn't work. The computer is fine, the router is fine, the cable is fine, the server is running, so why can't I connect?

That's when networking clicked. A server can run and still be unreachable. A domain can exist and point at the wrong machine. A port can be open locally and blocked somewhere else. So when someone says "it works", I ask where: on your machine, on the server, inside the network, from another device, from the internet?

I also spent time setting up labs, and in a lab you're going to break something. Not if, when. So you learn to keep things separate, not give everything access to everything and be able to destroy one part without destroying the whole setup. I still think this way. In Spluur I don't want one project's Redis casually sharing everything with another's. Each project gets its own network, credentials and resource limits, not because it's the "proper architecture" but because I want a problem to stay where it started. I'd rather have five small problems than one giant one where I don't know what's connected to what.

A server is still a computer#

Deployment brought me back to things I thought I'd left behind: ports, processes, memory, storage, permissions, logs. Why is this process running, why isn't that one, why can't this service reach that one, why is the disk full, why does it work locally and not on the server? It was the same troubleshooting with more commands.

A server is just a computer doing a particular job, and underneath there's still CPU, memory, storage, a network interface, an OS, processes and permissions. Cloud infrastructure isn't a different species of computer. The location, interface and tooling changed, but a machine somewhere is still doing the work.

Containers confused me for the same reason, until I looked underneath. Images, volumes, networks, registries and Compose are a lot of words, but beneath them are processes, filesystems, networking and resource limits. The abstraction is useful, but if you only know the abstraction, debugging gets painful quickly. You can memorise Docker commands all day, and at some point you still have to understand what's happening underneath.

What it gave me and what it didn't#

Fixing computers didn't teach me React, SQL or API design. It gave me a way of looking at problems. Something doesn't work, so what changed, what do I know works, what can I test, remove or isolate, and am I assuming the cause before I've checked? That last one gets me. "The RAM is bad." "The server is down." "DNS is broken." Maybe, but prove it. Computers usually leave clues if you pay attention.

When I was younger and had a computer in front of me, I wanted to open the case and see how the parts connected. Later the case became a codebase, then an API, a server, a network and a whole deployment. Something isn't working? Let me see inside: the logs, the process, the network, the configuration, what changed. I might break something else while I'm in there. But I'd rather understand it than restart everything and pretend it never happened.

That's the biggest thing I carried from repair benches into software. I still don't trust anything I haven't looked inside.