Lean Software Development

Coach
Coach by bfishadow

This is the first in a number of posts which will explore a few different software development methodologies. Part of my job as Agile Coach is to know what methodologies there are and how and when they can be applied. We’re agile at Affiliate Window and doing Scrum, which is working well for us, but without knowing what else is out there, we’ll never know if it’s a perfect fit. So, without further ado, I present Lean Software Development!

——–

Lean Software Development is based on seven principles and, in the nature of being Lean, nothing else. These seven guiding tenets were originally written up by Mary and Tom Poppendieck in their award winning book: Implementing Lean Software Development, and I think they’re going to stand the test of time. You could also head to the Wikipedia article, which is what the PoppenDiecks wrote, verbatim. Below is my take on the tenets.

Eliminate Waste

And If I'm Wasting My Time, Then Nothing Could Be Better
And If I'm Wasting My Time, Then Nothing Could Be Better by Grahambones

This principle is probably the most well known and the most obvious route to becoming Lean, the hardest part about ‘eliminating waste’ is spotting waste in the first place! It’s often a case of being unable to see the wood for the trees in most teams. But waste comes in many forms. From a developers point of view, waste can be seen as unnecessary code or functionality. So, think about DRY (Don’t Repeat Yourself) and YAGNI (You Ain’t Gonna Need It). Waste can also be seen when developers have to deal with unclear requirements (incomplete requirements are fine though), red tape and bad communication. All of these things, and more, are waste. Think about it this way. If you could get rid of something, or swap something for something more simple and have it not adversely affect your quality or output, then it’s waste.

Amplify Learning

So, this isn’t listening to a podcast through a Marshall stack, or even making the text bigger in your browser (although, these might help). This is all about making sure that you’re constantly learning and refining your craft as a software engineer. The learning process is sped up by the use of short iteration cycles, meaning you get feedback from the customer and feedback on the process quickly. This ensures you’re constantly learning about your product and the way you build it.

Decide As Late As Possible

Late Again by Andreas Jalsøe
Late Again by Andreas Jalsøe

This is the part where I tell you about the ‘Last Responsible Moment’. This moment is the very last point in time where you can make a decision. But, it’s not just about putting off a decision until you REALLY have to make one. It’s about putting off a decision until you have as much information as you’re going to get before you have to make a decision. You need to weigh up all the potential options that a decision throws at you, decide what the deadlines are on each of those options, then you’ll know when you need to make your decision by. This is to stop you from making generalised decisions, or writing generalised class structures – stuff you might end up throwing away. Waiting until the very last moment to make a decision might seem reckless, but weigh that with making decisions too early and having to throw work away and you’ll start to see the benefit. If you’re struggling to work out when the last responsible moment is, there’s a great comic strip on the Agile Journal that might help you out.

Deliver As Fast As Possible

This is just common sense in an agile world. Any of the agile-y methodologies suggests that you do this – it increases visibility on how your product is doing through the medium of early feedback. Your customers or users can see what you’re doing in short bursts and feedback to the team. On top of this, it allows the teams to step amplify their learning process with constant, quick feedback. You’ll also be delivering things the customer wants today and not what they asked for three weeks ago. This also draws from Toyota’s way of doing things Just-In-Time. Where you deliver things just in time for the next part of the process, eliminating waste by having nothing hanging around waiting for the next step or phase. In development terms, this means finishing a task and handing it off for testing just as the tester finishes testing the previous task. Not that that’s going to be easy, but no one said it would be!

Empower The Team

Empowered by Search Engine People Blog
Empowered by Search Engine People Blog

Find good people and let them do their job. Don’t hire good developers, testers and the like, then tell them how to deliver the software. The people who know the most about how to deliver your product for you, are the guys in the trenches, the girls on the factory floor, not the managers in their glass boxes. Teach your management layer how to listen to your developers. If you can’t do that, then make sure there’s a conduit for information to flow both ways. If management starts telling developers how to build software, you might as well not bother…

Hire good people, show them what you want and how you think you’d like to get there, then get out of their way.

Empower the team to make decisions on the direction of the product – from their point of view – this is important. Developers aren’t going to know the overarching roadmap and vision of the product unless you tell them, they’ll then be able to start making design decisions based on that knowledge, so hide nothing from them. Hire good people, show them what you want and how you think you’d like to get there, then get out of their way.

Build Integrity In

Software quality is paramount. Developers are no longer satisfied with being such, they’re now engineers, artists and craftsman. To be a good software engineer, you need to be both artist and craftsman. Both of these professions strive for quality and perfection. Your teams should be doing this too. Your software should ship with no defects and to ensure this happens, you need to make sure your teams are baking tests into their product. Automated tests are part of the product, if they’re not useful, they’re wasted and should be stripped. They’re also not the goal, they’re the means to achieve to the goal (a quality product, free from defects).

Building integrity into the code is one thing, you also need to build integrity into the entire system itself. Everyone from the customer to the team members should be refactoring, de-coupling and generally making sure the whole system is rock solid and trustworthy. If your customer has a good feeling about the entire product, then you will too!

See The Whole

Software nowadays is no longer the sum of it’s parts. Now software is modularised, or farmed off into services, it’s the interactions which count – the layers between the layers. Be mindful of the way things interact with one another and you’ll avoid common defects and be able to deliver a better product. Seeing the whole also refers to the relationships between all relevant parties of you project or product. If you’re making software with teams that span the globe, make sure you’re keeping the interactions between your teams and even your 3rd party vendors in your sights. That way, you’re much less likely to miss the problems of integration when they occur.

So…

communes, law & common sense
communes, law & common sense by cdrummbks

Implementing these seven parts of Lean Software Development into your Software Delivery Lifecycle, along with a good dash of common sense and some good people on your team should be all you need to create a great software product. Is Lean the answer? I don’t know. It’s one methodology that might suit your team, your industry or your product. But maybe it won’t. From the outside, it seems fairly sensible that, reducing waste is a great idea, but – what is waste really? I don’t think that anyone nowadays will be of the mindset that ‘this is what we do because it’s the way it’s always been done’ are they? So, how do you identify waste when your software development and delivery practices all have a purpose? Do you try and assign a value to the purpose and ditch those practices which fall below a certain value threshold? Maybe. But, until I’ve had a chance to experiment with Lean Software Development, I’ll never be sure.

I’m beginning to think that each methodology has it’s good ideas and common sense ideas – it’s up to you and your team to pick the best ones that work for you, I think that, regardless of your methodology, ‘reducing waste’ is a good guideline to subscribe to and if you take anything away from this, then that’s definitely something to adhere to.

Advertisements

3 thoughts on “Lean Software Development

  1. Hi Mike – Enjoyed reading your post! I am trying to find someone who has experience in applying lean to Professional Services for enterprise software. Especially interested in focus on process improvement by identifying Muda. Thx for your help!

    1. Hi Raj, thanks for the comment! Before identifying Muda, I’d suggest reading “Slack: Getting Past Burn-out, Busywork, and the Myth of Total Efficiency” by Tom DeMarco http://t.co/fzb079I. Otherwise, you might start cutting things you don’t mean to cut. Otherwise, the first step is just Kanban, get your process visible, add some WIP limits and see where your Muda lies.

      What do you mean by “Professional Services”?

      Mike

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s