74
An Introduction to Scrum Tim McOwan KashFlow Software

Introduction to Scrum

Embed Size (px)

Citation preview

Page 1: Introduction to Scrum

An Introduction to Scrum

• Tim McOwan• KashFlow Software

Page 2: Introduction to Scrum

Overview

• Case study & theory• Scrum principles• Roles, ceremonies & artifacts• Planning• Where next?

Page 3: Introduction to Scrum

Presentation Framework from

– Except:» Motivation theory slides» Salesforce.com» Exercises» Story Point estimating» Lean software development principles» Miscellaneous other slides

Page 4: Introduction to Scrum

We’re losing the relay race

Hirotaka Takeuchi and Ikujiro Nonaka, “The New New Product Development Game”, Harvard Business Review, January 1986.

“The… ‘relay race’ approach to product development…may conflict with the goals of maximum speed and flexibility. Instead a holistic or ‘rugby’ approach—where a team tries to go the distance as a unit, passing the ball back and forth—may better serve today’s competitive requirements.”

Page 5: Introduction to Scrum

• Scrum is an agile process that allows us to focus on delivering the highest business value in the shortest time.

• It allows us to rapidly and repeatedly inspect actual working software (every two weeks to one month).

• The business sets the priorities. Teams self-organize to determine the best way to deliver the highest priority features.

• Every two weeks to a month anyone can see real working software and decide to release it as is or continue to enhance it for another sprint.

Scrum in 100 words

Page 6: Introduction to Scrum

Scrum origins

• Jeff Sutherland

• Initial scrums at Easel Corp in 1993

• IDX and 500+ people doing Scrum

• Ken Schwaber

• ADM

• Scrum presented at OOPSLA 96 with Sutherland

• Author of three books on Scrum

• Mike Beedle

• Scrum patterns in PLOPD4

• Ken Schwaber and Mike Cohn

• Co-founded Scrum Alliance in 2002, initiallywithin the Agile Alliance

Page 7: Introduction to Scrum

Scrum has been used by:

• Microsoft• Yahoo• Google• Electronic Arts• High Moon Studios• Lockheed Martin• Philips• Siemens• Nokia• Capital One• BBC• Intuit

• Nielsen Media• First American Real Estate• BMC Software• Ipswitch• John Deere• Lexis Nexis• Sabre• Salesforce.com• Time Warner• Turner Broadcasting• Oce• KashFlow Software

Page 8: Introduction to Scrum

Case Study:Salesforce.com

• Started 2001– 3 people in R & D– 4 releases per year

• 2006– 200+ in R & D– 1 release per year – late!

Page 9: Introduction to Scrum

2000 2001 2002 2003 2004 2005 2006

Features Delivered per Team

Days between Major Releases

Page 10: Introduction to Scrum

Big Bang Scrum Application

• 1 late release 4 on time releases in 1 year• +94% feature requests delivered (+38% pro

rata)• + 61%reduction in mean time to release• 91% of customers believe quality has

improved / remained the same

Page 11: Introduction to Scrum

2000 2001 2002 2003 2004 2005 2006 2007

Features Delivered per Team

Days between Major Releases

Transformation Results

Page 12: Introduction to Scrum

Salesforce Tips

• Focus on principles over mechanics• Focus on automation• Provide transparency• When the heat is on stick to your guns• Experiment, be patient and expect to

make mistakes

Page 13: Introduction to Scrum

86of respondents are having the “best time” or a

“good time” at Salesforce

%* Improved from 40% 15 months ago

Page 14: Introduction to Scrum

Motivation Theory – Job Design

Page 15: Introduction to Scrum

Motivation Theory – Psychological Contract

Page 16: Introduction to Scrum

Scrum has been used for:

• Commercial software• In-house development

• Contract development

• Fixed-price projects

• Financial applications

• ISO 9001-certified applications

• Embedded systems

• 24x7 systems with 99.999% uptime requirements

• the Joint Strike Fighter

• Video game development

• FDA-approved, life-critical systems

• Satellite-control software

• Websites

• Handheld software

• Mobile phones

• Network switching applications

• ISV applications

• Some of the largest applications in use

Page 17: Introduction to Scrum

Characteristics

• Self-organizing teams

• Product progresses in a series of month-long “sprints”

• Requirements are captured as items in a list of “product backlog”

• No specific engineering practices prescribed

• One of the “agile processes”

Page 18: Introduction to Scrum

The Agile Manifesto – a statement of values

