Showing posts with label Agility. Show all posts
Showing posts with label Agility. Show all posts

Tuesday, 9 February 2016

Book: The Nature of Software Development

OK, so I still owe you further review of Agile Estimating and Planning. I've got plenty other books I want to talk about, too. At FOSDEM I picked up these two gems: User Story Mapping by Jeff Patton and The Nature of Software Development by Ron Jeffries. This blog post is about the latter, which I have just finished reading.

Reading To Learn

Every year I pick up one or two books at the O'Reilly stand at FOSDEM and this year was no different. Having heard a lot about it, I picked up a copy of "User Story Mapping". I've not gotten around to reading this yet, but I'm looking forward to it. I also picked up a copy of "The Nature of Software Development", a book I did not know I needed until I had a copy in my hands.

Whilst I am a huge fan of Scrum, I appreciate that being agile is more important than following any particular agile process. Ron Jeffries sees this as the "natural" way of software development and I tend to agree. Whenever I talk to people about Scrum/agility one of the things I always struggle with is describing "why". Describing "mechanical Scrum" (the raw details of the process) is normally not sufficient for getting the most out of the team. A decent agile coach really needs their team to understand "why", too.

For certain activities I have good "why" stories. Ron's book, gave me all the "why's" for everything else. And that is what makes this book great.

Books With Pictures

So I need to come right out with it: I love books with pictures. My imagination is a little lazy like that. This book has a picture on every page to help illustrate the concepts being discussed and that is marvellous.

The book is separated into two parts. In the first part Ron shares his thoughts on specific aspects of "value" and how to deliver it, including understanding just what value is and understanding it should be delivered feature at a time. The second half of the book is a collection of essays that help to expand upon topics covered briefly in the first half: how to refactor systematically in agile projects, how to scale agility etc etc.

The second part of the book has some interesting insight. But, for me, it is the first part that really continued all the gems... all the "why" information that I had been looking for. Take, for example, "why bother estimating?".

Example Of "Why?": Estimations.

When I trained to become a Scrum Master (and throughout my career) I was trained to value estimations. We estimate all sorts of things all the time in the development process. We need to know how long something is going to take. Or (more likely) how much effort is involved. Or how much it will cost.

Why?

Ron is a proponent of the NoEstimates movement. Having read this book and understood the topic better, so now am I. If we keep user stories uniformly (and predictably) small and we are always focusing on delivering the most high value user stories immediately, why should we care about estimations? Estimations are hard to the point we (should always) accept that they are wrong. So is there anything really to be gained from them? Read this book to find out.

Before reading this book I never would have dared to try NoEstimation development. Now I understand the topic better, I'd happily give it a try to see what the team felt about it. Perhaps estimation will become another "choose to do it or not" feature of the process, just like the Daily Scrum.

In Conclusion

The writing is clear and simple. The structure (background issues followed by in-depth essays) flows well and encourages you to keep reading: I managed to get through the book in only two sittings and only a couple of hours.

Much of the content should be familiar to anyone with experience of following agile processes. It should definitely be comfy ground for anyone with Scrum Master/Product Owner experience. The insight and experience of Ron on the topics covered really shows in the text: a coach's coach.

Want to hone your agile coaching skillz? Read this book.

Wednesday, 30 September 2015

Daily Scrum and the Three Questions of Doom

Oh yes, the Daily Scrum. That stand-up meeting that happens at the beginning of the day. It is a planning meeting. Not a status update. The Scrum Guide, in a rare moment of being prescriptive, even dictates the questions that should be asked in the meeting:

The Daily Scrum is a 15-minute time-boxed event for the Development Team to synchronize activities and create a plan for the next 24 hours. This is done by inspecting the work since the last Daily Scrum and forecasting the work that could be done before the next one. The Daily Scrum is held at the same time and place each day to reduce complexity. During the meeting, the Development Team members explain:
  • What did I do yesterday that helped the Development Team meet the Sprint Goal?
  • What will I do today to help the Development Team meet the Sprint Goal?
  • Do I see any impediment that prevents me or the Development Team from meeting the Sprint Goal?

So why do I call these the "questions of doom"?

Getting Beyond Mechanical Agile

