DEV Community

Cover image for Brooks's Law
Ben Link
Ben Link

Posted on

Brooks's Law

Hey friends!

Last time, we dug into Parkinson's Law and learned about how our tendencies as people in a large group actually work against us in terms of being efficient with our time, and we explored a couple ways that we can adapt to overcome the law's tendencies.

Today on The Adventures of Blink, we're continuing our off-season blog series with an exploration of our next Software Engineering law... so let's get started right away!

Brooks's Law

Adding manpower to a late software project makes it later.

Brooks's Law, which formed the basis of Frederick P. Brooks's 1975 book "The Mythical Man-Month", came from his experience managing the OS/360 project at IBM.

When Intuition Fails Us

When a project is running late, we tend to reduce it to a set of tasks. I have some number of things to do and some amount of time to do them. It stands to reason that if I can add more people to the work, I should be able to get more of those tasks done at the same time and move things faster.

This has made sense for millenia. If you're building a pyramid, having more people laying bricks helps. If you're digging an underground bunker, more shovels mean that the hole is getting bigger faster.

But try as we might, we cannot make this work in the world of software. Invariably, when you add additional people to a coding project, the project ends up taking longer. Why is that?

The Math

Let's imagine you have 5 people working on a project together. Each of them has their own specialty and workload and knowledge. In order to achieve the project, they have to communicate with each other and share those viewpoints and specialized knowledge and workload status. It might look something like this:

Five people need a total of 10 communication paths

As you can see, 5 people have more than 5 communication paths to address. Each person has to be connected to each other person... so we end up with 10 lines of communication in total.

Let's add another person now. How many lines of communication is that?

Six people need a total of 15 communication paths

Wait. That got a lot more complex, didn't it? Now we've got... 15 lines of communication!

If you're into algebraic stuff, you'll probably easily arrive at the formula:

[ n * (n-1)] / 2

And that's why Brooks's Law works

When you're digging a ditch, the "complexity" stays pretty constant: there's dirt where the hole should be and it needs to be moved. But when you're writing software... every person has to remain connected to the bigger picture. They need to understand how the overall system will work. And maintaining the level of communication required to achieve that understanding increases our complexity geometrically.

In addition to communication complexity, take into account that the new person is coming to this team with minimal context of what's going on. There's going to be time spent getting them up to speed, ensuring that they know what's being built, how, and where, and sharing all the decisions made up to this point with them.

Now if you're working with a really tiny team, you might find that the math can work in your favor - adding a 3rd person to a 2-person team, for instance, only adds two new communication paths; in that case, you might get some benefit.

In fact, this is where the old story of the "2-pizza team" at Amazon came from: because after you get to about 6 people, the math suggests that adding another person to the team will incur more overhead than their contributions would be worth, and you're actively making the team slower.

So how do we help a late project?

If you're in leadership, you're probably wondering this. "If we can't add more people to finish up sooner, how else can we affect the team?

I'm glad you're asking. It means you're listening and absorbing! Here are a couple of things to think about.

What's REALLY causing the project to be late?

The project being late is a symptom rather than a diagnosis. There has to be some underlying reason why things are going slower than expected. Here are some ideas to look into:

  • Cognitive Load. Do your team members have 100% focus on the task at hand, or are they getting pulled in to give advice for other efforts? Is there Unplanned Work creeping in and sapping their time and attention? If the team is distracted by shifting priorities, leadership should be running interference for them; eliminate the distractions, and the team will be able to deliver focused results.

  • Unreasonable Expectations. No one in management wants to hear this 😬 but I'll say it on behalf of all of us! Did you budget the time to complete the work effectively? (It doesn't have to be your fault either - maybe we learned something unexpected partway through the project and it's caused us to churn a bit!) It could be time to reframe the problem, to make those expectations a little more achievable.

  • Friction in Communication and Poor Decisionmaking. If management hated the last reason, they'll hate this one even worse! I've personally seen projects get absolutely derailed because a key decision got delayed... someone didn't feel comfortable making it themselves, or the person they thought should be the decider was out of the office. When this kind of thing happens, the whole project suffers... and you're not going to be able to fix it by throwing bodies at it! What you need is decisive leadership - eliminate the churn by making the call, and letting the team execute.

The Wrap-up

Brooks tells us what NOT to do when deadlines start to slip. We have to fight our tendency to "solve" the problem the wrong way. It might require us to set aside some ego and admit that leadership has more to do with the delays than engineering does!

I know this post probably has a bit of a "shots-fired" vibe -- let's turn it into a conversation though! What are your thoughts on how things get late? Would you address the problems differently? Let me know in the comments!

And of course, tune in next week as we tackle one of my personal favorite laws in our series... no spoilers though! 😉 See you next week!

Top comments (0)