Process and toolsProcess and toolsIndividuals and interactions

Individuals and interactions

over

Following a planFollowing a planResponding to change

Responding to change

over

Source: http://agilemanifesto.org

Comprehensive documentationComprehensive documentationWorking softwareWorking software over

Contract negotiationContract

negotiationCustomer

collaborationCustomer

collaborationover

Page 19: Introduction to Scrum

Project noise level

Simple

ComplexAnarchy

Complicated

Technology

Req

uir

em

en

tsFar from

Agreement

Close toAgreement

Clo

se t

oC

ert

ain

ty

Far

from

Cert

ain

ty

Source: Strategic Management and Organizational Dynamics by Ralph Stacey in Agile Software Development with Scrum by Ken Schwaber and Mike Beedle.

Page 20: Introduction to Scrum

Wasted Effort

Features and Functions Used in a Typical System

Standish Group Study Reported at XP2002 by Jim Johnson, Chairman

Always7%

Often13%

Sometimes16% Rarely

19%

Never45%

Rarely or Never Used: 64%

Often or Always Used: 20%

Page 21: Introduction to Scrum

Exercise

• Possible benefits (negatives) of Scrum to Our organisation

• Post-Its, 5 minutes

Page 22: Introduction to Scrum

Scrum

Cancel

Gift wrap

Return

Sprint2-4 weeks

Return

Sprint goal

Sprint backlog

Potentially shippableproduct increment

Productbacklog

CouponsGift wrap

Coupons

Cancel

24 hours

The Sprint Cycle

Page 23: Introduction to Scrum

Putting it all together

Page 24: Introduction to Scrum

Sprints

•Scrum projects make progress in a series of “sprints”

•Typical duration is 2–4 weeks or a calendar month at most

•A constant duration leads to a better rhythm

•Product is designed, coded, and tested during the sprint

Page 25: Introduction to Scrum

And….

• Regular “of value” releases• Does it really need to be done? What is the value? • Knowing the context

– So, knowing the trade-offs

• Collaborative• Communication

Page 26: Introduction to Scrum

Communication (Typical Model)

Send

Page 27: Introduction to Scrum

Communication (Shannon et al)

Page 28: Introduction to Scrum

Sequential vs. overlapping development

Source: “The New New Product Development Game” by Takeuchi and Nonaka. Harvard Business Review, January 1986.

Rather than doing all of one thing at a time... ...Scrum teams do a

little of everything all the time

Requirements

Design Code Test

Page 29: Introduction to Scrum

No changes during a sprint

•Plan sprint durations around how long you can commit to keeping change out of the sprint

Change

Page 30: Introduction to Scrum

Scrum framework

•Product owner

•ScrumMaster•Team

Roles

•Sprint planning•Sprint review•Sprint retrospective

•Daily scrum meeting

Ceremonies

•Product backlog•Sprint backlog•Burndown charts

Artifacts

Page 31: Introduction to Scrum

Scrum framework

•Sprint planning•Sprint review•Sprint retrospective

•Daily scrum meeting

Ceremonies

•Product backlog•Sprint backlog•Burndown charts

Artifacts

•Product owner

•ScrumMaster•Team

Roles

Page 32: Introduction to Scrum

Product owner

• Define the features of the product

• Decide on release date and content

• Be responsible for the profitability of the product (ROI)

• Prioritize features according to market value

• Adjust features and priority every iteration, as needed 

• Accept or reject work results

Page 33: Introduction to Scrum

Product Owner

• What are their responsibilities?

• Post Its, 5 minutes

Page 34: Introduction to Scrum

The ScrumMaster

• Represents management to the project

• Responsible for enacting Scrum values and practices

• Removes impediments

• Ensure that the team is fully functional and productive

• Enable close cooperation across all roles and functions

• Shield the team from external interference

Page 35: Introduction to Scrum

Scrum Master

• What are their responsibilities?

• Post Its, 5 minutes

Page 36: Introduction to Scrum

The team

• Typically 5-9 people

• Cross-functional:

• Programmers, testers, user experience designers, etc.

• Members should be full-time

• May be exceptions (e.g. database administrator)

• Teams are self-organizing

• Ideally, no titles but rarely a possibility

• Membership should change only between sprints

Page 37: Introduction to Scrum

•Product owner

•ScrumMaster•Team

Roles

Scrum framework

•Product backlog•Sprint backlog•Burndown charts

Artifacts

•Sprint planning•Sprint review•Sprint retrospective

