Skip to main content
Public lesson library

Lessons for engineering teams

Make technical work easier to explain, review and hand over. Use lessons on systems, problem-solving and collaboration to improve the next design discussion or written decision.

Lesson previews

Prune the Tree With Evidence

Do not let every branch survive out of politeness. Name the parent question The parent question is the container for the analysis. If it asks why a metric moved, the branches should be possible causes. If it asks what to do, the branches should be possible actions. Mixing those two questions creates overlap and solution jumping. Build MECE-enough branches MECE is a practical quality bar: no material overlap and no obvious missing branch for the decision at hand. You can use definitions, placement rules, or a different first split when examples fit multiple branches. Test a hypothesis A hypothesis is…

5 min
Push Back on a Confident AI Answer

Andre, a sales director who wants to use an AI-generated market claim in a same-day pitch A pitch deck for a US prospect goes out in 45 minutes. AI says the target market grew 38 percent in two years, but the output provides no source and the number would shape a $90,000 proposal. Andre The 38 percent number is perfect for the opening slide. It makes the problem feel urgent. You It may be useful, but I would not ship that number until we know where it came from, what market it describes, and whether the source is current. You…

5 min
Push Back on a Messy Exec Request

COO Dana D Chief Operating Officer A Acknowledge T Tree E Evidence The moment 20 sec Compressed executive request Dana says, "Find out why operations is underperforming," then pauses before another meeting. If you accept the ambiguity, the team can spend two days analyzing the wrong universe. 20 min access to clarify 5 lenses cost, speed, quality, capacity, customer impact

5 min
Push Back on the One Big Guide

callout Maya M Product manager 01 Surface the need 02 Translate the risk 03 Offer the structure The PM wants one “definitive guide” for a feature that already needs onboarding, setup, API facts, and policy background. 4 distinct user moments hidden inside one request Translate frameworks into reader outcomes Stakeholders usually accept structure when you show what confusion the structure removes. Name the user moment, then match the page type to it. Weak move Defend the framework as doctrine.

5 min
RCA Starts With the Problem Statement

The reframe: do not solve the mystery in the title. RCA works when the team investigates from facts. It fails when the problem statement is already a verdict. Name the nonconformance A nonconformance is the observable gap against a requirement. It should include the expected condition, the actual condition, the population affected, and the business or customer impact. This gives the team a stable object to study. Keep cause language out of the first sentence Words like because, due to, careless, vendor, training, and process breakdown often smuggle in a cause before evidence has been tested. If you need a…

5 min
RAPID and DACI Decision Rights Reference

What problem do RAPID and DACI solve? They clarify decision roles before the group confuses input, approval, execution, and awareness. Use them when decisions stall, reopen, or hide behind the word alignment. RAPID What does RAPID stand for? Decision roles, not a process sequence. RAPID or DACI: which fits? Both require one accountable final authority; neither is a vote. We need everyone to agree before we decide. A decision meeting is drifting into consensus theater. Your line We need the right input before the decision, not universal approval after it. Who is the Decider or Approver? Do not attack consensus…

5 min
Read the Room Before You Touch Anything

The room is tense. Three people want to change three things at once. The display is dark 11 minutes before the demo. What is the strongest first move? Test the same laptop on a known-working display before swapping other parts. Right. This creates a clean known-good versus known-bad split and preserves the current evidence. Replace the laptop, cable, adapter, and projector input all at once. Weaker. A bulk swap may get lucky, but it destroys the isolation path and leaves no clear cause. Restart the laptop because restarts fix many presentation problems. Plausible, but premature. A restart changes state before…

5 min
Rebuild a Decision from First Principles

First principles replace inherited answers with verified building blocks. What changes Most workplace decisions start from analogy: what a competitor did, what last year's plan used, or what a senior person remembers working. Analogy is fast, but it smuggles in assumptions. First-principles thinking slows down long enough to ask what must be true regardless of precedent. The payoff is option creation. Once you separate real constraints from inherited habits, new combinations become visible. You may still choose the old path, but now it is a decision rather than obedience to an unexplained rule. How to use it Ask: what are…

5 min
Recognizing Bias in Your Own Analysis

Every analyst brings perspectives, assumptions, and biases to their work. If you've worked in the company you're studying, you may unconsciously favor interpretations that align with your former team's view. If you've read articles criticizing the organization, you may unconsciously seek evidence confirming those criticisms. If certain team members have strong opinions, groupthink may push the analysis in a particular direction. Recognizing bias doesn't mean eliminating it (impossible) but managing it. Strategies include: (1) explicitly stating your assumptions upfront, (2) actively seeking disconfirming evidence—what would prove your interpretation wrong?, (3) presenting alternative explanations for findings, (4) inviting team members to…

13 min
Break a Hard Dependency at the Construction Point

The problem is hidden construction of an external service. The refactor should make the dependency explicit and keep production wiring separate.

5 min
Choose the First Cut in a Long Function

The tax bug sits inside a long function, but the refactor should create a clear home for the tax-related calculation before changing behavior.

5 min
Coach Red-Green-Refactor Without Skipping Green

Ben BN Pairing partner R Red G Green R2 Refactor Pairing moment 20 sec Still red The failing discount-rounding test is open, and Ben wants to redesign before making it pass. The risk is mixing missing behavior with structural change. 1 red test 2 callers duplicate rounding

5 min
Commit to Characterize Before Changing Legacy Code

