Lecture Notes w4 - Scrum and Kanban
Lecture Notes w4 - Scrum and Kanban
MSIN 0019
Introduction to Software Engineering
Niall Roche
Faculty of Engineering
[email protected]
Extreme Programming (Beck 1999)
▪ A disciplined, iterative, agile approach to software systems
development.
▪ Some key XP practices
— Test-driven development
— The tests are the system specification
— Releases are as small and frequent as possible
— Pair programming
— Collective code ownership
— Coding standards
— Continuous integration
— Frequent refactoring of code
— Onsite customer is a member of the development team
— 40-hour work week
2
When to use XP
▪ XP works best when
— Requirements are changing rapidly
— Projects are high-risk with new challenges
— Development can be carried out by small
groups (2-10 developers)
— Automated testing is possible
— Direct customer involvement is possible
3
Scrum
▪ A widely used iterative/incremental method
used with agile development.
▪ The following slides describing Scrum were
created by Mike Cohn of Mountain Goat
Software.
— Creative Commons License
▪ Widely used by the Open Source movement
4
Scrum in 100 words
• 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 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
Scrum is used by a range of companies:
• Microsoft • Nielsen Media
• Yahoo • First American Real Estate
• Google • BMC Software
• Electronic Arts • Ipswitch
• IBM • John Deere
• Lockheed Martin • Lexis Nexis
• Philips • Sabre
• Siemens • Salesforce.com
• Nokia • Time Warner
• Capital One • Turner Broadcasting
• BBC • Oce
• Intuit • Many Many more….
Scrum has been used for:
▪ Commercial software • Video game development
▪ In-house development • FDA-approved, life-critical
systems
▪ Contract development
▪ Fixed-price projects
• Satellite-control software
▪ Financial applications
• Websites
▪ ISO 9001-certified
• Handheld software
applications • Mobile phones
▪ Embedded systems • Network switching applications
▪ 24x7 systems with 99.999% • ISV applications
uptime requirements
• Some of the largest applications
▪ the Joint Strike Fighter in use
Characteristics
▪ Self-organizing teams
▪ Product progresses in a series of 2-4 week
“sprints”
▪ Requirements are captured as items in a list of
“product backlog”
▪ No specific engineering practices prescribed
▪ Uses generative rules to create an agile
environment for delivering projects
▪ One of the “agile processes”
The Agile Manifesto–a
statement of values
Individuals and
over Process and tools
interactions
Comprehensive
Working software over
documentation
Source: www.agilemanifesto.org
Scrum
24 hours
Sprint
2-4 weeks
Sprint goal
Return
Sprint Potentially shippable
Return
Cancel backlog product increment
Gift
Coupons
wrap
Gift
Cancel
wrap Coupons
Product
backlog
Putting it all together
Image available at
www.mountaingoatsoftware.com/scrum
Sprints
▪ Product Owner
▪ Solution Architect
▪ Software Architect
▪ QA team
▪ Ops team
▪ Build/Deployment Manager
▪ SCRUM Master
▪ Support Team
Scrum framework
Roles
• Product owner
• ScrumMaster
• Team
Ceremonies
• Sprint planning
• Sprint review
• Sprint retrospective
• Daily scrum meeting
Artifacts
• Product backlog
• Sprint backlog
• Burndown charts
Team Sprint planning meeting
capacity
Sprint prioritization
▪ User stories are short, simple description of a feature told from the
perspective of the person who desires the new capability, usually a
user or customer of the system. They typically follow a simple
template:
▪ User stories are often written on index cards or sticky notes, stored
in a shoe box, and arranged on walls or tables to facilitate planning
and discussion. As such, they strongly shift the focus from writing
about features to discussing them. In fact, these discussions are
more important than whatever text is written.
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 Code the middle tier (8 hours)
planner, I want Code the user interface (4)
Write test fixtures (4)
to see photos
Code the foo class (6)
of the hotels. Update performance tests (4)
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
Everyone answers 3
questions
1
What did you do yesterday?
2
What will you do today?
3
Is anything in your way?
▪ These are not status for the ScrumMaster
— They are commitments in front of peers
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
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
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
Scrum framework
Roles
• Product owner
• ScrumMaster
• Team
Ceremonies
• Sprint planning
• Sprint review
• Sprint retrospective
• Daily scrum meeting
Artifacts
• Product backlog
• Sprint backlog
• Burndown charts
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
This is the
product backlog
▪ Reprioritized at the start
of each sprint
A sample product backlog
50
40
30
Hours
20
10
0
Mon Tue Wed Thu Fri
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
Scaling through the
Scrum of scrums
Scrum of scrums of
scrums
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
▪ Lots of weekly articles at www.scrumalliance.org
Key Points
▪ UP is the iterative and incremental software
engineering process for the UML.
— UP has four phases: Inception, Elaboration,
Construction, Transition.
— Each phase may have one or more iterations.
— Each iteration has five core workflows.
▪ Requirements, Analysis, Design, Implementation,Test.
▪ Agile methods are being increasingly used.
— eXtreme Programming, Scrum
— iterative/incremental development, sprints
4
5
Modern Agile
http://modernagile.org
http://www.scaledagileframework.com
http://www.agilemodeling.com/essays/introductionToAM.htm
Kanban
Key Principles of Kanban
1. Visualize workflow
2. Limit work in progress (WIP)
3. Focus on flow
4. Use of feedback loops
5. Continuous improvement
5
0
Background
Lead time - how long does it take for a card to move from
“TO-DO” to “DONE”?
Cycle time - how long does it take for a card to move from
“Doing” to “Done”?
Number of items not started - are you struggling with your
workload?
Number of items that are WIP - are you staying within your
WIP limits?
Blockage areas - do you see any areas where cards build
up, causing a blockage in flow?
http://www.kanbanway.com/predict-project-failure-using-cumulative-flow-diagrams
http://leanguru.pro/the-cumulative-flow-chart-cfd-in-a-nutshell/
http://leanguru.pro/the-cumulative-flow-chart-cfd-in-a-nutshell/
Comparison of SCRUM – Kanban
KANBAN
SCRUM
https://www.atlassian.com/agile/kanban
Books
▪ https://www.amazon.co.uk/d/cka/Agile-Estimating-
Planning-Robert-Martin-Mike-Cohn/0131479415
▪ https://www.amazon.co.uk/Essential-Scrum-Practical-
Addison-Wesley-
Signature/dp/0137043295/ref=pd_lpo_sbs_14_img_0?_
encoding=UTF8&psc=1&refRID=NH6CG9AH4VKSTW4
2WSQA
Additional Content and
Resources
▪ http://modernagile.org
▪ https://www.atlassian.com/blog/
▪ https://blog.newrelic.com
▪ https://dzone.com
▪ https://www.thoughtworks.com
▪ http://www.scrumtrainingseries.com
▪ http://www.mountaingoatsoftware.com/scrum
Additional Content and
Resources
▪ http://stateofagile.versionone.com
▪ https://www.slideshare.net/ChrisDavies59/agile-
leadership-73088974
▪ https://www.slideshare.net/JonTerry2/intro-to-lean-
practices-tools
▪ https://www.slideshare.net/JonTerry2/intro-to-lean-lean-
software-development-and-kanban
▪ https://www.versionone.com/pdf/AgileCheckList.pdf
Additional Content and
Resources
▪ https://skillsmatter.com/skillscasts/7759-adopting-agile-
as-a-cultural-change
▪ https://skillsmatter.com/skillscasts/7631-principles-of-
effective-agile-project-governance
▪ https://hbr.org/2011/05/two-structures-one-organizatio
▪ https://dzone.com/articles/what-is-software-architecture-
in-
scrum?edition=317392&utm_source=Daily%20Digest&
utm_medium=email&utm_campaign=Daily%20Digest%
202017-08-13
IMB Attendance Capturing - Year
2
Module Code: MSIN2009
Session Keyword: scrum
http://bit.ly/IMB-Y2
Presentation Title 65