Are the questions, themselves, the problem? Like a lot of things with Scrum, it is not the mechanics you need to look at. It is the surrounding culture you need to pay close attention to. So, by themselves, no, I do not think the questions are problematic. Let's take a look...

What did I do yesterday that helped the Development Team meet the Sprint Goal?

In a meeting about planning for the immediate future, looking back might seem like an odd thing to do. For me, understanding this question is a good indicator if someone "gets" agility or not. Scrum teams should be autonomous and self-organising, so it is important to talk about what you did because it may very well impact what someone else will do.

What will I do today to help the Development Team meet the Sprint Goal?

This, of course, is the question at the heart of daily planning. It is important to know this for many reasons:

  • Perhaps the work you are planning on doing has dependencies with other on-going tasks;
  • Perhaps the Product Owner wants you to focus on another higher-value item first (for any reason);
  • Maybe you need to go to your kid's school play in the evening and it is important for the team to realise you will deliver slightly less than usual.

Who knows? I could come up with 1001 reasons with it is important to know this information.

Do I see any impediment that prevents me or the Development Team from meeting the Sprint Goal?

I actually do not like the word "impediment". I'd prefer it if this question was something more like, "Have I learned anything that might prevent the Development Team from meeting the Sprint Goal?"

  • Over commitment in Story Points?
  • Overly complex dependencies between tasks?
  • Summer holiday you forgot to take into account during Sprint planning?

The potential list is endless.

So What's The Problem?

Whilst I do not like that these questions are somewhat prescribed in the Scrum Guide, you're gonna have to go a long way to tell me that they are not worthy. Of course the meeting itself is also worthy. So what's the problem? Why brand these "Three Questions of Doom"?

In short: ScrumMasters actually ask these questions. They should stop.

Have you been in a Daily Scrum where you felt the Daily Scrum was reporting meeting because the Scrum Master fired these questions at you? If you have been doing Scrum for a while, I bet you have at some point! In case I was not clear the first time, I will say it again: the Daily Scrum is a planning meeting. All too often these are becoming status updates and even worse reporting meetings (important cultural different between updating and reporting). If the team members feel they have to report to the ScrumMaster (or the Product Owner) there is something wrong. You might be successfully delivering a mechanical Scrum but you have some cultural problems that are going to hurt you in the long-run.

By actually pitching these questions at the team members, the ScrumMaster is most-definitely turning the Daily Scrum into a reporting environment.

So How Should We Run The Daily Scrum?

Well, there are plenty articles out there with some good tips. I think, in short, the culture of the meeting needs to be one of "let's come up with a plan for today" not "let's report on progress". The Three Questions of Doom are useful because they illicit the information required to perform daily planning. But they are also problematic if they are used as the structure for the meeting.

So:

  • talk as little as possible, but talk about everything that is important;
  • shake up the order of the meeting;
  • rotate who is facilitating the meeting;
  • remember your time-boxing;
  • the output should be a shared understanding of the plan for the day and that is all.

By keeping the meeting lively, informative and brief, your teammates will continue to show up. If they start to vote with their feet and skip the meeting you know you have a real cultural problem surrounding one of the most important planning meetings in Scrum! Treating the Daily Scrum as a reporting meeting is one of the common indicators that an organisation has not fully understood and adopted Scrum yet. In such an environment, sadly, it is all too easy for the inexperienced ScrumMaster to fall into the trap of establishing themselves as a manger rather than a facilitator; an important cultural difference in a framework of equals.

Thursday, 24 September 2015

We Need To Talk About Scrum Nexus

Life is full of little mysteries:
  • Why do cats love boxes so much?
  • How do dolphins sleep?
  • Where did the missing footage from the Zapruder film go?
  • How on Earth should we scale Scrum?

Science and conspiracy has answers to all of these. Personally, I have a few questions about the last issue.

Scaled Scrum

There are multiple approaches to scaling agile projects "out there". I'm not going to talk about any of them in detail. But feel free to take 10 minutes to educate yourself by clicking the links below. You'll come back, right?

Back? OK.

