Lean Principle #2 – Build Quality In

In my previous post about lean software development, I explained Lean Principle #1 – Eliminate Waste.

Quality issues result in all sorts of waste. That’s a fact. There’s waste in testing the code more than once. Waste in logging defects. And waste in fixing them. As a result, lean principles specifically seek to address this point.

The second principle of 7 Key Principles of Lean Software Development is Build Quality In

In agile methodologies such as Scrum and Extreme Programming (XP) – which personally I think are great examples of lean thinking in action – there are various practices to help you do this…

Firstly, there are quality assurance processes designed to avoid quality issues in the first place. Two examples of this are Pair Programming and Test Driven Development.

Pair Programming seeks to avoid quality issues by applying the minds of two developers to each task. The task benefits from the collective, combined experience of two developers instead of one, often resulting in better productivity as they see solutions that on their own they might not have done. Another positive outcome of Pair Programming is improved quality, since one person can be thinking slightly ahead of the other, catching issues before they occur.

Test Driven Development avoids quality issues by writing tests before writing code. In the simplest form, think about a Test Analyst/QA person writing down the test conditions for each feature just before it’s developed. If the developer knows how it’s going to be tested, they are much more likely to write code that addresses all the scenarios. In its more sophisticated form, Extreme Programming advocates stubbing out the code and writing automated unit tests for each of the test conditions before actually writing the code. The developer then writes the code to pass the tests.

Both of these practices come from Extreme Programming and both seek to prevent quality issues from occurring.

Constant Feedback – Inspect and Adapt

Both Scrum and XP build quality into the process in another way, which is inherent in many of the 10 key principles of agile software development. By doing development in small incremental steps, through close collaboration, and by developing in small iterations, these agile methods provide the opportunity for constant 2-way feedback between the Product Owner and the team. This feedback can be immensely valuable, inspecting and adapting the product every single day in order to ensure the right level of quality – and most importantly of all – the right product.

Of course, the practices of XP and Scrum are completely complementary so it’s possible to use both.

Minimise Time Between Stages

Another important technique for building quality into the development process is to minimise the time between development, testing and bug fixing. Rather than logging bugs, deal with them immediately. Logging bugs in a lot of cases is in fact waste. If the tester can test the code as soon as it’s developed, and the developer can fix any bugs as soon as they are found, what is the value in logging them? On the other hand, a long gap between producing the code, testing it, and before fixing the bugs results in a loss of continuity. A loss in continuity that causes delays from task switching, knowledge gaps, and a lack of focus.

Frequent Integration

Most agile methods also advocate doing regular and frequent builds. At least daily, if not hourly. Extreme Programming advocates continuous integration, with code integrated into the overall system, built and automatically unit tested as soon as it is checked in. Minimising the gap between builds also reduces another form of waste, that is integration. On large waterfall projects, the integration and regression testing phases of the project can be very lengthy. Regular builds and frequent integration avoid that problem.

Automation

Agile development methods also encourage automated regression testing. Of course this is a practice that is not unique to agile development, but is another way to reduce the effort associated with finding quality issues before they occur in a live environment. This is admittedly the last stage, but quality assurance is built into every step in the process.

This is how Scrum and XP have translated lean principles into practice in software development and how they have built quality into the process. In your own situation, you may also see other opportunities to build quality in.

Managing Trade-offs

One word of warning though. Quality is only one dimension of the project – the others being time, cost and scope. Sometimes there will be commercial reasons to trade-off quality against other factors, or to watch out for situations where attention to quality costs more than the issues you are trying to avoid.

One example of where agile methods acknowledge this in principle is the acceptance of rework (‘refactoring’) as a result of not having a detailed spec and complete design up-front. In traditional methodologies, these practices were designed to improve quality early in the project lifecycle. However, over many years, many people have found them to be counter-productive and hence agile methods were born.

Similarly, if you are working on fairly low-complexity visual components that have a low impact, it may be worth spending less time on quality assurance as the risk of quality issues occurring, and the impact if they do, is much lower. Naturally this is a judgement decision and unfortunately it can be very hard to know where to draw the line.

In summary…

Quality is obviously extremely important, or you inevitably create all sorts of waste further down the line. Build quality in. Build it in as early as possible in the process to avoid quality issues materialising. And build it in throughout the entire development process, not just at the end.

Kelly.

7 Key Principles of Lean Software Development:

1. Eliminate Waste
2. Build Quality In
3. Create Knowledge
4. Defer Commitment
5. Deliver Fast
6. Respect People
7. Optimise The Whole

 

