<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ai-generates-bloated-code-kisuzg1bh" -->

---
title: AI generates bloated code | daily.dev
description: Discussion about "AI generates bloated code" on daily.dev - join the developer community
canonical: https://daily.dev/posts/ai-generates-bloated-code-kisuzg1bh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: AI generates bloated code | daily.dev
og:description: Discussion about "AI generates bloated code" on daily.dev - join the developer community
og:url: https://daily.dev/posts/ai-generates-bloated-code-kisuzg1bh
og:image: https://api.daily.dev/og/posts/KiSuzG1bH.png
og:image:alt: AI generates bloated 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 generates bloated code

**[Lonely Programmer](https://daily.dev/sources/lonely_programmer)** · [@tkouleris](https://daily.dev/tkouleris) · 1 min read · 40 upvotes · 7 comments

## Content

![image.png](https://media.daily.dev/image/upload/s--TxffvK1o--/f_auto/v1788771714/ugc/content_657745d0-1d28-49a7-af9f-6dcb5c45cb8f?_a=BAMAMicg0)

## Community discussion

Top comments from developers on daily.dev.

**@musikk** · 4 upvotes

> I guess that's fair but I doubt it will age well. Also most people never dealt with performance critical code (in the video game or HFT sense) so AI is perfectly capable of being helpful. It's like saying I'm not affected by GUI website builders because I'm in the backend. That's fine until the whole application can be scaffolded.

**@ristotoldsep** · 2 upvotes

> AI writes code like it gets paid per token. Great assistant, terrible merge approver.

**@anonymous\_25** · 1 upvotes

> AI can write code fast. Knowing which code is actually worth shipping is still the hard part.

**@ahmetozel** · 1 upvotes

> The bloat that actually bites me isn't line count, it's defensive layers. A try/except around a call that already returns a typed error, then a retry wrapper on top of a client that already retries internally. On the serving side that turns one upstream timeout into three and your p99 doubles without anything looking wrong in review. I've started reviewing for what a diff removed rather than whether it works, which catches this much faster.

**@jamiefrew** · 0 upvotes

> I am working on a 100% AI-generated codebase, and bloat seems to be a serious issue. The code is growing exponentially, and tests that used to take 20 minutes are now taking up to 150 minutes. I am really struggling to get Claude to address this, and most of the fixes it suggests seem like band-aids. The full test suite runs nightly, and deleting duplicate tests seems to save 20s vs 150 mins of testing. I was merging 100 PRs a day at one point, but that is impossible to maintain as testing becomes the bottleneck. The project is growing at an extreme pace, but a lot is being added. It is a...

---

Tags: [#ai](https://daily.dev/tags/ai), [#tech-news](https://daily.dev/tags/tech-news), [#c](https://daily.dev/tags/c)

[View this post on daily.dev](https://daily.dev/posts/ai-generates-bloated-code-kisuzg1bh)

```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-generates-bloated-code-kisuzg1bh","headline":"AI generates bloated code","text":"Discussion about \"AI generates bloated code\" on daily.dev - join the developer community","url":"https://daily.dev/posts/ai-generates-bloated-code-kisuzg1bh","datePublished":"2026-09-07T09:02:22.175Z","dateModified":"2026-09-13T21:09:39.085Z","author":{"@type":"Person","name":"Thodoris Kouleris","url":"https://daily.dev/tkouleris","image":"https://media.daily.dev/image/upload/s--uIsOE4Yj--/f_auto/v1767330823/avatars/avatar_MCMbuJilInDUS9HqV2wPG?_a=BAMAK+ZW0","description":"The Lonely Programmer","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":12320}},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":40},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":7}],"comment":[{"@type":"Comment","text":"I guess that’s fair but I doubt it will age well. Also most people never dealt with performance critical code (in the video game or HFT sense) so AI is perfectly capable of being helpful. It’s like saying I’m not affected by GUI website builders because I’m in the backend. That’s fine until the whole application can be scaffolded.","datePublished":"2026-09-08T08:06:23.797Z","url":"https://daily.dev/posts/KiSuzG1bH#c-IQ3fqekYH","author":{"@type":"Person","name":"Werner Hahn","url":"https://daily.dev/musikk","image":"https://lh3.googleusercontent.com/a/ACg8ocJr9LIXrt1E5zAmLx3QtOkq4iGvcwdh-t__bh6z4dhVoZyOEgE=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"AI writes code like it gets paid per token. Great assistant, terrible merge approver.","datePublished":"2026-09-08T08:33:55.549Z","url":"https://daily.dev/posts/KiSuzG1bH#c-qkYCjLzMv","author":{"@type":"Person","name":"Risto Tõldsep","url":"https://daily.dev/ristotoldsep","image":"https://lh3.googleusercontent.com/a/ACg8ocLDWc6mZn0JwNmXXw6WY0L_HJ6pegzRttooC5VgtXESHSj3MNYx=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"AI can write code fast. Knowing which code is actually worth shipping is still the hard part.","datePublished":"2026-09-10T00:50:13.076Z","url":"https://daily.dev/posts/KiSuzG1bH#c-OFyBoxEqQ","author":{"@type":"Person","name":"anonymous","url":"https://daily.dev/anonymous_25","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"The bloat that actually bites me isn’t line count, it’s defensive layers. A try/except around a call that already returns a typed error, then a retry wrapper on top of a client that already retries internally. On the serving side that turns one upstream timeout into three and your p99 doubles without anything looking wrong in review. I’ve started reviewing for what a diff removed rather than whether it works, which catches this much faster.","datePublished":"2026-09-10T22:50:43.076Z","url":"https://daily.dev/posts/KiSuzG1bH#c-i3s5ZUUxl","author":{"@type":"Person","name":"Ahmet Özel","url":"https://daily.dev/ahmetozel","image":"https://avatars.githubusercontent.com/u/70992231?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"I am working on a 100% AI-generated codebase, and bloat seems to be a serious issue. The code is growing exponentially, and tests that used to take 20 minutes are now taking up to 150 minutes. I am really struggling to get Claude to address this, and most of the fixes it suggests seem like band-aids. The full test suite runs nightly, and deleting duplicate tests seems to save 20s vs 150 mins of testing. I was merging 100 PRs a day at one point, but that is impossible to maintain as testing becomes the bottleneck. The project is growing at an extreme pace, but a lot is being added. It is a feature-rich product. Just wondering how I can keep this efficient whilst working at this pace.","datePublished":"2026-10-11T14:39:05.067Z","url":"https://daily.dev/posts/KiSuzG1bH#c-gW2Xhfqo6","author":{"@type":"Person","name":"Jamie Frew","url":"https://daily.dev/jamiefrew","image":"https://lh3.googleusercontent.com/a/ACg8ocIPST_aKx4cpZVgauigUXcD6rObND42sHenwHTrH9MFCTZhs1GnfA=s96-c"}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/lonely_programmer","name":"Lonely Programmer"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lonely Programmer","item":"https://daily.dev/squads/lonely_programmer"},{"@type":"ListItem","position":3,"name":"AI generates bloated code"}]}
```

