The wheelbarrow path
Our parts are there to help us survive. So was that old code.

When I was a kid, I saw a cartoon with a garden and a wheelbarrow. The wheelbarrow had worn a set path: to the garden, to the compost heap, to the shed. The rut was deep, and the wheel kept slipping back into it. You could make a new path, but it took a lot of time and effort.
I have a wheelbarrow tattooed on my ankle as a reminder.
Our brains work the same way. Some pathways start as a way to survive. They work at the time, so we take them again and again, until they're a core path. But we can outgrow them. A path trodden too many times, like numbing pain in any form, can start to hurt us more than it helps. It keeps trying to help, long after it has stopped serving us the way it once did. That's when we need to grow from it.
Code bases work the same way too. I'll get there.
The rut I climbed out of
I'm sober. It's no secret, and I don't want it to be. It doesn't define my life, but it's part of it.
Drinking numbed the pain, and in doing that, it numbed life. I may not have gone as low as some people do, and I'm thankful I chose to stop digging when I did, instead of finding a new low, a new bottom, or the grave.
What I didn't see until later was what it cost me. I couldn't sit with my own pain, so I was afraid to do more. To do anything, really. And doing nothing caused a depression bigger than I realized at the time. Staying busy, being creative and making things is core to who I am. I want to be useful. I want to change the world somehow.
Once I could sit in my own discomfort, I started on the things I'd wanted to do since I was a little girl. I learned to ride. I started getting tattoos, because I could sit in that chair with the pain. I started learning to work on an old car with my own hands, because I wasn't afraid to fail anymore. I could sit in the discomfort of not knowing, and of not being good enough yet. There are books in my office right now on airplane engines and how to become a pilot. Someday.
Drop the rock
There's an idea in recovery called drop the rock. You're drowning, trying to swim to shore, but you're holding on to a rock. You can't swim with it. You just need to drop it.
It's easy to see from the outside.
For anyone still holding it, it is so hard. The rock feels like life, even though it's the thing drowning you. Letting go of it feels like letting go of who you think you are. When you do, though, the freedom, the breath of life, the ability to swim without anything pulling you down, is amazing.
That's true at work, too. A product owner I worked with once came to me venting about a team that, to him, was so obviously the orchestrator of its own demise. He had a flair for the dramatic, curly mustache and all. I let him vent. Then I told him it's easy to see from the outside. Looking in, you see the whole picture. They're stuck in it, and they can't see it as clearly.
And how we talk about the rock matters. It isn't about ripping it out or pretending it was never there. At one point it helped me survive, and I learned from it. It's the stepping stone I stood on to get here. It played its part, and I'm grateful. Now it's time to move forward.
There's a name for this way of looking at it: Internal Family Systems, or IFS, a kind of therapy. Our parts are there to help us survive, even the ones that grab for a habit. You don't fight them. You treat them with compassion, thank them for what they did, and let them know you can take it from here, so they can step back.
Code has ruts too
Code bases have parts like that.
In the beginning, the people building something are doing their best to hit the goal in front of them. It may not be the right way. But it works, it ships, and everything else gets built on top of it. It becomes a core path.
The first trigger I ever debugged (a trigger is code that runs automatically when a record is saved) was looping. When I finally found why, they'd put a loop in the trigger itself, built around a query that asked for one record at a time. No handler class, nothing to organize it. All the code lived in the trigger.
My first thought was, honestly, "I can't believe they did it this way."
That's true. But they didn't know any better. And I didn't know any better when I started out, either. It was most likely someone handed a task who did the only thing they knew how to do. Back then, the answers took digging through forums and developer guides, if you knew to look. Today there are years of patterns and tools that didn't exist then. And with AI, more people than ever are starting to write code, so we're going to find a lot more of these ruts. That's not a reason to look down on anyone. It's a reason to teach.
Imagine a code base with all the crap shaken out of it: how much faster it would run, how much easier it would be to work in. But it's like a hoarder's house. It takes time to sort, organize, get rid of things and clean. And sometimes the stuff has been there so long that the foundation has suffered, and there's more to repair than you can see.
Which is also why cleanup work is so hard to estimate. You can size the clutter you can see. You can't plan for what's under the floor until you pull it up. 馃槄

