← Public packages
@kentcdodds/the-last-software-engineer
The Last Software Engineer: Kent C. Dodds's React Summit US 2026 talk deck. Judgment and product engineering in an AI era.
Files
<section id="sustainability" class="chat-slide" data-title="Think about sustainability" data-steps="4">
<style>
@scope {
.mrr { background: var(--accent); }
.cost { background: var(--danger); }
.workers { background: var(--apps); }
.reads { background: var(--packages); }
.rest { background: var(--muted); }
.stack { display: flex; height: 64px; border-radius: 16px; overflow: hidden; scale: 0 1; transform-origin: left; transition: scale 1400ms var(--ease-io); }
.chat .screen.is-shown .stack { scale: 1 1; transition-delay: 900ms; }
.stack div { height: 100%; }
.legend { display: flex; gap: 40px; margin-top: 16px; font: 700 40px var(--font-display); color: var(--ink); }
.legend i { display: inline-block; width: 30px; height: 30px; border-radius: 8px; margin-right: 12px; vertical-align: -3px; }
}
</style>
<h2 data-m="rise">Think about sustainability</h2>
<div class="chat" data-m="rise" data-d="200">
<div class="lights" aria-hidden="true"><i></i><i></i><i></i></div>
<div class="bar"><img class="avatar" src="c/img/avatar-kody.webp" alt=""><span class="name">Kody</span><span class="role">Chief of Staff</span></div>
<div class="screen" data-until="1">
<div class="msg me" style="--i:1">Our current MRR is around $160 but the Cloudflare bill is looking like it's trending toward over $500. ... Is this just growing pains ... or do we have a problem with our <mark>unit economics</mark>?</div>
<div class="msg them" style="--i:2">Here's a first pass at the unit economics, using Cloudflare's published pricing.</div>
</div>
<div class="screen" data-at="1" data-until="2">
<div class="msg me" style="--i:0">All right I'm actually not going to read your analysis until you can <mark>pull actual Cloudflare data</mark>.</div>
<div class="msg them" style="--i:1">Pulled the actual bill: about $502. Not long-term sustainable as structured today.</div>
<div class="card" style="--i:2">
<div class="bill-row"><span>MRR $160</span><div class="bill-bar mrr" style="width:32%"></div></div>
<div class="bill-row"><span>Bill $502</span><div class="bill-bar cost" style="width:100%"></div></div>
</div>
</div>
<div class="screen" data-at="2" data-until="3">
<div class="msg me" style="--i:0">Ok so the solution is to <mark>find ways to cut costs</mark>, not increase prices. Are the recommended fixes obvious?</div>
<div class="msg me" style="--i:1">Let's have Cole investigate and if we can't make data driven decisions then we need a way to <mark>instrument</mark> so we can make data driven decisions</div>
</div>
<div class="screen" data-at="3" data-until="4">
<div class="msg them" style="--i:0">Cole's findings: two line items are about <mark>92% of the bill</mark>.</div>
<div class="card" style="--i:1">
<div class="stack"><div class="workers" style="width:49.6%"></div><div class="reads" style="width:41.2%"></div><div class="rest" style="width:9.2%"></div></div>
<div class="legend"><span><i class="workers"></i>Dynamic Workers ~$249</span><span><i class="reads"></i>Row reads ~$207</span></div>
</div>
</div>
<div class="screen" data-at="4">
<div class="msg them" style="--i:0"><b>Dynamic Workers (~$249):</b> request params were baked into the Worker code, so every call created a new Worker. Passing params separately <mark>cut unique Workers per day by 60-70%</mark>.</div>
<div class="msg them" style="--i:1"><b>Database row reads (~$207):</b> every list ran a COUNT(*). <mark>Now the count is stored instead.</mark></div>
</div>
<div class="input" aria-hidden="true"><span class="circle"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg></span><span class="ph" data-chrome>Message Kody</span><span class="circle"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="3" width="6" height="11" rx="3"/><path d="M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21"/></svg></span><span class="circle send"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M12 19V5M5.5 11.5 12 5l6.5 6.5"/></svg></span></div>
</div>
<aside class="notes">
<p>Fourth habit: think about sustainability. In September my monthly revenue on Kody was around 160 dollars, and the Cloudflare bill was trending toward 500. Is that growing pains, or a unit economics problem?</p>
<p>[click] My chief of staff agent gave me an analysis based on published pricing. And I said: I'm not reading that until you pull the actual data. The real bill: about 502 dollars. Not sustainable as structured.</p>
<p>[click] And here's a product decision: the answer is cut costs, not raise prices. And if we can't make a data-driven decision, then step one is instrumenting so we can.</p>
<p>[click] Cole investigated. Two line items were about 92 percent of the bill.</p>
<p>[click] Both turned out to be implementation details nobody would notice in code review: params baked into Worker code, and a COUNT on every list. The fixes were small. Knowing to look, and insisting on real numbers, was the job.</p>
</aside>
</section>