•Daily scrum meeting

Ceremonies

Page 38: Introduction to Scrum

Sprint planning meeting

Sprint prioritization

• Analyze and evaluate product backlog

• Select sprint goal

Sprint planning

• Decide how to achieve sprint goal (design)

• Create sprint backlog (tasks) from product backlog items (user stories / features)

• Estimate sprint backlog in hours

Sprintgoal

Sprintgoal

Sprintbacklo

g

Sprintbacklo

g

Business conditionsBusiness

conditions

Team capacityTeam

capacity

Product backlogProduct backlog

Technology

Technology

Current productCurrent product

Page 39: Introduction to Scrum

Sprint planning

• Team selects items from the product backlog they can commit to completing

• Sprint backlog is created

• Tasks are identified and each is estimated (1-16 hours)

• Collaboratively, not done alone by the ScrumMaster

• High-level design is considered

As a vacation planner, I want to see photos of the hotels.

As a vacation planner, I want to see photos of the hotels.

Code the middle tier (8 hours)Code the user interface (4)Write test fixtures (4)Code the foo class (6)Update performance tests (4)

Page 40: Introduction to Scrum

Sprint Planning

• Who has what responsibilities?

• Post Its, 10 minutes

Page 41: Introduction to Scrum

Sprint planning

• Talk : join in• What is done?• Ownership of estimates• Learning opportunity of context

Page 42: Introduction to Scrum

The daily scrum

•Parameters• Daily

• 15-minutes

• Stand-up

•Not for problem solving• Whole world is invited

• Only team members, ScrumMaster, product owner, can talk

•Helps avoid other unnecessary meetings

Page 43: Introduction to Scrum

Everyone answers 3 questions

•These are not status for the ScrumMaster• They are commitments in front of peers

What did you do yesterday?What did you do yesterday?11

What will you do today?What will you do today?22

Is anything in your way?Is anything in your way?33

Page 44: Introduction to Scrum

Work the board

• Update with real estimates• Highlight issues• Own the estimate if task taken• Whose board?

Page 45: Introduction to Scrum

Daily Scrum

• What are your responsibilities?

• Post Its, 10 minutes

Page 46: Introduction to Scrum

The sprint review

•Team presents what it accomplished during the sprint

•Typically takes the form of a demo of new features or underlying architecture

• Informal• 2-hour prep time rule

• No slides

•Whole team participates

• Invite the world

Page 47: Introduction to Scrum

Sprint retrospective

•Periodically take a look at what is and is not working

•Typically 15–30 minutes

•Done after every sprint

•Whole team participates• ScrumMaster

• Product owner

• Team

• Possibly customers and others

Page 48: Introduction to Scrum

Start / Stop / Continue

•Whole team gathers and discusses what they’d like to:

Start doingStart doing

Stop doingStop doing

Continue doing

Continue doing

This is just one of many ways to do a sprint retrospective.

Page 49: Introduction to Scrum

Retrospectives

• What are your responsibilities?

• Post Its, 5 minutes

Page 50: Introduction to Scrum

•Product owner

•ScrumMaster•Team

Roles

Scrum framework

•Sprint planning•Sprint review•Sprint retrospective

•Daily scrum meeting

Ceremonies

•Product backlog•Sprint backlog•Burndown charts

Artifacts

Page 51: Introduction to Scrum

Product backlog

•The requirements

•A list of all desired work on the project

• Ideally expressed such that each item has value to the users or customers of the product

•Prioritized by the product owner

•Reprioritized at the start of each sprint

This is the product backlog

This is the product backlog

Page 52: Introduction to Scrum

A sample product backlog

Backlog item Estimate

Allow a guest to make a reservation 3

As a guest, I want to cancel a reservation. 5

As a guest, I want to change the dates of a reservation.

3

As a hotel employee, I can run RevPAR reports (revenue-per-available-room)

8

Improve exception handling 8

... 30

... 50

Page 53: Introduction to Scrum

The sprint goal

•A short statement of what the work will be focused on during the sprint

Database Application

Financial services

Life Sciences

Support features necessary for population genetics studies.

Support more technical indicators than company ABC with real-time, streaming data.

Make the application run on SQL Server in addition to Oracle.

Page 54: Introduction to Scrum

Managing the sprint backlog

• Individuals sign up for work of their own choosing

• Work is never assigned

• Estimated work remaining is updated daily

• Any team member can add, delete or change the sprint backlog

• Work for the sprint emerges