Write one characterization check before changing a risky legacy routine. A parser, formatter, scheduler, billing rule, or integration wrapper where current behavior is relied on but poorly specified. Before I change [legacy routine], I will capture [realistic input] and assert [current output/side effect]. This protects [behavior lock]. Only after that passes will I refactor [small structural move]. In 3 days, check whether the characterization exists, whether it failed during refactoring, and what behavior it protected. A legacy parser where production examples exist but formal requirements are incomplete. A date or money formatter that has regional edge cases nobody wants to…

5 min
Commit to One Opportunistic Refactor

Make one bounded opportunistic refactor in code you are already changing. A bug fix, small feature, or review comment where one local structure move would reduce current change risk. In my next PR touching [module/function], I will make exactly one behavior-preserving refactor: [rename/extract/delete/move]. It supports the change because [current cost]. I will verify it with [test/check] before changing behavior. In 2 days, check whether the refactor happened, whether it stayed bounded, and which test proved behavior stayed unchanged. A bug fix in a long function where extracting one calculation would make the fix reviewable. A PR that repeats the same…

5 min
Defend a Small Refactor in Code Review

Owen OW Senior reviewer 1 Scope 2 Evidence 3 Boundary Review moment 20 sec Hotfix PR A bug fix includes a small extraction. The reviewer is worried about scope creep during a hotfix. The goal is to make the refactor legible as risk reduction, not personal taste. 12 extracted lines hotfix bug 5m

5 min
Extract a Pricing Rule Without Moving the Bug

Fix the premium-plan discount rule hidden inside a long invoice builder without making the bug fix harder to review. Extract Function: name the policy, preserve behavior, then change the policy. Changing the discount conditional in place mixes policy change with navigation through logging, formatting, and subtotal code. If the test fails, nobody knows whether the extraction or the rule caused it. Find the coherent idea Select only the lines that decide the premium discount rate. The slice has one job and a name the caller can read. Extract without editing logic Move those lines to premiumDiscountRate(customer, invoice) and pass the…

5 min
Flatten the Conditional Before You Invent a Pattern

The refund code has eligibility gates, not separate families of behavior. The first refactor should reveal the main path.

5 min
Legacy Rescue Pocket Cards

No tests There are no tests, so we cannot refactor this. Use when the change is necessary but behavior is unknown. Your response We can start with one characterization fixture from real input and expected current output. That gives the first refactor a tripwire. Do not promise full coverage. Promise one useful observation point. It lowers risk enough to make the first small move. Characterization What does a characterization test protect? The behavior the system currently has, even before the team fully understands whether it is ideal. It is a safety net for refactoring, not a claim that current behavior…

5 min
Let Simple Design Set the Refactoring Order

The priority stack The rules are most useful in order. Passing tests outranks a prettier shape. Revealing intention outranks clever compactness. Removing duplication matters when the repeated idea is truly the same. Fewest elements means no extra moving parts after the higher rules are satisfied. Why it works The stack keeps refactoring from becoming abstraction theater. Each move must earn its place by lowering a current cost: uncertainty, confusion, repeated change, or unnecessary structure. How to use it When two refactors compete, ask which rule is currently failing. A missing test is a feedback problem. A vague name is an…

5 min
Make Technical Debt Concrete Before You Pay It

The bill Debt language needs accounting. Principal is the cleanup still owed. Interest is the extra work or risk the team keeps paying. Without that separation, "technical debt" becomes a vague appeal to care more about quality. The decision Refactor debt when the interest is real and the repayment slice is sized. Some debt is tolerable because the code is stable. Some debt is urgent because every new feature pays the tax. The right refactor is the one that reduces an active tax without creating a larger migration risk. The trigger A useful debt note names when to act: before…

5 min
Naming and Intention Pocket Cards

Rename test What should a renamed variable reveal? The role the value plays in the current decision. elapsedTrialDays beats days when the decision is about trial extension. Name quality Mechanic name or intention name? Prefer names that help the next change, not names that merely describe syntax. Bikeshed guard Can we stop debating names and ship? Use when naming discussion is drifting. Your response Agreed. Let us choose the name that best supports the next known change: distinguishing trial days from billing days. Do not argue for your favorite word. Anchor naming to the change it clarifies. It turns a…

5 min
Push Back on a God Class Without Over-Splitting

Mei ME Tech lead 1 Reason 2 Slice 3 Stop Design debate 20 sec Large class AccountManager has billing, activation, email, and audit logic. Enterprise billing is the next change. The team needs a split that serves the next change without creating class confetti. 1,240 lines in class change axes enterprise feature

5 min
Refactor Without Changing the Story

The boundary Refactoring is structure work under a behavior lock. You can rename, extract, move, inline, or split code, but the user-visible behavior must remain the same after each step. This is what makes refactoring teachable: it is not a mood, it is a constraint. The loop A safe loop is: pick one structural move, make it small enough to review, run the quickest meaningful check, and commit or continue. The test does not need to be huge. It needs to protect the behavior touched by the move. The trap Beginners often combine refactoring with feature work because both happen…

5 min
Replace a Type Switch Only When Variants Own Behavior

Move subscription pricing branches out of a central type switch without changing existing prices. Replace Conditional with Polymorphism: stable variants own their behavior behind a common protocol. Turning every conditional into classes creates ceremony. The pattern earns its keep only when branches represent real variants with different behavior and future change pressure. Characterize branch behavior Add tests for trial, nonprofit, enterprise, education, and legacy prices. Before moving branches, pin current outcomes for each variant. Create the shared protocol Define PlanPricing.priceFor(account) and keep the current switch as the selector. The interface names the behavior callers need, not every plan field. Move…

5 min

Skill catalogue | Browse the library

Put it into practice

Choose your next learning habit.

Contact us