Kayavak / Recaps / Product Engineering
Recaps · Volume 15
Product Engineering
The revision sheet of every chapter, on one page: the key ideas, the numbers worth knowing, the pitfalls and the words. Use it before an interview, after a chapter, or to find which chapter to reread. Each title opens its chapter; below each sheet are its exercises, companion and TiffinBox stage, and the misconceptions the companion corrects.
181
Key ideas
- Outcomes over outputs: measure success by changed behaviour, not features shipped.
- Problem statements: who, what, why it matters, evidence; no built-in solution.
- Jobs to be done: "When ⟨situation⟩, I want to ⟨motivation⟩, so I can ⟨outcome⟩."
- Personas from research; journeys with steps, emotions, pain points and moments of truth.
- Requirements and constraints: functional, quality, business, legal, technical.
- Acceptance criteria: concrete Given/When/Then examples, including edge cases.
- Goals and metrics: OKRs, a primary success metric, guardrails.
- Prioritisation: RICE, ICE, MoSCoW, Kano, cost of delay and WSJF; scores support judgement, they don't replace it.
- Story mapping and slicing: the backbone of user activities; thin vertical slices; a one-page brief.
Numbers to remember
- Lab: the top five ideas' RICE scores were within 10%; each had a 13–20% chance of ranking first under realistic uncertainty.
- Lab: WSJF ordering = optimal (1,056); quick-wins-first cost 19% more.
- WSJF = cost of delay ÷ duration.
Pitfalls
- Solution-first requests accepted without a problem.
- Personas invented in a meeting.
- Precise-looking scores built on guesses.
- Success metrics without guardrails.
- Horizontal slicing (all backend first) that delays any user value.
Glossary
- Outcome / output: behaviour change / delivered artefact.
- JTBD: jobs to be done.
- Kano model: basic, performance and delighter features.
- Cost of delay: value lost per unit of time a job isn't done.
- Story map: user activities across, release slices down.
182
Key ideas
- Discovery reduces four risks: value (do they want it), usability (can they use it), feasibility (can we build it), viability (does it work for the business).
- Start from assumptions and hypotheses; test the riskiest, cheapest first.
- Interviews: open questions about specific past behaviour; avoid leading and hypothetical questions; 5–15 per segment; synthesise with affinity mapping.
- Surveys: clear neutral questions, random sampling, response-rate and non-response checks, margins of error.
- Usability tests: realistic tasks, think-aloud, observe don't help; small iterative rounds.
- Prototypes: fidelity matched to the question (paper, clickable, Wizard of Oz, concierge, fake door).
- Experiments: randomisation, pre-registered primary metric and guardrails, power and sample size, no peeking with fixed-sample tests, run full weeks, watch for novelty effects and sample-ratio mismatch.
- Ethics: informed consent, privacy, no deception that harms, fair treatment of participants.
Numbers to remember
- Lab: 5 users found 70% of problems with realistic difficulty (85% only if all equal); 20 users 89%.
- ±1.96·√(p(1−p)/n): n = 400 → ±4.8 points.
- Lab: biased non-response → 79% vs true 60% at any sample size.
- Lab: 5% → 6% needs 7,663 per arm; daily peeking → 22% false positives.
Pitfalls
- "Would you use this?" questions.
- Treating survey size as a cure for bias.
- One large usability study instead of iterative rounds.
- Stopping A/B tests when they look good.
- Running underpowered experiments and trusting the inflated effect.
Glossary
- Hypothesis: a testable belief with a measurable expected outcome.
- Non-response bias: systematic difference between responders and non-responders.
- Statistical power: probability of detecting a real effect of a given size.
- Fake-door test: measuring interest via an entry point to a feature that doesn't exist yet.
- Sample ratio mismatch: unequal arm sizes that signal a broken experiment.
183
Key ideas
- Frameworks: AARRR (acquisition, activation, retention, referral, revenue), HEART (happiness, engagement, adoption, retention, task success), North Star metric with input metrics.
- Definitions (event, window, filters, denominator) are part of the metric; keep them in a catalogue with SQL.
- Tracking plan: named events, properties, owners, privacy classification, tests.
- Retention by cohort at equal age; survival thinking for lifetimes; beware right-censoring.
- Funnels with step definitions and time windows; segment by channel, platform, cohort.
- Revenue: MRR/ARR, ARPU, expansion and contraction; churn (logo vs revenue).
- Unit economics: LTV vs CAC, payback period, contribution margin, cost to serve (including infrastructure and AI inference cost per user).
- Engineering metrics: DORA (deployment frequency, lead time, change failure rate, time to restore), SLOs.
- Traps: vanity metrics, Goodhart's law, Simpson's paradox, mix shifts, survivorship, novelty effects.
Numbers to remember
- Lab: four "active" definitions ranged 523–1,201.
- Lab: week-4 retention 68.7% of activated vs 37.9% of sign-ups.
- Lab: average weeks fell 10.3 → 2.2 by cohort purely from censoring; week-4 retention flat at ~69%.
Pitfalls
- Undefined or drifting metric definitions.
- Comparing cohorts at different ages.
- Rates without denominators.
- Counting test accounts and bots.
- Optimising one metric with no guardrails.
Glossary
- Cohort: users grouped by start period.
- Right-censoring: outcomes not yet observable for recent units.
- LTV / CAC: lifetime value / customer acquisition cost.
- North Star metric: the single metric that best captures delivered value.
- Goodhart's law: a measure that becomes a target stops being a good measure.
184
Key ideas
- Mental models and Norman's principles: affordances, signifiers, mapping, feedback, constraints, conceptual models.
- Nielsen's heuristics: visibility of status, match with the real world, user control, consistency, error prevention, recognition over recall, flexibility, minimalist design, error recovery, help.
- Information architecture: organisation, labelling, navigation, search; card sorting and tree testing.
- Cognitive load: chunking, progressive disclosure, sensible defaults, fewer choices.
- Response times: 0.1 s feels instant, 1 s keeps flow, 10 s loses attention; show progress and allow cancel.
- Consistency through design systems and tokens.
- Accessibility (WCAG 2.2 AA): perceivable, operable, understandable, robust; semantic HTML first, ARIA only when needed; keyboard, focus, contrast, text alternatives, captions, reflow.
- Errors: prevent, then explain (what, why, fix), preserve input, allow undo.
- Ethics: avoid dark patterns; localisation (text expansion, RTL, formats); performance is UX.
Numbers to remember
- Contrast: 4.5:1 normal text, 3:1 large text and UI components.
- Response: 0.1 s / 1 s / 10 s.
- Targets: ≥ 24 × 24 CSS px (WCAG 2.2 minimum), ~44 px recommended.
- Lab: careless form 8 axe rules / 17 elements; keyboard couldn't submit; axe didn't flag it.
Pitfalls
- Divs and spans as buttons and links.
- Placeholder text instead of labels.
- Colour as the only signal.
- Silent actions with no feedback or loading state.
- Treating a clean automated audit as "accessible".
Glossary
- Affordance / signifier: what an object allows / the cue that shows it.
- WCAG: Web Content Accessibility Guidelines.
- ARIA live region: an element whose changes screen readers announce.
- Progressive disclosure: revealing complexity only when needed.
- Dark pattern: deceptive design against the user's interest.
185
Key ideas
- Requirements state what and how well, not how; they come from stakeholders (users, business, operations, legal, support) through interviews, observation, workshops and documents.
- Functional requirements: behaviours, rules, data; non-functional: performance, reliability, security, privacy, accessibility, usability, maintainability, cost, each with a measurable target.
- Record assumptions, constraints and dependencies explicitly.
- Edge cases: boundaries, empty/maximal values, time (cut-offs, time zones, month lengths, holidays), concurrency, failure and retries, permissions.
- Acceptance tests from examples (Given/When/Then); property-based tests for rules over many inputs.
- Smells: vague adjectives, "etc.", passive voice hiding the actor, untestable statements, solutions in disguise, conflicting rules.
- Traceability and change: link requirements to tests and code; review changes for impact.
- AI features: specify behaviour with eval sets, acceptable error rates, refusal behaviour, latency and cost budgets.
Numbers to remember
- Lab: four readings of one sentence agreed on 73.2% of requests.
- Lab: Hypothesis found a −₹120 bill and a 20-day February in ~8 s.
Pitfalls
- Accepting adjectives ("fast", "user-friendly", "up to the day before") without numbers or examples.
- Leaving business rules for engineers to guess.
- Testing only the examples you thought of.
- Treating requirements gaps as bugs to fix silently in code.
- No owner for non-functional requirements.
Glossary
- Functional / non-functional requirement: behaviour / quality attribute.
- Specification by example: requirements expressed as concrete examples.
- Gherkin: the Given/When/Then format.
- Property-based testing: checking invariants on generated inputs.
- Traceability matrix: links between requirements, design, code and tests.
186
Key ideas
- Name the qualities in tension, the context (scale, team, deadlines, risk, regulation) and the reversibility of the decision.
- Classic pairs: simple vs flexible; fast to build vs maintainable; strong consistency vs availability/latency; cost vs performance; build vs buy; monolith vs microservices; sync vs async; SQL vs NoSQL; self-hosted model vs API; local vs distributed state.
- Measure the decisive trade-off with a spike, benchmark or prototype when it's cheap to do so.
- ADRs: context, decision, consequences, status, alternatives; revisit triggers.
- Communicate trade-offs in business terms: cost, risk, time, user impact.
- Prefer reversible decisions and keep options open where uncertainty is high (YAGNI where it isn't).
Numbers to remember
- Lab: sync email p99 3,000 ms vs async 0.4 ms; one worker cleared 200 emails in 110 s.
- Lab:
synchronous_commit=off 3× faster commits; loss window ≈ 3 × wal_writer_delay.
- Lab: JSONB 1.75× faster single-document fetch, 3–5× slower cross-document queries and updates.
Pitfalls
- Deciding by fashion or familiarity instead of forces.
- Hiding costs ("async is free").
- Irreversible decisions made quickly; reversible ones made slowly.
- No record of why, so decisions are relitigated or never revisited.
- Benchmarks that don't match real access patterns.
Glossary
- ADR: architecture decision record.
- Transactional outbox: writing an event in the same transaction as the data change, published later.
- Group commit: flushing several transactions' WAL in one disk sync.
- Two-way door: a decision that's cheap to reverse.
- YAGNI: "you aren't gonna need it".
CS
Key ideas
- The chain: signal → framing → discovery → metrics plan → UX → requirements and tests → trade-offs and build → staged release → review; each step's artefact feeds the next.
- Segment before theorising; frame the problem without a solution; test the riskiest assumptions cheaply.
- Metrics plans name the primary outcome, leading indicators, guardrails and instrumentation, and are sized to detect the smallest worthwhile effect.
- Release in thin slices behind flags, with guardrails and a kill switch; review outcomes and decide what's next.
- Use the rubric to score framing, discovery, metrics, UX, requirements, trade-offs, delivery and learning.
Numbers to remember
- Lab: hybrid week-4 → week-12 retention 0.635 → 0.258; full-time 0.770 → 0.474.
- Lab: detecting +7.5 points from 38% needs ~663 users per arm; +12 points needs ~259.
Pitfalls
- Jumping from signal to solution.
- Guardrail-free success metrics.
- Experiments sized for the hoped-for effect.
- Declaring failure when a real but smaller effect was missed by an underpowered test.
- No post-launch review, so learning is lost.