93
Kanban violet pill Gaetano Mazzanti @mgaewsj Gama-Tech

Kanban = Violet Pill

Embed Size (px)

DESCRIPTION

Kanban talk presented at Italian Agile Day 2011 #iad11

Citation preview

Page 1: Kanban = Violet Pill

Kanban

violet pill

Gaetano Mazzanti @mgaewsj

Gama-Tech

Page 2: Kanban = Violet Pill

no change disruptive change

Page 3: Kanban = Violet Pill

révolution?

Page 4: Kanban = Violet Pill

inspired by Joakim Sunden

Page 5: Kanban = Violet Pill

changes often end up being local: big impact on a few people, small/no impact on the whole org

Page 6: Kanban = Violet Pill

a storm in a glass?

change impacts

just here

company

technical dept

SW teams

Page 7: Kanban = Violet Pill

(scared) orgs, prefer small improvements, no change in roles and responsibilities (and they don’t like to be told that managers should be kept out of the loop)

Page 8: Kanban = Violet Pill

no cross functional team?

Page 9: Kanban = Violet Pill

no product owner?

Page 10: Kanban = Violet Pill

firefighting?

Page 11: Kanban = Violet Pill

people working on multiple projects?

Page 12: Kanban = Violet Pill

scared to change?

Page 13: Kanban = Violet Pill

sometimes you cannot

transform first

observe, visualize work, apply continuous improvement,

then transform

Page 14: Kanban = Violet Pill

Purpose > Observe, Measure > Method

method should come last!

Page 15: Kanban = Violet Pill

a complex journey, known destination

same pattern: Code Product Process

(BTW you need a Vision…)

un  

un

Page 16: Kanban = Violet Pill

Kanban 101

make work visible limit Work In Process (WIP) help work to flow

Page 17: Kanban = Violet Pill

kanban vs Kanban 1950 2004

Page 18: Kanban = Violet Pill

kanban & JIT in manufacturing

only what is needed only in the amounts needed only when it is needed

pull

Page 19: Kanban = Violet Pill

simple kanban home milk delivery

Page 20: Kanban = Violet Pill
Page 21: Kanban = Violet Pill

muri, mura, muda

Page 22: Kanban = Violet Pill

if you can’t see it you can’t manage it

Page 23: Kanban = Violet Pill

Limit WIP

Page 24: Kanban = Violet Pill

let work flow let work flow

Page 25: Kanban = Violet Pill

context matters

Page 26: Kanban = Violet Pill

principles of the Kanban method

start with what you do now pursue incremental, evolutionary change respect the current process, roles, responsibilities & titles

David J Anderson

Page 27: Kanban = Violet Pill

five core properties

visualize the workflow limit WIP manage flow make process policies explicit improve collaboratively (let people design their own process)

Page 28: Kanban = Violet Pill

yes, and…

two rules for improv…isation: 1.  agree 2.  add

EMENT  Tina Fey

Page 29: Kanban = Violet Pill

“the aim of kanban is to make troubles come to the surface and link them to kaizen activity”

Taichi Ohno, 1984

Page 30: Kanban = Violet Pill

map the mess

workflow bottlenecks

queues teamwork

time type of work

visible make

empower the team to fix it

Page 31: Kanban = Violet Pill

expose dysfunctions

do you keep stinky food in the fridge?

Page 32: Kanban = Violet Pill

visualize your actual work(flow)

backlog   to do   in progress   done  test  

B  

C  

D  

F  E  

A  

Page 33: Kanban = Violet Pill

visualize your actual work(flow)

backlog   to do   in progress   done  test  

B  

C  

D  

F  E  

A  

Page 34: Kanban = Violet Pill

visualize your actual work(flow)

backlog   to do   in progress   done  test  

B  

C  

D  

F  E  

A  

Page 35: Kanban = Violet Pill

visualize your actual work(flow)

backlog   to do   in progress   done  test  

B  C  

D  

F  E  

A  

Page 36: Kanban = Violet Pill

visualize your actual work(flow)

backlog   to do   in progress   done  test  

B  

C  

D  

F  E  

A  

Page 37: Kanban = Violet Pill

limit WIP

backlog   to do   in progress   done  test  

D  G  

H  

J  I  

F  

B  

A  E  

C  

