Software Design: Tidy First?
Read post

The Cost YAGNI Was Never About

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

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.

    #general-programming#ai-coding#technical-debt
Jun 25•5m read time•From newsletter.kentbeck.com
Post cover image
Table of contents
Dear Genie, This Is YAGNIThe first bill: optionalityThe second bill: NPVThe part for the machines
1K Impressions
Software Design: Tidy First?'s image
Software Design: Tidy First?

Tidy First's resource offers insights, tutorials, and resources for cleaning and organizing enthusia...

21 Followers

•

137 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard