Mini-lecture lessons
Read one idea closely, then test whether you can explain it without looking back. Use the example to connect the principle to a decision at work.
Lesson previews
A plausible diff is not the same thing as a verified fix. Why verification belongs in the workflow Codex can move from inspection to patching very quickly, which is useful until that speed hides an untested assumption. An agent may read the right file and still misunderstand the full behavior. It may patch the direct failure while missing a second call site, or satisfy the compiler without satisfying the user-visible scenario. That is why the workflow must end with proof. Verification ties the code change back to the original objective. If the task was "stabilize the flaky checkout spec," the…
5 minBig O Is a BudgetIf input grows, the cost shape matters more than the happy-path sample. Big-O is a vocabulary for growth. It strips away machine speed and constant overhead so you can compare structures: one pass, repeated search, nested comparison, indexed lookup. That abstraction is powerful because production data rarely matches local samples. Look for Repeated Search find inside map is a common signal. Each item in one list scans another list. That may be fine for 20 rows and painful for 20,000. Spend Work Once A lookup table, set, or map front-loads organization. You pay one pass to make future reads cheap.…
5 minDecompose Before You CodeThe first coding move is not typing. It is shrinking the problem. Computational thinking is useful at work because code is an unforgiving place to store confusion. When a task feels big, decomposition gives you a way to make progress without pretending you understand everything. Start with the visible outcome, then ask what has to happen immediately before it. Keep walking backward until you find small jobs with clear inputs and outputs. Separate Jobs Parsing turns bytes into records. Validation decides whether a record is acceptable. Transformation changes representation. Persistence changes durable state. Reporting tells the user what happened. These…
5 minName the Shape Before the StateA boolean is a claim that the world has only two meaningful states. Check that claim. Abstraction is the act of keeping the details that matter and leaving out the rest. In code, a data shape is an abstraction: it says what states the program recognizes. If the shape is too small, the missing states leak into conditionals, duplicated flags, and comments. State Beats Guesswork A named union, enum, or object schema tells future code what can happen. It also tells tests what cases must exist. Reasons Beat Mystery For user-facing logic, store the reason when the reason affects copy,…
5 minSmall Functions Need a PromiseA function is not a drawer for lines of code. It is a promise. Refactoring is behavior-preserving design work. When you extract a function, you are saying the extracted block has a stable purpose worth naming. The name should let a reader predict what the function does, what it returns, and what kind of change belongs inside it. One Reason to Change Validation changes when business rules change. Formatting changes when display standards change. Network calls change when integration contracts change. If all three live together, unrelated changes collide. Inputs and Outputs Should Be Boring A small function is easiest…
5 minBudget Cognitive Load Before You Add a ToolThe principle: every field, flag, and exception path consumes attention before it creates value. Hide accidental complexity If a product team should not need to know how certificates rotate, how namespaces are labeled, or how a scanner is wired, the platform should encode that decision. Hiding is appropriate when the choice is standard, low variance, and expensive to explain repeatedly. Expose service-owned choices Some choices belong with the service owner: availability target, data sensitivity, rollback tolerance, traffic profile, and dependency criticality. Expose these as product-language questions, not tool-language switches. Teach capability gaps deliberately When teams need to build lasting skill,…
5 minRead Retention as a CurveThe reframe: retention curve interpretation is a decision discipline, not a chart style. Start with the decision A cohort table answers a question about what happens after a shared starting condition. The useful version names the decision before the SQL: what will we keep, stop, change, investigate, or fund if the pattern is real? Protect the clock and denominator The row should represent a stable entry event such as signup, first purchase, first value, renewal window, or feature exposure. The columns should represent comparable cohort age. If the denominator changes without a label, the apparent trend may be a math…
5 minSeparate Behavior Cohorts from Attribute SegmentsThe reframe: segment versus cohort labeling is a decision discipline, not a chart style. Start with the decision A cohort table answers a question about what happens after a shared starting condition. The useful version names the decision before the SQL: what will we keep, stop, change, investigate, or fund if the pattern is real? Protect the clock and denominator The row should represent a stable entry event such as signup, first purchase, first value, renewal window, or feature exposure. The columns should represent comparable cohort age. If the denominator changes without a label, the apparent trend may be a…
5 minStop Averaging Away the LifecycleThe reframe: lifecycle retention is a decision discipline, not a chart style. Start with the decision A cohort table answers a question about what happens after a shared starting condition. The useful version names the decision before the SQL: what will we keep, stop, change, investigate, or fund if the pattern is real? Protect the clock and denominator The row should represent a stable entry event such as signup, first purchase, first value, renewal window, or feature exposure. The columns should represent comparable cohort age. If the denominator changes without a label, the apparent trend may be a math artifact.…
5 minTell Cause from Correlation CarefullyThe reframe: causal wording for cohorts is a decision discipline, not a chart style. Start with the decision A cohort table answers a question about what happens after a shared starting condition. The useful version names the decision before the SQL: what will we keep, stop, change, investigate, or fund if the pattern is real? Protect the clock and denominator The row should represent a stable entry event such as signup, first purchase, first value, renewal window, or feature exposure. The columns should represent comparable cohort age. If the denominator changes without a label, the apparent trend may be a…
5 minCombustible Storage: The Triangle You Can ControlNeat combustibles are still combustibles. The Teach The fire triangle is simple: heat, fuel, and oxygen. Workplaces cannot remove oxygen from normal occupied spaces, and heat sources may exist through equipment, electrical systems, cooking, or hot work. Fuel management is therefore one of the most practical everyday controls. Using the hierarchy of controls, the best move is to eliminate unnecessary fuel, substitute safer materials where feasible, engineer proper storage, and administratively limit quantities and locations. The mechanism is reducing fire growth potential and protecting egress. In Practice Hannah changed cardboard pickup from “when someone remembers” to a daily 4 p.m.…
5 minThe Shell Parses Before It RunsThe move: Read the command in shell order before you run it. A terminal command is not sent straight to the tool as raw text. The shell reads the line, breaks it into words and operators, applies quoting rules, parses simple or compound commands, performs expansions, prepares redirections, executes the program, and collects an exit status. That order explains why spaces, wildcards, variables, pipes, and redirection can change what actually happens. Most costly beginner mistakes are ordinary parse mistakes under pressure: an unquoted folder name, a glob that matches more files than expected, a redirect that truncates evidence, or a…
5 minPaths Are Context, Not DecorationThe move: Anchor your working directory before acting on files. Every command that names a file carries a location assumption. logs/app.log means something different in a project root, a deploy directory, and your home folder. /var/log/app.log means the same absolute location wherever you stand. ~/Downloads/report.pdf starts from your home directory. . and .. are compact, but they are also easy to misread under pressure. The Filesystem Hierarchy Standard gives Unix-like systems a shared vocabulary. It does not guarantee every machine is identical, but it tells you what directories are generally for: /etc for host configuration, /var for variable state, /tmp…
5 minQuote Variables Like They Might BiteThe move: Quote text that must survive shell expansion as one argument. Bash quoting exists because the shell performs transformations before your tool runs. It expands variables, splits unquoted results into words, expands filename patterns, removes quote characters, and only then executes the command. If a variable contains Client A, unquoted expansion can become Client and A. If it contains an asterisk, unquoted expansion can trigger filename expansion. The receiving program sees the result, not your intention. Double quotes are the everyday tool: "$file", "$dir", "$message". They preserve spaces and most literal characters while still allowing $file to expand. Single…
5 minExit Status Is the ContractThe move: Read success and failure through exit status. Every serious command-line workflow eventually depends on a tiny convention: status 0 means success; nonzero means the command did not complete its intended job. Bash exposes the previous command's status as $?, and shell operators use it directly. cmd1 && cmd2 runs the second command only if the first returns zero. cmd1 || cmd2 runs the second command only if the first returns nonzero. Exit status matters because terminal output is inconsistent across tools. Some successful commands print nothing. Some failed commands print a lot. Some commands, like grep, use nonzero…
5 minSeparate Conditions, Promises, and Cure RightsWhen a contract fails, the fight is often about what was due when. Promise A promise creates an obligation. If the party does not perform, the question becomes breach, damages, cure, and remedy. Condition A condition is a gate. If the event does not happen, a duty or right may not arise yet. Use clear words like 'conditioned on,' 'only after,' or 'provided that' when the business truly needs a gate. Cure right A cure right is a repair window. It does not erase the breach; it controls when termination or escalation becomes available. Redline cure periods around materiality, notice,…
5 minFind the Contract Spine Before You RedlineThe first review question is not 'Do I like this clause?' It is 'What bargain is this clause attached to?' Mutual assent Mutual assent is the visible agreement: who offered what, how it can be accepted, and whether the final document shows the same deal. In a redline, this means checking parties, signature blocks, effective date, and order of documents. Consideration Consideration is the exchange. Money for services is obvious; mutual confidentiality promises, licenses, support duties, and payment commitments can also be consideration. If one side promises nothing definite, the deal may be softer than the business thinks. Capacity and…
5 minTreat Defined Terms Like the Control PanelDefinitions look harmless because they sit at the front. They are often where the deal quietly expands. Scope terms Watch terms like Services, Deliverables, Customer Data, Authorized Users, Product, and Documentation. If they include future, related, affiliated, or derived items, obligations can outrun the priced work. Risk terms Watch Losses, Claims, Damages, Security Incident, and Confidential Information. These definitions decide what indemnity, limitation of liability, notice, and confidentiality clauses actually cover. Exclusion terms Defined exclusions matter as much as inclusions. Background Technology, Excluded Data, Public Information, and Third-Party Materials keep ownership, confidentiality, and warranty promises from swallowing things no one…
5 minDo Not Let Warranties Become Casual PromisesWarranty language gets dangerous when it sounds reassuring instead of measurable. Representation A representation states a fact. It answers: what is true now or at signing? Examples include authority, ownership, no conflict, and no pending claim. Warranty A warranty guarantees quality or performance. It answers: what level of product or service conformity is promised? Good warranty drafting states the standard, the time period, and the remedy. Covenant A covenant is an operating promise. It answers: what will a party keep doing or avoid doing? Security, compliance, subcontractor management, and cooperation often belong here rather than in broad absolute warranty language.
5 minCommit Messages Are Future Debugging NotesThe reframe: commit history is operational memory. A commit message is not just a label for a diff. It is the first clue someone sees when they are bisecting a regression, preparing release notes, or deciding whether a rollback is safe. Conventional Commits gives a simple structure for that clue: type, optional scope, description, body, and footer. Type tells the reader what kind of change this is fix, feat, docs, test, refactor, and similar types give the history a useful first filter. They also help automation build changelogs or version bumps when the repo uses that workflow. Scope narrows the…
5 minCommitment Is Not ConsensusA disagreement gets better when the reasoning becomes visible. Commitment is behavioral, not emotional. You may still believe another path was better. The commitment is that you will not sabotage, relitigate, or withhold effort after the decision right has operated. Step down the ladder Name the observable data first. Then name what you are making of it. When you label an inference as an inference, you invite correction without surrendering your judgment. Steelman the other side Before you rebut, state the concern the other side is protecting. The goal is not to sound nice; it is to make sure your…
5 minCommon-Size Turns Raw Statements Into StructureRaw dollars tell you size. Percentages tell you shape. Use a base that matches the question For an income statement, revenue is usually the base because you want to see how each cost consumes sales. For a balance sheet, total assets or total capitalization often becomes the base because you want to see how resources and funding are structured. Compare trend and peers Common-size analysis is powerful in two directions. Across time, it shows whether the same company is becoming more or less efficient. Across peers, it shows whether different-sized companies have similar cost structures, asset intensity, or financing choices.…
5 minMake Uncertainty Usefulbounded confidence in client messaging is a structure problem before it is a wording problem. Use the client question as the top of the pyramid. Name the answer, show the few reasons that prove it, and keep the evidence visible enough that a skeptical sponsor can audit your logic. A common consulting trap is to narrate the analysis sequence: interviews, spreadsheet, synthesis, recommendation. That order is comfortable for the consultant but expensive for the client. Put chronology in backup. Put decision logic in front. The practical test is simple: if the client had to leave after the first 60 seconds,…
5 minSeparate Facts From Interpretationfact-versus-inference labeling is a structure problem before it is a wording problem. Use the client question as the top of the pyramid. Name the answer, show the few reasons that prove it, and keep the evidence visible enough that a skeptical sponsor can audit your logic. A common consulting trap is to narrate the analysis sequence: interviews, spreadsheet, synthesis, recommendation. That order is comfortable for the consultant but expensive for the client. Put chronology in backup. Put decision logic in front. The practical test is simple: if the client had to leave after the first 60 seconds, would they know…
5 min