<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ai-makes-code-cheap-to-create-not-cheap-to-own-v08wjhuwg" -->

---
title: AI makes code cheap to create, not cheap to own | daily.dev
description: AI coding agents have drastically lowered the cost of generating new code, but the cost of maintaining, testing, patching, and securing that code hasn't...
canonical: https://daily.dev/posts/ai-makes-code-cheap-to-create-not-cheap-to-own-v08wjhuwg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: AI makes code cheap to create, not cheap to own | daily.dev
og:description: AI coding agents have drastically lowered the cost of generating new code, but the cost of maintaining, testing, patching, and securing that code hasn't...
og:url: https://daily.dev/posts/ai-makes-code-cheap-to-create-not-cheap-to-own-v08wjhuwg
og:image: https://api.daily.dev/og/posts/V08wjhuWG.png
og:image:alt: AI makes code cheap to create, not cheap to own
og:image:width: 1200
og:image:height: 630
og:locale: 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.

# AI makes code cheap to create, not cheap to own

**[ITNEXT](https://daily.dev/sources/itnext)** · 3 min read · 67 upvotes · 22 comments

## Summary

AI coding agents have drastically lowered the cost of generating new code, but the cost of maintaining, testing, patching, and securing that code hasn't dropped at all. An example of six applications each getting a separately AI-generated email validation implementation illustrates how duplicated code leads to inconsistent bugs across a system. Shared libraries remain valuable because a fix applied once propagates everywhere, but the piece also warns against over-applying DRY principles to every trivial snippet. The core message: don't confuse cheap-to-generate code with cheap-to-own code.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://itnext.io/ai-makes-code-cheap-to-create-not-cheap-to-own-e9d510165f9f>

## Questions this post answers

### Why is code reuse still important when AI coding agents can generate new implementations instantly?

Reuse matters because AI has made creating code cheap but not maintaining it. When six applications each get their own AI-generated email validation instead of sharing one library, they can end up with six slightly different implementations, so a bug fix in one doesn't fix the others, causing inconsistent behavior like an email working on registration but failing on login.

_Anyone weighing AI-generated duplication against shared libraries can find more perspectives like this on daily.dev._

### What's a good rule of thumb for deciding whether to build a shared library versus letting an AI agent duplicate code in each app?

Build a shared library when logic is complex, nuanced, or needs to behave consistently across multiple applications; skip it when the logic is simple, situationally unique, and unlikely to change. Over-extracting every few lines into its own library creates its own overhead, so the goal is balance between reusable and duplicative code.

_Developers refining their own reuse-versus-duplication judgment calls can browse similar engineering discussions on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@elmarchavez** · 4 upvotes

> If any, engineers need to be more diligent in testing every code AI generates. The human review time is limited and most just simply not review it at all or even delegate it entirely to AI too. That's why good engineers are needed more than ever.

**@bits\_and\_bytes** · 3 upvotes

> **I won't blindly praise AI, but give agents clear rules and they'll easily beat traditional app development**

**@hardik15** · 2 upvotes

> This are great points to see in the future: maintaining, testing, patching, and securing
>
>
> We had little exerperience with this, how AI can manage this effectively. people have start creating code fare recently so this keys are yet to established for most of the project which has some reasonable scale

**@dev2021** · 2 upvotes

> i would say, AI is good for first intial thrust but maintainance and devops is still in a same situation.
>
>
> i ma hoping for devops side improvement

**@rizzdev** · 1 upvotes

> The shared package is one answer. A lint rule you can re-apply is another. The move is keeping implementations synchronized, not just reducing them

## Similar posts on daily.dev

- [Code Is Cheap Now. That's Why It Matters.](https://daily.dev/posts/code-is-cheap-now-that-s-why-it-matters--7ydgcuvn6) · RUBYLAND · 8 upvotes · 1 comments
- [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
- [Maintainability in the age of coding agents](https://daily.dev/posts/maintainability-in-the-age-of-coding-agents-kvlhmqy1e) · Ayende @ Rahien · 1 upvotes · 0 comments
- [The Cost of AI Slop in Lines of Code](https://daily.dev/posts/the-cost-of-ai-slop-in-lines-of-code-gvdbyaynu) · SD Times · 0 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#architecture](https://daily.dev/tags/architecture), [#technical-debt](https://daily.dev/tags/technical-debt)

[View this post on daily.dev](https://daily.dev/posts/ai-makes-code-cheap-to-create-not-cheap-to-own-v08wjhuwg)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"AI makes code cheap to create, not cheap to own","url":"https://daily.dev/posts/ai-makes-code-cheap-to-create-not-cheap-to-own-v08wjhuwg","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/ai-makes-code-cheap-to-create-not-cheap-to-own-v08wjhuwg"},"datePublished":"2026-08-29T08:39:13.015Z","dateModified":"2026-09-13T20:11:39.720Z","description":"AI coding agents have drastically lowered the cost of generating new code, but the cost of maintaining, testing, patching, and securing that code hasn't...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/96894efcb0363eaab742228eb6ffb60a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/96894efcb0363eaab742228eb6ffb60a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"ITNEXT","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ITNEXT","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/itnext2","url":"https://daily.dev/sources/itnext"},"commentCount":22,"discussionUrl":"https://daily.dev/posts/ai-makes-code-cheap-to-create-not-cheap-to-own-v08wjhuwg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":67},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":22}],"keywords":"ai-agents,architecture,technical-debt","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ITNEXT","item":"https://daily.dev/sources/itnext"},{"@type":"ListItem","position":3,"name":"AI makes code cheap to create, not cheap to own"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/ai-makes-code-cheap-to-create-not-cheap-to-own-v08wjhuwg","comment":[{"@type":"Comment","text":"If any, engineers need to be more diligent in testing every code AI generates. The human review time is limited and most just simply not review it at all or even delegate it entirely to AI too. That’s why good engineers are needed more than ever.","datePublished":"2026-08-30T12:24:48.194Z","url":"https://daily.dev/posts/V08wjhuWG#c-0Elsu0JCl","author":{"@type":"Person","name":"Elmar Chavez","url":"https://daily.dev/elmarchavez","image":"https://media.daily.dev/image/upload/s--7PjH979T--/f_auto/v1780994221/avatars/avatar_bK85rJb2OXXID2LX2wi5y?_a=BAMAMiWQ0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"I won’t blindly praise AI, but give agents clear rules and they’ll easily beat traditional app development","datePublished":"2026-08-30T05:07:14.909Z","url":"https://daily.dev/posts/V08wjhuWG#c-0ASbp2HUy","author":{"@type":"Person","name":"bits_007","url":"https://daily.dev/bits_and_bytes","image":"https://avatars.githubusercontent.com/u/182549945?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"This are great points to see in the future: maintaining, testing, patching, and securing\nWe had little exerperience with this, how AI can manage this effectively. people have start creating code fare recently so this keys are yet to established for most of the project which has some reasonable scale","datePublished":"2026-08-30T08:52:07.969Z","url":"https://daily.dev/posts/V08wjhuWG#c-bs0UXIipQ","author":{"@type":"Person","name":"Hardik","url":"https://daily.dev/hardik15","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"i would say, AI is good for first intial thrust but maintainance and devops is still in a same situation.\ni ma hoping for devops side improvement","datePublished":"2026-08-31T04:57:00.804Z","url":"https://daily.dev/posts/V08wjhuWG#c-XgFsJX97G","author":{"@type":"Person","name":"vivek gautam","url":"https://daily.dev/dev2021","image":"https://lh3.googleusercontent.com/a/AATXAJzlSJCTcrzX9xrG9P-Hx22SdUKJEPDtgy-nV1gcww=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"The shared package is one answer. A lint rule you can re-apply is another. The move is keeping implementations synchronized, not just reducing them","datePublished":"2026-08-29T23:20:01.317Z","url":"https://daily.dev/posts/V08wjhuWG#c-Yxh97Drut","author":{"@type":"Person","name":"Andrew","url":"https://daily.dev/rizzdev","image":"https://media.daily.dev/image/upload/s--35vRfXAA--/f_auto/v1785413727/avatars/avatar_fQ7ttCKtPuu6tDvcgQXv5?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/ai-makes-code-cheap-to-create-not-cheap-to-own-v08wjhuwg#faq","mainEntity":[{"@type":"Question","name":"Why is code reuse still important when AI coding agents can generate new implementations instantly?","acceptedAnswer":{"@type":"Answer","text":"Reuse matters because AI has made creating code cheap but not maintaining it. When six applications each get their own AI-generated email validation instead of sharing one library, they can end up with six slightly different implementations, so a bug fix in one doesn't fix the others, causing inconsistent behavior like an email working on registration but failing on login. Anyone weighing AI-generated duplication against shared libraries can find more perspectives like this on daily.dev."}},{"@type":"Question","name":"What's a good rule of thumb for deciding whether to build a shared library versus letting an AI agent duplicate code in each app?","acceptedAnswer":{"@type":"Answer","text":"Build a shared library when logic is complex, nuanced, or needs to behave consistently across multiple applications; skip it when the logic is simple, situationally unique, and unlikely to change. Over-extracting every few lines into its own library creates its own overhead, so the goal is balance between reusable and duplicative code. Developers refining their own reuse-versus-duplication judgment calls can browse similar engineering discussions on daily.dev."}}]}
```