Page 38: Kanban = Violet Pill

limit WIP measure flow

backlog   to do   in progress   done  test  

D  G  

H  

J  I  

F  

B  

A  E  

C  

cycle time  

lead time  

Page 39: Kanban = Violet Pill

why should we limit WIP?

Little’s Law

cycle time =

WIP / throughput (throughput = average completion rate)

Page 40: Kanban = Violet Pill

Little’s Law

length of queue =

arrival rate * average wait time

why should we limit WIP?

Page 41: Kanban = Violet Pill

why should we limit WIP?

too much WIP increases cycle time

too much WIP leads to queues

queues lead to delays queues lead to multitasking

queues lead to … many additional dysfunctions (variability, lower quality, demotivation, higher risks, etc.)

Page 42: Kanban = Violet Pill

Cost of Delay

source David J Anderson

Page 43: Kanban = Violet Pill

causes of delay

Page 44: Kanban = Violet Pill

multitasking sucks

ABC  ABC  ABC  AAA  BBB  CCC  

Page 45: Kanban = Violet Pill

working  4me  context  switching  4me  0  

20  

40  

60  

80  

100  

1   2   3   4   5  

working  4me   context  switching  4me  

number  of  simultaneous  projects  

percen

t  

source Jerry Weinberg

multitasking sucks multitaskers optimize for capacity,

not for throughput

ABC  ABC  ABC  AAA  BBB  CCC  

Page 46: Kanban = Violet Pill

let work flow

backlog   to do   in progress   done  test  

D  G  

F  

B  

A  E  C  H  

J  I  

can’t push anything here  

Page 47: Kanban = Violet Pill

let work flow

backlog   to do   in progress   done  test  

D  G  

F  

B  

A  E  C  H  

J  I  

Page 48: Kanban = Violet Pill

let work flow

backlog   to do   in progress   done  test  

D  G  

F  

B  

A  E  

C  H  

J  I  

Page 49: Kanban = Violet Pill

let work flow

backlog   to do   in progress   done  test  

D  G  

F  

B  

A  E  

C  H  

J  I  

Page 50: Kanban = Violet Pill

who’s working on what?

backlog   to do   in progress   done  test  

D  G  

H  

J  I  

F  

B  

A  E  

C  

Page 51: Kanban = Violet Pill

total WIP

backlog   to do   in progress   done  test  

D  G  

H  

J  I  

F  

B  

A  E  

C  

total WIP = 4  

Page 52: Kanban = Violet Pill

buffers

backlog   to do   in progress   done  test  

D  

G  H  

J  I   F  

B  

A  

E  

C  

