4.5.2Software Engineering

Agile — Scrum (sprints, roles, ceremonies), Kanban

2,548 words12 min readdifficulty · medium

WHY does Agile exist?

The 4 values of the Agile Manifesto (2001) — each is "prefer LEFT over RIGHT", not "ignore right":

  1. Individuals and interactions over processes and tools
  2. Working software over comprehensive documentation
  3. Customer collaboration over contract negotiation
  4. Responding to change over following a plan

Scrum — the framework

WHAT are the 3 Roles?

WHAT are the 3 Artifacts?

HOW does a sprint run? (the 5 ceremonies)

Figure — Agile — Scrum (sprints, roles, ceremonies), Kanban

Velocity & the Burndown — the only math in Scrum

Let pip_i = points completed in sprint ii. Over the last nn sprints:


Kanban — the flow alternative


Scrum vs Kanban — the 80/20 contrast

Scrum Kanban
Cadence Fixed sprints (time-boxed) Continuous flow
Limits work via Sprint backlog (per sprint) WIP limit (per column)
Roles PO, SM, Devs None prescribed
Change mid-cycle Avoided during sprint Anytime
Key metric Velocity Lead/cycle time (Little's Law)
Best when Work is plannable in batches Work arrives unpredictably (e.g. support)

Recall Feynman: explain to a 12-year-old

Imagine baking cookies for a party but you don't know exactly what flavor people like. Scrum way: every 2 weeks you bake one small batch, bring it to your friends, and ask "yummy?" Then you adjust next batch. The PO decides which flavor to try first, the Scrum Master makes sure the oven works and nobody distracts you, and you (the bakers) decide how to bake. Kanban way: you have a board — "to mix", "to bake", "to taste". A rule says you can only have 2 trays in the oven at once. So you never start 10 trays and leave them half-baked. Fewer trays going at once = each cookie reaches the plate faster. That last bit is Little's Law: if 5 cookies finish per minute and 15 are in the kitchen, each waits 3 minutes.


Flashcards

What problem does Agile fundamentally fight against?
Large batches of unverified work — the cost of being wrong grows the later you discover it.
List the 3 Scrum roles and what each owns.
Product Owner (the what/why, orders backlog); Scrum Master (the process, removes blockers); Developers (the how it's built, self-organize).
Difference between Sprint Review and Sprint Retrospective?
Review inspects the product (demo to stakeholders); Retrospective inspects the process (team-only reflection).
Name the 5 Scrum ceremonies in order.
Sprint Planning, Daily Scrum (standup), the Sprint, Sprint Review, Sprint Retrospective.
What are the 3 Scrum artifacts?
Product Backlog, Sprint Backlog, Increment (meeting the Definition of Done).
Define velocity and how to forecast with it.
Average story points completed per sprint, vˉ=1npi\bar v=\frac1n\sum p_i; sprints needed =B/vˉ=\lceil B/\bar v\rceil for backlog BB.
Why must velocity NOT be used as a performance target?
It's relative to a team's own scale; targeting it causes point inflation. It's a planning tool, not a KPI, and can't compare teams.
State Little's Law and its three variables.
L=λWL=\lambda W; LL=WIP (items in system), λ\lambda=throughput, WW=average lead/cycle time.
Why do WIP limits make delivery faster?
By Little's Law W=L/λW=L/\lambda: lowering WIP LL at constant throughput λ\lambda cuts lead time WW — fewer simultaneous items, less waiting.
Kanban vs Scrum cadence and key metric?
Scrum = fixed sprints, metric velocity. Kanban = continuous flow with WIP limits, metric lead/cycle time.
The ideal burndown remaining-work formula?
R(d)=W(1d/D)R(d)=W(1-d/D) — linear fall assuming constant rate W/DW/D per day.
What is the single strict rule of Kanban?
The WIP limit per column — without it Little's Law makes lead time grow unboundedly.

Connections

  • Software Development Life Cycle (SDLC) — Agile is one SDLC model vs Waterfall.
  • Waterfall Model — the big-batch approach Agile reacts against.
  • Little's Law — queueing theory result reused in Kanban.
  • Lean Manufacturing — Kanban's origin (Toyota production system).
  • Continuous Integration & Delivery (CI-CD) — the engineering practice that makes shippable increments real.
  • Project Estimation & Story Points — relative sizing behind velocity.

Concept Map

bets on

fights

implemented as

implemented as

fixed time-boxes

continuous flow

defines

owns what and why

owns how team works

owns how built

orders

slice pulled into

produces

must meet

removes blockers not

Agile Manifesto 2001

Feedback > Planning

Big Batches of Unverified Work

Scrum

Kanban

Sprint 1-4 weeks

WIP Limits

3 Roles

Product Owner

Scrum Master

Developers

Product Backlog

Sprint Backlog

Shippable Increment

Definition of Done

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, Agile ka basic idea simple hai: pehle saara software 2 saal plan karke ek baar deliver karna risky hai, kyunki tab tak customer ki requirement hi badal jaati hai. Iski jagah Agile bolta hai — chhote-chhote working pieces banao, customer ko dikhao, feedback lo, aur direction adjust karo. Jitni jaldi galti pakdoge, utna sasta. Yahi pura Agile ka asli "why" hai.

Scrum ek framework hai jahan kaam fixed-length sprints (1-4 hafte) mein hota hai. Teen roles yaad rakho: Product Owner decide karta hai kya banana hai aur priority kya hai; Scrum Master ek helper/coach hai jo blockers hatata hai (boss nahi hai, woh kaam assign nahi karta!); aur Developers khud decide karte hain kaise banana hai. Har sprint mein 5 ceremonies hoti hain — Planning, daily Standup, Sprint khud, Review (product stakeholders ko dikhana) aur Retrospective (team apne process pe sochti hai). Review aur Retro confuse mat karna: Review = product visible, Retro = team ka process.

Velocity matlab ek sprint mein team kitne story points complete karti hai (average). Isse forecast karte hain: backlog BB ko vˉ\bar v se divide karke ceiling lete hain. Important: velocity ko target mat banao, warna log point inflate karne lagenge — yeh planning tool hai, performance KPI nahi.

Kanban thoda alag hai — koi sprint nahi, koi roles nahi. Bas ek board hota hai (To Do → Doing → Done) aur har column pe WIP limit lagti hai, matlab ek time pe kitne kaam chalu rakh sakte ho. WHY limit? Kyunki agar 10 cheezein ek saath start kar do, sab "90% done" reh jaati hain aur kuch finish hi nahi hota. Little's Law (L=λWL = \lambda W) yeh prove karta hai: agar WIP (LL) kam karoge to lead time (WW) kam ho jayega — kaam jaldi deliver hoga. Scrum tab use karo jab kaam plannable ho, Kanban tab jab kaam randomly aata rahe (jaise support tickets).

Go deeper — visual, from zero

Test yourself — Software Engineering