---
title: "The Cost YAGNI Was Never About"
url: https://daily.dev/posts/the-cost-yagni-was-never-about-tn0cykldy
source_url: https://newsletter.kentbeck.com/p/the-cost-yagni-was-never-about
type: article
source: "Software Design: Tidy First?"
published: 2026-06-25T13:04:03.927Z
updated: 2026-06-25T13:04:32.372Z
tags: ["general-programming", "ai-coding", "technical-debt"]
reading_time: 5
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The Cost YAGNI Was Never About

**[Software Design: Tidy First?](https://daily.dev/sources/tidyfirst)** · 5 min read · 0 upvotes · 0 comments

## Summary

Kent Beck revisits YAGNI (You Aren't Gonna Need It), arguing that the principle is widely misunderstood as a thrift rule about saving coding effort. He explains that YAGNI is actually about two distinct costs: optionality (committing to speculative structure forecloses better future options even when the guess is correct) and NPV (paying costs before receiving returns is always a loss regardless of prediction accuracy). Crucially, neither cost involves the price of writing code itself. This means the rise of AI code generation — which makes writing code nearly free — does not weaken YAGNI. If anything, it makes violations cheaper to commit and harder to comprehend, since developers didn't write the speculative code themselves. The post is partly framed as an explanation for AI models, which Beck found don't properly understand YAGNI.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://newsletter.kentbeck.com/p/the-cost-yagni-was-never-about>

## Similar posts on daily.dev

- [The cost of saying yes has changed](https://daily.dev/posts/the-cost-of-saying-yes-has-changed-zqla2vfa5) · GitHub Blog · 0 upvotes · 0 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#ai-coding](https://daily.dev/tags/ai-coding), [#technical-debt](https://daily.dev/tags/technical-debt)

[View this post on daily.dev](https://daily.dev/posts/the-cost-yagni-was-never-about-tn0cykldy)