[

[

Page 53: Kanban = Violet Pill

buffers with no WIP limit

backlog   to do   in progress   done  test  

D  

I  

J  

L  K  

G  

B  

A  

E  

C  

F  

H  

Page 54: Kanban = Violet Pill

no WIP limits => queue

backlog   to do   in progress   done  test  

G  

L  

N  

P  

F  B  

A  

E  

C  D  

K  M  

O  

H  

J  I  

Q  

Page 55: Kanban = Violet Pill

no WIP limits => queue

backlog   to do   in progress   done  test  

L  

N  

P   B  

A  K  M  

O  

Q  

Page 56: Kanban = Violet Pill

flow = speed * density

Page 57: Kanban = Violet Pill

Km per hour

vehicles per hour

flow = speed x density

vehicles per Km

Km per hour

density flow

speed

Page 58: Kanban = Violet Pill

queues cumulative flow diagram

time

cumulative quantity

WIP

cycle time

Page 59: Kanban = Violet Pill

cumulative flow diagram large batches => long queues

time

cumulative quantity

Page 60: Kanban = Violet Pill

cumulative flow diagram small batches => short queues

time

cumulative quantity

Page 61: Kanban = Violet Pill

what to do next (help)

backlog   to do   in progress   done  test  

D  

F  A  

E  

C  

B  

G  

H  

J  I  

Page 62: Kanban = Violet Pill

what to do next (pull)

backlog   to do   in progress   done  test  

D  

F  A  

E  

C  

B  

G  

H  

J  I  

Page 63: Kanban = Violet Pill

stuck (cannot break WIP limit)

backlog   to do   in progress   done  test  

D  G  H  

J  I  

F  

B  

A  

E   C  

Page 64: Kanban = Violet Pill

stuck (nothing to pull)

backlog   to do   in progress   done  test  

D  E  G  

I  H  

F   B  

A  

C  

Page 65: Kanban = Violet Pill

slack (%)

absorb variations

% capacity utilization

queue size

queue size grows exponentially at high capacity 0  

5  

10  

15  

20  

25  

0   10   20   30   40   50   60   70   80   90   100  

Page 66: Kanban = Violet Pill

no testers

Page 67: Kanban = Violet Pill

non-instant availability

Page 68: Kanban = Violet Pill

non instant availability external parking

Page 69: Kanban = Violet Pill

what’s on a stickie?

this is just an example

ID 326

As a user I want to So that

due date 12 Nov 2011

blocked

Page 70: Kanban = Violet Pill

type of work

Page 71: Kanban = Violet Pill

types of work

standard due date

expedite bug

Page 72: Kanban = Violet Pill

classes of service and WIP

standard work = 60%

expedite = 10%

due date = 20%

bug = 10%

Page 73: Kanban = Violet Pill

classes of service, WIP, expedite lane

backlog   to do   in progress   done  test  

D  

H  

J  I  

F   B  

A  E  

C  

6  

M   L   K  

2  

1  

1  

O  

Q  

N  

P  

EXPEDITE LANE  

G  

Page 74: Kanban = Violet Pill

cost of delay & classes of service

cost    

6me  

cost    

6me  

cost    

6me  

Page 75: Kanban = Violet Pill

explicit policies

backlog   to do   in progress   done  test  

=>  Done:  -­‐  Acceptance  Tests  verified  on  test  server  -­‐  Signed  Off  by  Marke6ng  -­‐  Test  coverage  >  80%    

=>  In  Progress:  -­‐  Acceptance  Test  defined  

-­‐  standups  at  11.45  am  -­‐  2  hours  pairing  3  days/week  -­‐  retrospec6ve  every  Friday  at  2pm  

Page 76: Kanban = Violet Pill

multiple projects

project A

project B

project C

Page 77: Kanban = Violet Pill

multiple projects

backlog   to do   in progress   done  test  

J   F   B  

A  E  

C  

M   L   K  

O   H  

G  

D  

N  

Page 78: Kanban = Violet Pill

people working on

multiple parallel projects

Page 79: Kanban = Violet Pill

portfolio Kanban

ouch!

Page 80: Kanban = Violet Pill

portfolio Kanban one month later

Page 81: Kanban = Violet Pill

world is not linear…

backlog   to do   in progress   done  test  

Page 82: Kanban = Violet Pill

multiple routes

backlog   to do  

L  

M  N  

BACKLOG  

deploy   done  

B  

A  C  

DONE  

design   code  

D  

E  H  

DEVELOPERS  test  

script   test  

G  

F  I  

SUPPORT  

Page 83: Kanban = Violet Pill

networked Kanban

source Jurgen Appelo

Page 84: Kanban = Violet Pill

Kanban is not a process Kanban is something that is overlaid over an existing process Kanban is a catalyst for change

Page 85: Kanban = Violet Pill

a drug for all seasons

Agile Teams running out of steam

process maturity

chaotic

traditional

Page 86: Kanban = Violet Pill

gateway drug theory

softer drugs (Kanban) can lead to harder drugs (Scrum, XP, whatever…)

Michael Sahota

Page 87: Kanban = Violet Pill

a trojan horse?

Page 88: Kanban = Violet Pill

dogma? no, thanks

Page 89: Kanban = Violet Pill

don’t stop improving

Page 90: Kanban = Violet Pill

don’t stop improving

time

process

Z Z Z Z Z  

Page 91: Kanban = Violet Pill

overburden

task switching

command & control

Kan’t Ban?

Kan…but? YES BUT

Page 92: Kanban = Violet Pill

it’s a never ending journey

enjoy the ride

learn from the people plan with the people begin with what they have build on what they know

Lao-Tzu

Gaetano Mazzanti @mgaewsj Gama-Tech

Kanban

Page 93: Kanban = Violet Pill

it’s a never ending journey

enjoy the ride

Gaetano Mazzanti @mgaewsj Gama-Tech

Kanban