7 Responses to “Lean Principle #2 – Build Quality In”

  1. Peter Saddington says:

    Great article. Wondering if you could elaborate a little more on great reasons for paired programming. Some clients are interested, but have a hard time making the jump! What are the biggest factors?

  2. kev says:

    Great article, I wholeheartedly agree, In my opinion quality is the key to increasing your velocity sustainably, most teams that I observe that struggle to do scrum seem to be affected by the lack of being able to apply the XP disciplines that focus on quality, pairing, tdd, done done..you have to make sure quality is happening right from the start and that it is continually improved, letting quality go by dropping the disciplines leads to legacy problems.

  3. kev says:

    re: reasons for paired programming – the primary reason/goal I believe is to allow you to deliver value early and often to your customer. People(developers, testers etc) who accept and adopt pairing will undoubtedly produce higher quality work which in turn will lead to an increase in capability/velocity. I actually pair not only on programming but on emails, on support documents, etc etc as in my experience quality is increased.
    Another reason is doing XP/Scrum (not scrumbut) is hard and two heads are better than one…especially when you first start trying TDD..try it and measure your velocity over a couple of sprints and make your own mind up.

  4. miniclip says:

    really awesome article i didint think that way but how about xp addiction..

  5. seo melbourne says:

    Very nice article but i like mostly Agile development methods also encourage automated regression testing.but there are present time variouse technology.

  6. Casey says:

    I love it. Develop fast, but you have to build quality products.

  7. Ryan Platte says:

    Refactoring as a regular part of software development keeps design quality high with near-zero inventory of design problems. As features are added, subtle design defects begin to evidence themselves. Developers practiced in continuous refactoring notice these “code smells” and address them inexpensively at the earliest possible moment. Your reference to refactoring seems to assume it’s long after the fact, which would indeed impede flow. XP advocated it as a continuous activity, the inexpensive JIT “middle way” between keeping an inventory of design up front (design before development) and winding up with an inventory of technical debt (design after development).

Leave a Reply

What is 5 + 5 ?
Please leave these two fields as-is:
Please do this simple sum so I know you are human:)

There are 101 ways to approach anything.
To find the best way, sometimes you need expert help

What People Say

“Kelly revolutionised the way our digital department operated. A true advocate of agile principles, he quickly improved internal communication within our teams and our internal clients by aligning our business and creating a much enhanced sense of transparency in the decisions the business was making. Kelly also introduced a higher sense of empowerment to the development teams...”

PETER SILVA-JANKOWSKI
IPC MEDIA

“Kelly’s a leading program director with the ability to take charge from day one and keep strong momentum at both a program and project level driving prioritisation, resourcing and budgeting agendas. Kelly operates with an easy-going style and possesses a strong facilitation skill set. From my 5 months experience working with Kelly, I would recommend Kelly to program manage large scale, complex, cross company change programs both from a business and IT perspective.”

LUKE SHARKEY /STRATEGY & IMPLEMENTATION LEADER
SUNCORP

“Kelly is an extremely talented and visionary leader. As such he manages to inspire all around him to achieve their best. He is passionate about agile and has a wealth of experience to bring to bear in this area. If you're 'lucky' he might even tell you all about his agile blog. Above all this, Kelly is great fun to work with. He is always relaxed and never gets stressed - and trust me, he had plenty of opportunity here! If you get the chance to work with Kelly, don't pass it up.”

GILES BENTLEY, DEVELOPMENT & OPERATIONS DIRECTOR
TIME INC

“Kelly is an Agile heavy-weight. He came in to assess my multi-million $ Agile development program which wasn’t delivering the right throughput. He interviewed most of the team and made some key recommendations that, when implemented, showed immediate results. I couldn’t ask for more than that except he’s a really nice guy as well.”

DAN PULHAM, DIGITAL DIRECTOR
TELSTRA

“Kelly and I worked together on a very large project trying to secure a new Insurer client. Kelly had fantastic commercial awareness as well as his technical expertise. Without him I would never had secured this client so I owe a lot to him. He is also a really great guy!”

GINA MILLARD
GLASS'S INFORMATION SERVICES

“Kelly came to the department and has really made a huge impact on how the department communicates, collaborates and generally gets things done. We were already developing in an agile way, but Kelly has brought us even more into alignment with agile and scrum best practices, being eager to share information and willing to work with us to change our processes rather than dictate how things must be done. He is highly knowledgable about agile development (as his active blog proves) but his blog won't show what a friendly and knowledgeable guy he is. I highly recommend Kelly to anyone looking for a CTO or a seminar on agile/scrum practices - you won't be disappointed!”

ANDY JEFFRIES/TECHNICAL LEAD
IPC MEDIA

“Kelly was a great colleague to work with - highly competent, trustworthy and generally a nice bloke.”

HANNAH JOYCE
GLASS'S INFORMATION SERVICES

“Kelly was engaged as a Program Director on a complex business and technology transformation program for Suncorp Commercial Insurance. Kelly drew on his key capabilities and depth of experience to bring together disparate parties in a harmonised way, ensuring the initiate and concept phases of the program were understood and well formulated. Excellent outcome in a very short time frame. ”

BRUCE WEIR/EGM
SUNCORP

“I worked with Kelly on many projects at IPC and I was always impressed with his approach to all of them, always ensuring the most commercially viable route was taken. He is great at managing relationships and it was always a pleasure working with him.”

BEATRIZ MONTOYA/CONSUMER MARKETING DIRECTOR
IPC MEDIA

“I worked with Kelly whilst at Thoughtworks and found him to be a most inspiring individual, his common-sense approach coupled with a deep understanding of Agile and business makes him an invaluable asset to any organisation. I can't recommend Kelly enough.”

PETER THATCHER, SENIOR ACCOUNT DIRECTOR
ThoughtWorks

“Kelly was a brilliant CTO and a great support to me in the time we worked together. I owe Kelly a great deal in terms of direction and how to get things done under sometimes difficult circumstances. Thanks Kelly.”

JULIE PEEL
GLASS'S INFORMATION SERVICES