• If work is unclear, define a sprint backlog item with a larger amount of time and break it down later

• Update work remaining as more becomes known

Page 55: Introduction to Scrum

A sprint backlog

TasksTasksCode the user interfaceCode the middle tier

Test the middle tier

Write online help

Write the foo class

MonMon8

16

8

12

8

TuesTues4

12

16

8

WedWed ThurThur

4

11

8

4

FriFri

8

8

Add error logging

8

10

16

8

8

Page 56: Introduction to Scrum

A sprint burndown chartH

ou

rs

Page 57: Introduction to Scrum

Hou

rs

40

30

20

10

0Mon Tue Wed Thu Fri

TasksTasksCode the user interfaceCode the middle tier

Test the middle tier

Write online help

MonMon8

16

8

12

TuesTues WedWed ThurThur FriFri4

12

16

7

11

8

10

16 8

50

Page 58: Introduction to Scrum

Does Scrum do everything?

• What should we be doing in any event?

• 5 minutes, Post Its.

Page 59: Introduction to Scrum

Lean Software Development

• Waiting– Queuing theory, steady state of arrival

• Task switching• Partially done or ‘stored’ completed work• Speed of fixing defects• Options

– Create many– Decide at last responsible moment

• Trade offs

Mary and Tom Poppendieck

Page 60: Introduction to Scrum

Scalability

• Typical individual team is 7 ± 2 people

• Scalability comes from teams of teams

• Factors in scaling

• Type of application

• Team size

• Team dispersion

• Project duration

• Scrum has been used on multiple 500+ person projects

Page 61: Introduction to Scrum

Planning

• Estimating

• Road map!

Page 62: Introduction to Scrum

Epics: A milestone (?) with many stories

User Stories

User Story

Conversations

Acceptance Criteria

Page 63: Introduction to Scrum

Epics

• Think of a recent Epic…• Good:

– 5 minutes, write some stories

• Choose a Story– Write the conversations– Write the acceptance criteria

Page 64: Introduction to Scrum

Estimating using Story Points

• Relative complexity• How long will story x take compared to

story y?• Still an estimate• More thorough than other methods• Takes into account productivity /

efficiency of the team

Page 65: Introduction to Scrum

1 SP

20 SP13 SP

8 SP5 SP3 SP2 SP

?100 SP40 SP

Relative complexity – the Bridge metaphor

Page 66: Introduction to Scrum

Simple Velocity

• 3 simple wooden bridges in 1 sprint– Velocity = 3 story points

• Alternatively:– 1 simple wooden bridge and 1 basic

concrete bridge– 1 covered wooden bridge

• Team velocity increases and decreases– New team members, change in

environment etc.

Page 67: Introduction to Scrum

Scrum Estimating

• Poker cards• Deliberately increases exponentially to take into

account:– More uncertainty with bigger tasks

• Debate and discuss• No back log item > 20• Sufficient estimating

Page 68: Introduction to Scrum

Scrum is not Magic

It is simple...

...but hard work...

...and sometimes painful!

Page 69: Introduction to Scrum

Dilbert’s World

Page 70: Introduction to Scrum

The art of the possible

• The impossible is…

Still impossible

Unless you are Tom Cruise .. and we

aren’t, although we are all taller than him!

Page 71: Introduction to Scrum

The art of the possible

• We do what we can» Not what we cannot

» We cannot do xyz

• OK, What can we do?

Page 72: Introduction to Scrum

Where to go next

• www.mountaingoatsoftware.com/scrum

• www.scrumalliance.org

• www.controlchaos.com

[email protected]

Page 73: Introduction to Scrum

A Scrum reading list

• Agile and Iterative Development: A Manager’s Guide by Craig Larman

• Agile Estimating and Planning by Mike Cohn

• Agile Project Management with Scrum by Ken Schwaber

• Agile Retrospectives by Esther Derby and Diana Larsen

• Agile Software Development Ecosystems by Jim Highsmith

• Agile Software Development with Scrum by Ken Schwaber and Mike Beedle

• Scrum and The Enterprise by Ken Schwaber

• User Stories Applied for Agile Software Development by Mike Cohn

• Lean Software Development by Mary & Tom Poppendieck

• Lots of weekly articles at www.scrumalliance.org

Page 74: Introduction to Scrum

What to take away

• Inspect and adapt!• What will I be doing

differently?• What do I plan to do in:

– Sprint planning?– Daily scrums?– Retrospectives?