How Running Made Me a Better Software Engineer
- wanglersteven
- Oct 4
- 5 min read
There’s this moment about 18 miles into a marathon where everything in you wants to quit. Your legs are screaming, your brain is negotiating (“Maybe 18 miles is basically 26.2?”), and you start to wonder why anyone voluntarily does this to themselves.
But if you push through that — if you keep moving forward despite the voice that says “stop” — something happens. You find a different gear, a mode where effort becomes momentum. That gear doesn’t just propel you forward on the road — it’s the same drive that powers breakthroughs in your professional life, where persistence and focus carry you past obstacles that once felt immovable.

The Mental Marathon of Engineering
Software engineering is rarely a sprint. It’s long, sometimes monotonous stretches of debugging, refactoring, and delayed gratification. You might spend days chasing down a bug that turns out to be a missing semicolon. You might rewrite the same feature three times before it feels right.
Running taught me how to be okay with that.
When you train for a marathon, you learn to show up consistently — even when you’re tired, even when the weather sucks, even when progress feels invisible. That consistency translates beautifully into engineering. You realize the magic isn’t in the bursts of motivation; it’s in the quiet, daily effort.
Discipline Over Motivation
Running doesn’t care how you feel. Neither does code.
You can’t rely on bursts of inspiration to get miles in, just like you can’t wait for “motivation” to fix a flaky build. You learn to show up regardless — to trust the process instead of your mood. Over time, that discipline spills beyond running shoes and IDEs: it shapes how you mentor teammates, tackle long-term projects, and stay steady when deadlines pile up. You start viewing your career like a training plan — one block building on the next — where consistency beats brilliance every time. That mindset shift changes how you approach work: deadlines become just another mile marker, and consistency becomes your competitive advantage.
Incremental Progress Wins Every Time
Every long-distance runner knows progress is incremental. You don’t go from couch to marathon in a week — you log one run after another until your body adapts. The same is true in engineering, where growth comes from repetition and refinement. Just like endurance builds through cumulative miles, technical strength develops through countless lines of code, small wins, and lessons from mistakes. Over time, both forms of progress shape not only skill but identity — you become someone who knows how to persist, learn, and improve, step after step.
Each small commit, each code review, each tiny improvement adds up. You don’t notice yourself getting “better” day to day, but one day you look back at a project you built a year ago and realize how much sharper your instincts are.
Running reinforced that long-term patience. It reminded me that mastery isn’t about speed — it’s about persistence.
Debugging Pain
There’s a special kind of problem-solving that happens around mile 15. Your knee starts hurting, your energy dips, your stride falls apart — and you have to figure out why. You troubleshoot your body the same way you’d troubleshoot a system: isolate variables, experiment, observe outcomes. And sometimes it’s not just about identifying the problem but adjusting your plan mid-run — do you slow down? pick up the pace? take in some fuel or hydration? Running teaches you to listen, adapt, and make small, smart adjustments in real time — a skill that’s just as vital when debugging code or managing complex projects.
Engineering and running both demand that calm, curious mindset in the middle of discomfort. Panic never fixes a problem. Attention does.
Flow and Focus
There’s a reason runners talk about the “runner’s high.” It’s that deep, meditative state where movement feels effortless and time blurs. Engineers have a version of it too — flow. That moment when the code just clicks, and you look up to realize hours have passed.
Running taught me how to enter that state more easily. The rhythm of breathing, the repetitive motion, the quiet — they’re training for focus. Long runs are like mental clearing sessions. I often come back with solutions to bugs I wasn’t consciously thinking about. There’s actually a reason for this: when you run, your brain slips into a relaxed state called “default mode,” which frees up creative processing. You stop forcing solutions and start letting them surface. The combination of physical rhythm, oxygen flow, and mental stillness unlocks ideas that just don’t appear when you’re staring at a monitor. It’s like your subconscious gets a turn at the keyboard while your conscious mind is out on the road.
Perspective: Doing Hard Things Recalibrates Everything
Here’s the biggest thing running has given me: perspective.
After running 10 miles before work (which, let’s be honest, almost never happens because I love sleep too much), the rest of the day feels easy. Meetings don’t bother me. A failing test suite isn’t a crisis. When you regularly do hard things by choice — or at least plan to do them before hitting snooze — everything else feels manageable by comparison.
It’s not about being a “runner” — it’s about deliberately building your capacity for discomfort. You have to get comfortable with feeling uncomfortable, both on the road and in your career. You start to realize that most of the limits you thought you had were mental, and that discomfort is where real growth happens. Once you’ve proven to yourself you can run through pain, fatigue, and self-doubt… debugging a gnarly API suddenly feels trivial.
Closing Thoughts: Find Your Hard Thing
You don’t have to run marathons to get this. Your “hard thing” could be rock climbing, cold plunges, language learning, whatever forces you to wrestle with discomfort. The point is to cultivate grit somewhere outside of work — because that grit spills over into everything else you do.
It reminds me of something Wayne Gretzky once said about how he got so good at hockey: by playing other sports. Building different muscles and skills not only made him better on the ice, but gave him a mental break from the game. I think running does the same thing for me — it strengthens different parts of my brain and gives me space away from code so that when I come back, I’m sharper and more creative.
Running didn’t just make me fitter; it made me calmer, more patient, and more resilient. It taught me that showing up, again and again, is the real superpower — in training and in tech.
So, go find your hard thing. Lace up, log off, and start running toward a stronger version of yourself — one mile and one commit at a time.
✌️ Steven




Comments