I'm particularly interested in LeSS, SSwS and Nexus (and somewhat in the Spotify approach) because these are, in particular, approaches to scaling Scrum. Of course each has its ups and downs. Nexus, however, has some particularly down-y downs. They bother me.

Getting Down With Nexus

The Nexus Framework from Scrum.org

So. Nexus. This is the official approach to scaling Scrum from the nice folks at scrum.org. It only landed very recently so it is kinda late to the party. I get the feeling it is a somewhat rushed reaction to all the other approaches coming into use first. Why do I think this? Because of two gaping holes:

  • Nexus does not actually scale (very well).
  • It will kill the culture of your existing Scrum project.

Nexus is very workable because it is so simple. It takes all the same principles of Scrum and simply add some bits. No major overhaul. No demanding concepts in addition to Scrum. But these problems of scale and culture are big problems.

Scaling With Nexus

Why do I think Nexus does not scale very well? Simple. The authors of the framework say so themselves! Take a look at what it says on page 2 of the guide:

Nexus is a framework consisting of roles, events, artifacts, and techniques that bind and weave together the work of approximately three to nine Scrum Teams working on a single Product Backlog to build an Integrated Increment that meets a goal.

Three to nine teams. THREE. TO. NINE. So between 15 (bare minimum) and 81 (absolute maximum) developers. Not very scale-y. Spotify with its 1200 developers laughs in the face of Nexus.

Why does it not scale so well? Simple: take a look at the image above. See that "Nexus Integration Team"? There's your problem. This team is constructed from the Product Owner, the ScrumMaster and the Nexus Integration Team members, who may or may not be members of the Scrum teams. For me, it makes sense for the NIT members to also be representatives of the Scrum teams. But a combination of Brooks' and Conway's laws limit the size of the NIT to about 8 or 9.

I have yet to see anything official on the matter but I have heard rumour of Nexus+ as a means for bringing greater scale. A Nexus of Nexuses. Holy Moly. No.

Culture Vulture

The one is subtle. And little hard to explain to anyone who has never "done agile". But I'll give it a try.

Scrum teams are self-organising. This is a big deal. They work together to solve their problems as best as they can. The most "senior" team members humble themselves and the most "junior" have the chance to shine. Everyone pulls together and does their best using their skills. No specialists.

I call this the "egalitarian social contract" of Scrum.

You will not find any Scrum guide telling you that this is a feature of Scrum. It isa natural result of being self-organising (something which the guides will tell you to do). "I hate being in a team of equals" said no Scrum team member ever. This attitude to teamwork is something that is just expected of a Scrum environment with decent values.

Nexus kinda breaks this. Hard. And explicitly.

Go back to that guide again and take a look at page 5:

Members of the Nexus Integration Team may also work on the Scrum Teams in that Nexus, as appropriate and necessary. If this is the case, priority must be given to the work for the Nexus Integration Team. Membership in the Nexus Integration Team takes precedence over individual Scrum Team membership. This preference helps ensure that the work to resolve issues that affect many teams has priority.

Priority must be given to the work for the Nexus Integration Team. Priority. "Sorry guys, I need to do some stuff for the NIT. I'm not going to be able to help with backlog item X today." Not. Cool.

All That Bad?

If I am being honest, this is a little bit of nit-picking on my behalf. Scaling up to 81 is still more scale than the vast majority of development companies need to scale to. Cultural problems can always be tackled somehow. I guess my issue is that these problems were built in to the framework.

I'd love to see Nexus in action. I suspect it is so new that nobody is really doing it yet. Is anyone out their seriously wanting to give this a try? I hope so. Please shout if you are. I'm really curious to see it in action.

Friday, 24 July 2015

Agile Estimating and Planing (Part I: The Problem and the Goal)

For all engineers working at KDAB, "The Clean Coder" is compulsory reading. It is a very interesting read because it is almost a lifestyle guide, rather than the usual dry text on personal time management. It covers all the common tasks faced by software engineers: estimating, refactoring, testing, coding... the lot. As proclaimed by the back cover, "[the book] covers more than technique: it is about attitude." It's a great introduction to software craftsmanship. Impressed with this book, I picked up a copy of "Agile Estimating and Planning" which is in the same series of books from Prentice Hall.

