Listen on these platforms
Brief summary
The “Basal Cost†of software is an idea from . The term is borrowed from biology, where the Basal Metabolic Rate refers to the number of calories a human body burns just to maintain normal functioning. Applied to software development, the concept is intended to help us pay much more attention to the long term costs — like additional complexity and maintenance — of building a new feature.
Ìý
In this episode of the Technology Podcast, James Lewis and Georgina Giannoukou join hosts Neal Ford andÌýBirgittaÌýBöckeler to discuss the Basal Cost of software and explore how it can help organizations and software development teams better manage product and system complexity.
Episode transcript
Ìý
[Music]
Ìý
Neal Ford: Hello and welcome to the ThoughtWorks Technology podcast. I'm one of your regular hosts, Neal Ford, and I'm joined today by another of our regular hosts, Birgitta.
Ìý
Birgitta Böckeler: Hi, I'm Birgitta Böckeler. I'm a technical principal out of the Berlin office of ºÚÁÏÃÅ.
Ìý
Neal Ford: We are currently in Barcelona for the Doppler meeting where we put together the radar and one of the topics that's actually several years old that we never got a chance to talk about, we're going to talk about today with a couple of our colleagues. I'll let them introduce themselves.
Ìý
James Lewis: Hi, I'm James Lewis. I'm a Technical Director for ºÚÁÏÃÅ based out of our London office.
Ìý
Georgina Giannoukou: Hello, I'm Georgina Giannoukou. I'm a Lead Developer from the Madrid office.
Ìý
Neal: Today we're going to talk about the basal cost of software development. Would someone please describe what that is? It's a metaphor.
Ìý
Georgina: Yes, I can go ahead. Basal cost of software is a term coined by Eduardo Ferro back in 2020 in his blog post, Basal Cost of Software, which basically outlines that the cost of features, not just the cost of initial development, but the cost of maintenance, the cost of onboarding, and it increases and maintains after until the feature is dead.
Ìý
Birgitta: What is that term? I was stumbling across this word, basal first. Can you go a little bit into his metaphor?
Ìý
Georgina: Yes. It's a metaphor from the basal metabolic rates that is human requires the amount of calories burned just by existing, not doing anything. If we put it in software features, it's the same, basically. It reminds us that besides building something new and always building new things, we need to understand that software will cost us in the meantime and that will reach the capacity of the team building those features until the point where they can't innovate anymore. That's why it's important and we need to dig a bit deeper.
Ìý
Birgitta: I think there's multiple things that create that cost but Eduardo in his article is focusing on — I would say cognitive load things, right? Like existing code.
Ìý
Georgina: Sure. We need to understand if you break it down, it's the sole cost of dependence, for example, technical dependencies. Then the cost of onboarding new members to this feature, the cost of supporting, also the cost of adapting this code to new ways of writing code. Also the support to the end user as well as support to the internal users. In the end, it is a form of technical debt. Basically, if we ignore it completely, we'll just reach — increase the cognitive load of the team. Plus then we're not going to be valuable enough. It's going to be code that we're not going to be able to maintain in a valuable manner, in a sense.
Ìý
James: Here's a challenge based on that. In biology, metabolic rates change. The way we use our energy changes as we get older. As animals age, more and more of the calories they're consumed are used just to keep the body going to repair cells, to create new cells, to essentially try and reverse aging but eventually, the body can't do that anymore and all the energy it's taking in goes to cell repair and at some point, you can't get enough energy and the cells are too old. Essentially people die, mammals die. Does that imply then that all software has this finalized lifetime?
Ìý
Georgina: Yes, if you consider, for example, legacy code written in software that's not supported anymore, for example, there's this famous code of, we're not in the business of creating new software, we're in the business of evolving existing code. This is part of the challenge. Basically, yes.
Ìý
Birgitta: That's interesting that taking that metaphor even further is your basal cost at some point, just repairing, repairing, repairing, and you can't get around to anything else anymore, right?
Ìý
James: That's exactly that, yes. And that's what happens with animals, with mammals. You're consuming more and more energy as you get older. Also, the other thing is, as you grow, as you progress from a baby thing to a grown thing, the way that you're directing your energy also changes. I wonder if there's parallels with that as well.
Ìý
Georgina: We have a lot of course, from developers, the initial development of the feature, and then everyone's testing it and waiting for a response and then it dies out because you need to build new things, you need to maintain a few things, so all this excitement dies out eventually.
Ìý
Birgitta: I also like how in the blogpost he distinguishes between, yes, you have all that stuff to maintain that you just built, but then also the more features you have, the more impact it's going to have on the new stuff you're building as well because you always have to take into account all the things you've already built and shoehorned into that. The more of that you have, the more you also have to use when you build something new.
Ìý
Georgina: He basically outlines that the capacity of the team is finite. It's something we see over and over again when we reach that point and then the team gets to a firefighting mode where they're just supporting old features with zero capability of innovating.
Ìý
Neal: That's a particular danger zone for a company to get to once you reach a point where you can't build anything new and you're just fighting to keep the old stuff alive, that's not good [laughs] because fighting the old stuff to keep it alive generally doesn't get better all by itself. At some point, you reach a tipping point where —Ìý
Ìý
Georgina: We see that the first immediate action is just increasing capacity by adding more developers, which is definitely not the solution. For example, if you increase the capacity of the team, but still, as an example, deploy once a week. You never really know what's going on with your software and how valuable it is. You're not solving the problem, you're still creating more basal cost.
Ìý
James: I would argue that most of the clients I've dealt with over the past 20 years would be delighted with once a week, to be honest.
Ìý
Georgina: [laughs] True, true, true. You're right, but not very frequently I'd say.
Ìý
[laughter]
Ìý
Birgitta: Then what can you do to avoid that state of only repairing cells and not [chuckles] creating new ones anymore?
Ìý
Georgina: I think we can exit this metaphor now because at least now in human biology — [laughter] and mammals' biology, we can live forever, at least until today. For example, we can reduce basal costs by first keeping it in mind, understanding that when we propose a feature and we start building it, it's going to be there for us like a backpack in our bag, let's say. There are multiple techniques. I'll start with the basics, for example, just introducing some Extreme Programming techniques into your software development process outside in NTBD where you just build exactly what you need to build for this use case.
Ìý
Also, for example, accepted criteria for different types of product development. For example, if you're going to build something that you want to put in production right away, make sure that it's done in a way where it's irreversible, easily changed, easily maintained in a sense, and in the most simplest way. Whereas for example, if you're doing spikes and something that you don't really care about adding so much value just yet, maybe your acceptance criteria will be lower and that's okay. To find these different ways of working, you can't build everything the same way. This is something I can think of off the top of my head for now.
Ìý
James: I'm nodding frantically in the background, obviously you can't see that but I could pass one more XP practices, pairing, refactoring, red, green, refactor, all those sorts of loops, the simple things that you can do to keep your code as simple as possible and most simple.
Ìý
Birgitta: Can you be a bit more explicit, how those practices affect the things we are talking about before?
Ìý
Georgina: For example, let's take the sole thing of deployment frequency for example, and getting to see how much value your feature is adding as soon as possible will help you build less things or at least will avoid you from building things that are adding zero value and then you just have to throw away or refactor forever. Then pairing of course TDD — outside-in TDD specifically — because it drags you to only build the smallest use case and the code just necessary for building the small use case and in a way that it is refactorable so that's also important.
Ìý
Then, of course, product has to be very close to that. By product I mean the product development team, the product owner as well. The business need to understand that we need quick feedback, we need not hiding software under feature flags for months, for example, because this adds to the basal cost. One very nice technique is when you enter a company and you see, "Okay, how much code is not adding any value to the end user, how much code is hidden under feature flags, how much code is running on a way that is not sufficient?" You start eliminating those points and then you think about "How I'm going to build new ways."
Ìý
James Lewis: I can never remember who the quote is from. It's either Dan North or Martin or Jez Humble or Dave Farley. It's one of those gang.
Ìý
Neal Ford: All quotable people.
Ìý
James Lewis: All quotable people. I really like the idea of, in relation, actually, to this metaphor.
Ìý
Neal: Maybe it was Kent Beck…
Ìý
[laughter]
Ìý
James: Maybe it was Kent Beck! Okay sorry, they've all quoted Kent Beck! I really like that in relation to this metaphor as well, because what we say if we want to get fitter if we want to try and help ourselves with our bodies and make our bodies fitter and more healthy, then you do exercise, you eat good food and sometimes exercise — especially when you start — I took up running during the pandemic, during the lockdowns, and that really hurts. But I did it a bit more, and I did it a bit more, and finally, it didn't hurt so much. I think that's definitely true here with these practices: if it hurts, do it more!
Ìý
Birgitta: They require discipline, right? A lot of this stuff is discipline. Then that's like, yeah, having an annoying trainer that tells you to go on and on and on.
Ìý
Georgina: Besides discipline, Extreme Programming also says a lot like courage. The team has to have courage to push for those practices, not be afraid to delete code, not be afraid to hang on to codes that maybe they will need at some moment. Also be very close to risk, a sense of safe risk, in a sense.
Ìý
I hear a lot of the practices that help create basal costs are practices avoided because people are afraid: “what will happen if I deploy this and I break production and I don't know how to do it safely?" or, "What if I write the test first, and that takes me so much time?" Even if you don't write the test first, then you're going to end up taking the same time as if you're writing the test first. These kind of things require courage. Of course, you don't have to change the whole organization or the whole company but a small team can start.
Ìý
Neal: A famous dysfunctional quote was, "we don't have time to write tests, we're spending too much time debugging."
Ìý
[laughter]
James: Probably.
Ìý
Birgitta: I mean, it's all about — a lot of the things that you were saying Georgina and that's what Eduardo Ferro answers blog posts on as well, the simplicity, the art of maximizing the amount of work not done from the Agile Manifesto. I was also just reminded of the seven wastes of software development. I don't know if y'all know this from Mary and Tom Poppendieck. An analogy to the seven wastes of lean manufacturing. One of those is also the amount of work not done. That was what you were talking about as well, all the code that you actually don't have in production yet.
Ìý
Neal: Well, I think he actually shortchanged the metaphor because he was mostly talking about cognitive load. There are at least two other aspects of this metaphor that I think are really interesting. One of them is exactly what James just talked about, which is fitness. I always heard the term bit rot, but Wikipedia calls it system rot. It's this assumption, the assumption that as you get older, something degrades automatically.
Ìý
A lot of people just believe that if you look at a 20-year-old piece of software it must be terrible inside. A lot of that is just because they haven't had good fitness around things like cyclomatic complexity and other things that are governable by fitness functions and metrics and other sorts of things that you can do. Not just from a domain standpoint that he's mostly focused on, but also from an architecture and a technical standpoint, to make sure that you don't eat twinkies everyday, to push the metaphor a little bit from an architectural standpoint, but you eat vegetables.
Ìý
James: I also remember I was asked to take a look at the code base for a prospective client that shall remain very nameless in this case. It was interesting. It was a pretty old piece of software, maybe 10 years old, it was an old Java web app. It was pretty core to their business. They asked us to take a look and help them understand whether they should refactor it, whether they should rewrite, whether they should break it out into bits and rewrite different options. We took a look at this codebase and we ran the usual sets of tests of cyclomatic complexity and the dependency matrices and all these kinds of things. We had some good news and some bad news. The good news is it's cohesive; the bad news it's all of it that's cohesive, all two and a half million lines.
Ìý
Neal: Cohesive like a big ball of mud!
Ìý
James: Exactly. Yes, it's not very coupled, because it's all cohesive. Then we came across this one class, and it has recounted 60 if-else statements. I was chatting with Dan North about this, and he said, "Well, of course, what else you're going to do?" because you get to the point of the maintenance cycle, where you've got 45 if clauses. You're not going to change it, you'll just add another one.
Ìý
I think that brings us on to something else we were talking about, which is the overhead of once something is quite done what happens in maintenance mode? Is there space, is there budget for people to make changes in the way it was, whilst it was under active development?
Ìý
Neal: Well, I think that's why — to your point earlier — you should treat software like a living thing. It's not done, it's still growing. There's still metabolism going inside whether you want it to or not. That's the other interesting aspect of this basal metabolism idea is the run cost. I think that's becoming a lot more apparent to people because they're having to spend for cloud resources as they use them rather than upfront.
Ìý
There's an ongoing cost to running software that I don't know if a lot of companies have a completely good handle on. I mean, maybe a little more 20 years ago, when budgeting was clear, but I think it's getting fuzzier and fuzzier for people as to what does it actually cost to get this functionality out to market? What is it costing me? What's the bottom line on this discrete piece of functionality?
Ìý
Birgitta: You also, James, just started touching on how do you measure it? How do you measure the fitness is, of course, one of Neal's favorite topics as well. [chuckles] “What is your current state of this basal cost of software?†You mentioned cyclomatic complexity and stuff like that. What would you all say are other things how to measure how well you're doing in that area?
Ìý
James: I've been extending the biological metaphor further in different directions. I've been using four key metrics actually, as an example of metrics you can use to get a sense of how healthy you are.
Ìý
Birgitta: The DORA metrics?
Ìý
James: The DORA metrics. Yes, so, obviously they’re the five key metrics now. The idea that if you go to your doctor you feel you're not quite right, or you go for a checkup, and they'll take your blood pressure, they take your pulse, they take your temperature, or maybe looking at your eyes, will look in your ear, whatever it is they do. They'll be able to see if something's wrong, maybe not what it is, but they'll be able to give you a general idea of your health. I think that's the same for the five key metrics, they'll give you a general idea of how fit you are, then you can work using all the techniques we've already talked about to improve those metrics.
Ìý
Birgitta: They measure your delivery performance. If your medium and long-term delivery performance is good, you cannot actually do that if your basal cost is just piling up, piling up, piling up, right?
Ìý
James: Yes, I would expect actually, going into the metaphor further, if an animal suddenly develops a cancer, then that will be reflected in actually their basal metabolic rate because it's going to shoot up because you've got all these cells — which is why people lose lots of weight and things. You could see the same thing, essentially, by monitoring the four key metrics. If something suddenly takes a dive, if suddenly, there's not enough investment made in particular areas or there's big issues, you lose team members, there's too much churn, then you're going to see these things reflected in your time to market, your error rates or this delivery.
Ìý
Georgina: The other way to very empirically describe this is, look at how much your team is doing support. Do you suddenly have to have a couple of pairs of teams just to support the basic feature? Or how many months of refactoring we have to do on certain systems? So yes, that will reflect on the deployment frequency, will reflect on a lot of things, but just empirically we look at how much people complain about support they need to do.
Ìý
Birgitta: Onboarding time is also a metric I think that is often overlooked. How long does it take somebody to be productive on the team, right? Because that then represents the cognitive load all the things they need to learn to be able to push a commit to production?
Ìý
James: Seeing as we've got the guru, software architecture, author extraordinaire in the room... I wonder whether you could comment, Neal, on how you feel the software architecture and the large. We've been talking about much the small here; what about in the large, how that affects this?
Ìý
Neal: Well, certainly, if you look at integration architecture or enterprise architecture, a lot of those things affect the healthy organization. There's a lot of dysfunction between the application architecture and enterprise architecture because application architects are very tactical, they have to be because they're shipping code. Enterprise architects are often very strategic and very in the clouds and thinking; it's hard to reconcile those things. If you look at any of the frameworks that supposedly monitor the health of the enterprise as a whole, they're mostly awful.
Ìý
It's just layers of bureaucracy that they've added instead of feedback loops. That's one of the great lessons of software as you replace bureaucracy with feedback loops. I think that goes back to what we're saying earlier: we can give people generic advice, but generic advice in software is problematic and in software architecture in particular because nobody has a generic architecture. Everybody has a very specific architecture. I think it's really important to figure out what beyond the four key metrics what are the indicators of health in your organization because — We'll just torture this metaphor until it just screams [laughter] — if you are a professional athlete, you have a way different medical profile than someone who is a desk worker and your doctor is going to take that into account. And in the same way, when you evaluate your architecture, a lot of companies, we talked about web scale envy for a while; a lot of companies think, oh, we need to scale like Amazon. No, you don't, you're not Amazon! And you're wasting a lot of time and effort and a lot of energy, it's just like somebody, a weekend warrior going and trying to weightlift all the weight. Well, you're spending a lot of energy for that, but not getting much value out of it. So I think that's —
Ìý
James: Probably damaging yourself as well.
Ìý
Neal: Potentially damaging yourself and over-prioritizing something at the great expense of something else. I think the key thing is: understand what the basal cost of your system is and what do you need to optimize and what can be optimized. This is a great time to reevaluate that if you are, in fact, moving some things from on-prem onto the cloud, and start thinking about what was the run cost of that, and what is the run cost of this?
Ìý
One of the things that came up in our meeting yesterday was a lot of people seem to think that moving to the cloud is some kind of cost savings measure. Very often it's not at all; but how are you going to know that if you don't know what your run cost was — the basal metabolism of your existing system was before you move it to life support on a cloud.
Ìý
Birgitta: I would also say, I think the run costs are something that is quite intuitive or quite transparent to a lot of people. Oh yes, sure, I have to run this so that costs money, but this other part that we talked about, like the developer cognitive load, all of those things — often people (other than the developers) don't see that as actual cost. I think that's also the first step: have more awareness of that. The typical example would be an organization that works more in a project mode, like change requests after change requests — done, we move on, done, we move on. That's often not considered there.
Ìý
Then you move into a team that is a product team and that also does all of this maintenance and all of that. Then suddenly, maybe the product owner is like, "Oh, wait a second. There's these two people now who actually have to respond to tickets, but I always have them for my feature work but that actually makes it transparent. This cost is there, regardless of if you see it or not. The first step I think is to make it visible and make everybody aware.
Ìý
Neal: Well, and exactly that point: I saw a quote recently that said, "Your current state is the results of your current habits." That's true for organizations as well. I worked with a company not too long ago that was constantly battling support tickets to the point where at some point they looked around and said, there's a huge cost. So they reprioritized that and started getting development teams involved in that to get to root cause analysis — so they got really obsessed with that. After some intense effort for a little bit of time, the number of support teams went way down because they fixed the root cause rather than just constantly battling the same thing.
Ìý
I think a lot of companies end up getting on a weird hamster treadmill of doing the same thing over and over again. My friend Venkat Subramaniam tells this great story where he was working on something and he fixed a bug that was like, "Oh, this is a weird bug," and then somebody called and complained. He said, "Well, one of my jobs every day is to print the stacks report and I couldn't print it today;" and said, "Oh, we broke something." He went and looked and what this guy had been printing out every single day and putting in a filing cabinet was a stack trace, because he'd been trying to go to this page and had created a Java stack trace of about 20 pages. The stacks report because it said stack right on the top of it and they had a filing cabinet full of sh–...
Ìý
He had just been doing that every day because he didn't know why-- he goes like, "That's the stack report. That's one of the reports that I create every day." Just looking at the weird little overhead things like that I think is always valuable as an organization, if you can find them. The problem is finding those things. And that's actually, I think, one of the weird benefits of the out-of-town consultant effect, which is that if you rode in an airplane to get to a meeting, you have more credibility than the people who rode in a car to get to the same meeting.
Ìý
Part of that's true because you can come in and notice things like that, that you become snow blind to in an organization — because it's just always been that way — and so point out. That's the advice I give people is try to be your own out-of-town consultant, go try to look at all these processes and all these things that you're doing and ask, "Is that really a smart thing or is that just something that's been grown up over time and we're just doing?" I think that's an overhead that a lot of companies endure without thinking about too much, that would be low-hanging fruit.
Ìý
Birgitta: Then maximize the amount of code not written.
Ìý
Georgina: Yes. Or wait until the last minute or until you need it. Also, what you talked about Neal reminds me of Conway’s law and how it's easier to see the impact of the way the business works into how the software is designed when you're from the outside. It's very difficult to pinpoint those things when you're inside the system. I think that's maybe a weird way, but interesting to see how the basal cost of the software is there because of the way the organization communicates and interacts and whether it's acceptable, for example, if the whole company works in this mode of fix, fix, fix, fix then it's no big deal for the tech department as well, because this is the way we do things.
Ìý
We saw this very specifically on companies that were not technically tech companies initially; they're, I don't know, fashion companies or retail companies, but suddenly — especially post COVID — they have to become tech companies because their business is based on technical solutions now. Getting to the end user is very important and they try to implement the same techniques that you get a design of a t-shirt out to production in two weeks and that's it then the t-shirt is sold and goodbye with it, and okay, this is how our tech organization is going to work as well. [chuckles] It's definitely not the best way do that and it's very hard for this cultural change to happen.
Ìý
James: Coming back to what you were saying a minute ago, you're saying about keep it — minimize the art of work not done. I think it does come down to simplicity a lot of the advice around this, doesn't it? It comes down to doing the simple things. I think we talked a bit about XP practices.
Ìý
Georgina: Small six steps.
Ìý
James: Yes, refactor, but also just simple project management stuff, like don't ramp your team too quickly, make sure you're onboarding is taken care of, understand the effect of experience on codebases and things. Don't expect too much from too junior a team. All these different things that I think sometimes get lost in the wider picture.Ìý
Ìý
How often do you hear people say, "Oh, we need more people, really fast; we’ll add 10 people, brilliant." It's only 10, it's not 30, it’s not mythical man-month territory; still, 10 people at once is way, way too many! You can have a disaster.
Ìý
Georgina: I think this comes to a hard point where we see a lot of companies are being pushed to innovate lately and there's a lot of competition. And, especially old school companies, they need to innovate in some sense, they need to move to this digital transformation age. Whereas the non-tech department, let's say if the business will always think that more people will create more efficiency and this is hard for the tech folks to manage. Because at the end of the day, the developer just get requests, but then their manager gets more requests and then their manager doesn't understand why something has to be maintained and why something needs support and why can't we build this new thing just right away. And the answer in most cases is put more teams just write more software — create more basal costs in the end.
Ìý
Birgitta: Efficiency is not even the thing you should strive for, but effectiveness right?
Ìý
Georgina: Yes, and value, of course: are you building something that's valuable in the end?
Ìý
James: I'd question that, actually. I think that you can strive for efficiency, but not necessarily cost efficiency. I think you should start for flow efficiency.
Ìý
Birgitta: Yes, It's often like a misunderstanding of what efficiency should be in software development.
Ìý
James: Yeah — I don't know any CFO who doesn't want efficiency…
Ìý
Birgitta: Yes, it shouldn't be constant 95% team utilization.
Ìý
James: Exactly! That's absolutely the wrong metric.
Ìý
Birgitta: Yes.
Ìý
Georgina: Which reminds me of the slack time in teams in general, where you measure the capacity of the team and you pull out the next part, what the team is expected to do or the next sprint, and you literally put 100% capacity. And it's like, there's no slack time there for the team to even touch any previous refactor to think about what are they doing, whether it makes sense. I think that's another way to help in minimize basal costs, always consider slack time inside a capacity office.
Ìý
Birgitta: Yes, exactly.
Ìý
James: I'm obsessed at the moment with complex adaptive systems, complexity science, and one of the things about capacity is if you reframe it as if you have a motorway, or like a highway, if you entirely fill the highway up with car, if you entirely — bumper to bumper — and then said go, how fast do you think the cars will go? The answer is not pretty fast.
Ìý
[laughter]
Ìý
Neal: All right, fantastic. Well, thanks very much. It's a great overview from multiple perspectives on the basal cost of software. Thanks very much our two guests.
Ìý
James: Lovely to be here. Thanks.
Ìý
Neal: Thanks from us. Hope you enjoyed the podcast and we'll see you next time.
Ìý
[Music]
Ìý
[END OF AUDIO]
Ìý