Show contents
Chapter 4 of 7 · 20 min
Track progress
By the end of this chapter, you'll be able to
- Organise work on a kanban board
- Explain and apply a work-in-progress limit
- Build and read a burndown chart
- Measure a task's cycle time
The kanban board
A kanban board shows each task on a card, in the column of its state: To do, In progress, In review, Done. At a glance, the whole team sees where the work stands, and above all where it piles up. A board can be a wall with sticky notes, or an online tool; the principle is the same.
board = {
"To do": ["Spreadsheet export", "Dark theme"],
"In progress": ["Mobile payment", "Dashboard", "Emails", "Form"],
"In review": ["Home page"],
"Done": ["Login", "Mock-ups"],
}
WIP_LIMIT = 3
for column, cards in board.items():
alert = " ⚠ limit exceeded" if column == "In progress" and len(cards) > WIP_LIMIT else ""
print(f"{column:<12} ({len(cards)}) {', '.join(cards)}{alert}")
To do (2) Spreadsheet export, Dark theme
In progress (4) Mobile payment, Dashboard, Emails, Form ⚠ limit exceeded
In review (1) Home page
Done (2) Login, Mock-ups
Limit work in progress
Kanban's central rule: a limit on the number of tasks in progress at the same time (WIP limit, for work in progress). When the column is full, nothing new is started: you first help finish. Counter-intuitive? Let's compare two ways of handling three 5-day tasks, with a single person:
def finishes_in_sequence(durations):
finishes, t = [], 0
for d in durations:
t += d
finishes.append(t)
return finishes
def finishes_interleaved(durations):
remaining, finishes, t = list(durations), [None] * len(durations), 0
while any(r > 0 for r in remaining):
for i, r in enumerate(remaining):
if r > 0:
t += 1
remaining[i] -= 1
if remaining[i] == 0:
finishes[i] = t
return finishes
durations = [5, 5, 5]
for name, finishes in (("one at a time", finishes_in_sequence(durations)), ("interleaved", finishes_interleaved(durations))):
print(f"{name:<14} finishes: {finishes} average lead time: {sum(finishes) / len(finishes):.1f} days")
one at a time finishes: [5, 10, 15] average lead time: 10.0 days
interleaved finishes: [13, 14, 15] average lead time: 14.0 days
The total work is the same (15 days), but when interleaving, no task is delivered before day 13, and the average lead time goes from 10 to 14 days. And this simulation is optimistic: in reality, each task switch also costs concentration time. Less work in progress means more work finished, sooner.
A card leaving frees a slot: the next one can enter In progress.
Text description of the animation
- The card waits at the top of the To do column, in priority order.
- The In progress column is already full: no new task is started.
- The team instead helps move along what is almost finished: the review.
- A card leaving frees a slot: the next one can enter In progress.
The burndown chart
The burndown chart plots, day after day, the remaining work. It is compared with the ideal line, which goes down steadily to zero at the planned date. A curve above the line signals a delay; a flat curve, a blocker.
total = 40
days = 10
done_per_day = [3, 5, 0, 0, 4, 6, 2, 5, 4, 3]
remaining = total
print(" day ideal real")
for day in range(days + 1):
ideal = total - total * day / days
if day > 0:
remaining -= done_per_day[day - 1]
bar = "█" * (remaining // 2)
print(f"{day:>4} {ideal:>5.0f} {remaining:>4} {bar}")
print("remaining at the end:", remaining, "points")
day ideal real
0 40 40 ████████████████████
1 36 37 ██████████████████
2 32 32 ████████████████
3 28 32 ████████████████
4 24 32 ████████████████
5 20 28 ██████████████
6 16 22 ███████████
7 12 20 ██████████
8 8 15 ███████
9 4 11 █████
10 0 8 ████
remaining at the end: 8 points
On days 3 and 4, nothing was finished: the curve is flat, the sign of a blocker (an awaited dependency, an unanswered question) that should have been handled at once. At the end of the iteration, 8 points remain: the team could see it coming from day 4, and could adjust the content with the product owner rather than discovering it on the last day.
Mini-lab: your burndown chartPython 3.13
Output
Click “Run”: Python will load in your browser (about 10 MB the first time).Your code runs in your browser, isolated from the page. · Ctrl/⌘ + Enter to run · Esc then Tab to leave the editor
Your turn
Worked exercise
Worked exercise: cycle time
A card's cycle time is the number of days between its entry into “In progress” and its arrival in “Done”. From the log below, compute the cycle time of each finished card, the average, and the slowest card.
log = [
("Login", "in_progress", 1), ("Mock-ups", "in_progress", 1), ("Login", "done", 4),
("Form", "in_progress", 3), ("Mock-ups", "done", 9), ("Form", "done", 6),
("Emails", "in_progress", 7),
]
Hint 1
Hint 2
max(durations, key=durations.get) gives the key with the largest value.Show the solution and common mistakes
log = [
("Login", "in_progress", 1), ("Mock-ups", "in_progress", 1), ("Login", "done", 4),
("Form", "in_progress", 3), ("Mock-ups", "done", 9), ("Form", "done", 6),
("Emails", "in_progress", 7),
]
start, durations = {}, {}
for card, state, day in log:
if state == "in_progress":
start[card] = day
elif state == "done":
durations[card] = day - start[card]
print(durations)
print(f"average: {sum(durations.values()) / len(durations):.1f} days")
print("slowest:", max(durations, key=durations.get))
{'Login': 3, 'Mock-ups': 8, 'Form': 3}
average: 4.7 days
slowest: Mock-ups
“Emails” does not appear: it is not finished, its cycle time cannot be measured yet. The Mock-ups took 8 days: in the retrospective, the team will ask why (an approval that came late? a task too big that should have been split?). A falling cycle time is one of the best signs of a healthy team.
Common mistakes:
- Counting from the card's creation instead of its entry into progress: you would measure the waiting time in the backlog, a different piece of information.
- Including unfinished cards with a provisional duration: the average would be skewed downwards.
Summary
- 1A kanban board makes work visible, column by column: to do, in progress, in review, done.
- 2Limiting work in progress makes tasks finish sooner: finish before you start.
- 3The burndown chart compares remaining work with the ideal line; a flat stretch signals a blocker.
- 4Only finished work is measured: “90% done” is worthless until it can be delivered.
- 5Cycle time measures the real duration between a task's start and finish.
Your progress is saved on this device. Create a free account to keep your progress on all your devices.