I studied Physics at Lagos State University, graduated first in my class, and immediately went into web development. For a while I thought my Physics degree was irrelevant. I was wrong — it's probably the most useful thing I bring to software engineering.
Models over facts
Physics teaches you to build models. Not to memorise how things behave in one situation, but to understand the underlying system well enough to predict behaviour in any situation. That's exactly what good debugging requires.
When a Solr query silently truncates at 1,000 results, a developer who memorises API documentation might check the docs and miss it. A developer who models systems asks: "what are the constraints on this component? Where are the ceilings?" That question leads directly to the answer.
Conservation laws in software
Physics has conservation laws — energy, momentum, charge. Software has analogous invariants: data that enters a system must be accounted for somewhere, requests must be balanced by responses, state changes must be consistent across boundaries. When something goes wrong, I look for the conservation law that's been violated. Something went in and didn't come out, or came out in a different form than expected.
Debugging heuristic: When you can't find a bug, ask "what is conserved in this system, and where is the conservation being broken?" This reframes the problem from "find the broken line" to "find the boundary where the invariant fails."
Equilibrium and steady state
Production systems tend toward steady states. A memory leak is a system moving away from equilibrium. A cache that grows unbounded is a system without a restoring force. Performance degradation over time usually means something is accumulating that isn't being cleared. Physics intuition about equilibrium helps you spot these patterns early.
The skill that matters
The most transferable skill from Physics to software isn't any specific knowledge — it's comfort with abstraction. Physics routinely asks you to reason about things you can't directly observe (fields, quantum states, spacetime curvature) using mathematical models. Software is the same: you reason about systems that are too large and complex to hold in your head directly, using mental models built from experience and first principles.
"The goal of physics is not to describe nature, but to understand it well enough that you're never surprised."