That's on my mind because Salesforce recently changed its defaults. In newer API versions (the version number each piece of code is saved with), code respects the running user's access by default instead of skipping it. Secure by default is the right call. But a lot of older orgs are full of code that never said what access it needed, because for years it didn't have to. Finding it, and moving away from it, takes an enormous amount of work and patience.
Thank it, don't shame it
If we start by shaming the parts of us that got us through, we can't put those habits down. We're too busy blaming them to see what they did for us. And we can't move past a problem we won't own.
Code is the same. Blaming someone else's code doesn't help anyone. Finding out why it might be there, and more importantly a path forward, does.
And be careful how hard you go after old code, because sometimes the person who wrote it is sitting in the room. Now everybody's ragging on their work, and that becomes a morale problem, even if they wrote it years ago. On a healthy team, people can see it, own it, laugh about it and still learn from it. Some teams don't have that kind of bond yet. Most of the time, we don't even know who wrote it. Sometimes I'm laughing at code I wrote three years ago.
People have ego, and that's not a flaw. For developers, code is their art. They spent time on it. They might remember the late nights trying to get it done. I can look through a code base on my team and tell who wrote what, just from the style: how they name variables, how they shape a method. Mine? Check the list before you loop over it. Make sure there's something there before you query. If you're going to query on a list of IDs, let's hope the list actually has an ID in it. And keep the methods short.
Sometimes code looks like poetry. Other times it looks like slop. All of it is technically OK, and none of it should be shamed. Learned from, yes. But if the conversation starts with shame, no one's going to learn anything. Bashing might be fun in the moment, but we all know that one day our code will be on that firing line.
So when you replace old code, don't just delete it and move on. Write down why it was built that way and what it taught you, in the comments, the commit history or the docs. Thank it, and let it step back.

Not everything gets fixed at once
In a code base, change doesn't usually look like slipping back. It looks like triage. Under a deadline, teams let some things through on purpose, and weigh what they can and can't live with. Sometimes even the vendor pushes a deadline back, because enough customers said they weren't ready. It's the lesser of two evils:
- What can you live with for now, knowing (fingers crossed) you'll get to it later? That becomes tech debt (work you've put off, on purpose, and owe later). Write it down, so it gets a seat at the table.
- What has to change now, because it touches the core of how your systems work?
And sometimes the re-architecture is the dream that never gets a slot. I've seen it sit there for years: the rework that was needed from the start, never made important because it would take too long, even in chunks. The longer it waited, the more hacks got built on top of it to keep it running, and to make it work for whatever new thing was being layered on. That becomes a pattern too. You know the issues well enough to live with them, until the ticking bomb goes off.
Teams that built their whole quoting process on Salesforce CPQ are living this right now. Salesforce stopped selling it to new customers. Officially that's end of sale, not end of life. In my experience, end of sale is where the countdown starts. And moving to its successor, Revenue Cloud, isn't a lift and shift. It isn't only a code change. It's a change to everything built under, around and on top of it.
For leaders, that means a few things:
- Ask "why was it built this way?" before you decide it was wrong. Sometimes the answer is a deadline. Sometimes it's just where they were in their programming journey.
- Plan a re-architecture like the long change it is, not a heroic rewrite over a weekend.
- Make the "live with it for now" list visible, and give it time on the roadmap.
- Be patient with yourself, too. You've written code someone will shake their head at one day. So have I.
Back to the wheelbarrow
The old path got the wheelbarrow where it needed to go, for a long time. That's why the rut is so deep.
Making a new one isn't about hating the old one, or acting like it was never there. It's about thanking it for what it did, seeing that it no longer serves you the way it used to, and guiding the wheel onto the new path, again and again, until the new one holds.
That's true of people, and it's true of code.
About the author
- Vendor demos show pristine systems, but real-world orgs are 10-year-old hoards of competing triggers, forgotten packages, and technical debt. And the teams running them are often burning out trying to keep the wheels turning. I鈥檝e spent just under 20 years in the enterprise trenches鈥攆rom making desk waffles to boost morale on support calls at LogMeIn to building team health frameworks and leading systems engineering at SurveyMonkey and Salesforce. I write about untangling messy systems, building solutions for complex systems and why genuine team care is just as critical as clean architecture.
Comments
Join the discussionNo comments yet. Be the first to comment.





