<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ai-makes-development-faster-but-it-can-also-create-more-dead-code-gluk25vni" -->

---
title: AI Makes Development Faster. But It Can Also Create More...
description: Discussion about "AI Makes Development Faster. But It Can Also Create More Dead Code" on daily.dev - join the developer community
canonical: https://daily.dev/posts/ai-makes-development-faster-but-it-can-also-create-more-dead-code-gluk25vni
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: AI Makes Development Faster. But It Can Also Create More Dead Code | daily.dev
og:description: Discussion about "AI Makes Development Faster. But It Can Also Create More Dead Code" on daily.dev - join the developer community
og:url: https://daily.dev/posts/ai-makes-development-faster-but-it-can-also-create-more-dead-code-gluk25vni
og:image: https://api.daily.dev/og/posts/GLuk25Vni.png
og:image:alt: AI Makes Development Faster. But It Can Also Create More Dead Code
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 Development Faster. But It Can Also Create More Dead Code

**[Raj Kumar](https://daily.dev/sources/vurmwmx5kchc7vocobisb)** · [@techieraj](https://daily.dev/techieraj) · 0 upvotes · 0 comments

## Content

One thing I've started noticing while developing with AI code assistants is that **faster development can sometimes hide a new problem — dead code.**

A requirement comes in.

I use an AI coding assistant, generate the implementation, test it, and move on.

Then the requirement changes.

Instead of completely revisiting the previous implementation, we often modify the existing code to fit the new requirement. And that's where things can get messy.

Old functions, conditions, components, variables, and logic may no longer be needed — but they quietly stay in the codebase.

The same thing can happen with **test cases**.

A requirement changes, but the old test cases remain. They may still pass, but they're no longer relevant to the current behaviour.

AI makes this easier to overlook because we can generate and modify code so quickly.

So I've started treating requirement changes differently:

**When a requirement changes, don't just ask AI to modify the existing code. Ask it to identify and remove everything that became obsolete.**

And when the requirement is updated:

- Review the existing implementation.

- Remove unused code.

- Review related test cases.

- Remove obsolete tests.

- Add tests for the new behaviour.

- Run the full relevant test suite.

AI can help us write code faster.

But **we still need to be responsible for what stays in the codebase.**

The goal shouldn't be to generate more code.

**The goal is to maintain only the code we actually need.**

### Tags

`#AICoding` `#CodeAssistant` `#SoftwareDevelopment` `#CleanCode` `#DeadCode` `#Testing` `#DeveloperExperience` `#AI` `#CodeQuality`

---

[View this post on daily.dev](https://daily.dev/posts/ai-makes-development-faster-but-it-can-also-create-more-dead-code-gluk25vni)

```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":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/ai-makes-development-faster-but-it-can-also-create-more-dead-code-gluk25vni","headline":"AI Makes Development Faster. But It Can Also Create More Dead Code","text":"Discussion about \"AI Makes Development Faster. But It Can Also Create More Dead Code\" on daily.dev - join the developer community","url":"https://daily.dev/posts/ai-makes-development-faster-but-it-can-also-create-more-dead-code-gluk25vni","datePublished":"2026-09-11T05:28:00.155Z","dateModified":"2026-09-11T05:28:01.238Z","author":{"@type":"Person","name":"Raj Kumar","url":"https://daily.dev/techieraj","image":"https://media.daily.dev/image/upload/s--NSQrqGJ7--/f_auto/v1779852922/avatars/avatar_vUrMwmx5KchC7VocoBISb?_a=BAMAMiWQ0","description":"I am a full stack developer who is passionate about web development and creating digital products.","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":210}},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/vurmwmx5kchc7vocobisb","name":"Raj Kumar"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Raj Kumar","item":"https://daily.dev/sources/vurmwmx5kchc7vocobisb"},{"@type":"ListItem","position":3,"name":"AI Makes Development Faster. But It Can Also Create More Dead Code"}]}
```