The book is separated into 7 parts and 23 chapters. I will not bombard you all with a lengthy review of the whole thing all at once. Instead, I'll drip-feed you my thoughts one part at a time. Starting with the beginning: "Part I: The Problem and the Goal".

Chapter 1: The Purpose of Planning

This chapter should provide nothing new to anyone who has been through "Project Management 101" and is nicely couched in the context of software development. Ultimately we are asked "Why bother with planning at all?" and are presented with the following reasons:

  • Reduce risk
  • Reduce uncertainty
  • Support better decision making
  • Establishing trust
  • Conveying information

Fred Brooks (in a pre-agile era) famously told us that we needed to throw one plan away, so we should plan to do so:

The corollary to this is that if you plan to throw one away, you will end up throwing away two.This is and has been an impractical suggestion. Plan to build something as quickly as possible and modify it as needed in the future.

Planning is very important. Plans are not. Fred Brooks saw agility coming. Hero.

Paul's Thoughts...

Good introductory chapter. Gentle reminder of a few things the reader should probably already know. Successfully sets the context for what is coming.

Chapter 2: Why Planning Fails

So now we start to get a little more in-depth with agility. Again, nothing too taxing at this point and certainly familiar ground for anyone who is an experienced ScrumMaster or Product Owner. This time we are simply asked "Why does planning fail?" There is, of course, plenty evidence for failed planning: how many people reading this have been involved in projects where scope, quality and/or timelines have been "off"? I know I have. Let's face it, we all have.

In this chapter the primary reasons for failure are cited as:

  • Planing activities and not features
  • Too much multitasking
  • Features not developed by priority
  • Not embracing uncertainty
  • Estimates as commitments

The second point on this list is my favourite and one that often goes misunderstood... Once upon a time I thought I was Godlike for handling so much work. I was the multitasking master. Education and experience has taught me that multitasking is actually the productivity killer. Do one thing. Get it done. Move on. I actually control my tasks at work with a Kanban chart which has been specifically designed so that I cannot fit too many tasks into the "Work In Progress" state. In short: multitasking causes a lack of focus, increases the number of ramp-up periods/context switches, increases stress and, most importantly, delays the delivery of results, which may impact other people's work. The book contains a genius "why did I not think of that?" diagram to illustrate this.

Paul's Thoughts...

Great reminder of the factors behind planning failures and good description (without too much tedious detail) of why these factors happen in old planning styles.

Chapter 3: An Agile Approach

A good plan violently executed now is better than a perfect plan executed next week. --- General George S. Patton

Chapter 3, opens with an epic quote. Otherwise, the first half of this chapter is a little unnecessary; the history and fundamental concepts of agility are presented. In all honesty, I skipped through a lot of this. There is nothing new in here and it is all content I would expect the reader to have a good grounding in. I assume this was thrown in "just in case" the reader gets this far with no knowledge of agility at all.

Thankfully the second half of the chapter gets us back on point.

In the second half of the chapter we are reminded that planning is actually only as useful as the horizon; if you are trying to reach a target 20 miles away, you're going to need to check your progress and reassess 5 times, because the horizon is roughly 4 miles away. So what are the horizons in software engineering projects?

Paul == Artist

Typically it is the three innermost of these that we care about. The inner two are certainly familiar with any Scrum practitioners (daily scrum and sprint planning/retrospective). Release planning is about determining what user stories are going into the next version of the product. If anything, it is about creating a "vision" that the team can buy into. Iteration planning is more in-depth: "What are the tasks we can associate with the user stories? What are the priorities?". Daily planning is hugely important, too: "What am I working on? Who/what am I blocking? Who/what is blocking me? Is progress as expected?"

Paul's Thoughts...

An interesting read for anyone who needs an introduction to agility and how to structure planning in an agile environment. I was left thinking "just cut to the chase!". The next part of the book, and my next post on this topic, is called "Estimating Size". Now we're talking!

Overall Thoughts on Part 1

It is satisfying to be reading a book that I can easily relate to my own experiences of both classical and agile project management. The background information is undoubtedly important for some readers. For me, however, there was just a little too much. Any experienced project manager (especially Scrum Masters/Product Owners) could skim through this and head straight to Part II, I think.