<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-let-ai-write-my-c-backend-big-mistake--y70dygquy" -->

---
title: I Let AI Write My C# Backend (Big Mistake) | daily.dev
description: AI can build a stunning Avalonia UI in seconds... but what does the code actually look like behind the scenes?   In this video, we're exposing the hidden...
canonical: https://daily.dev/posts/i-let-ai-write-my-c-backend-big-mistake--y70dygquy
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I Let AI Write My C# Backend (Big Mistake) | daily.dev
og:description: AI can build a stunning Avalonia UI in seconds... but what does the code actually look like behind the scenes?   In this video, we're exposing the hidden...
og:url: https://daily.dev/posts/i-let-ai-write-my-c-backend-big-mistake--y70dygquy
og:image: https://api.daily.dev/og/posts/y70dYgqUy.png
og:image:alt: I Let AI Write My C# Backend (Big Mistake)
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.

# I Let AI Write My C# Backend (Big Mistake)

**[AngelSix](https://daily.dev/sources/angelsix)** · 27 min read · 0 upvotes · 0 comments

## Summary

AI can build a stunning Avalonia UI in seconds... but what does the code actually look like behind the scenes? 

In this video, we're exposing the hidden dangers of AI-generated C# code. Sure, the Jobs Page looks great on the surface, but underneath, it’s a maintenance nightmare filled with hard-coded values, massive code duplication, and structural disasters. I'm breaking down exactly why trusting the "pretty" AI output is dangerous, and we begin the process of building an Avalonia Coder AI agent to clean up the mess.

👉 Get more free knowledge on C#, hardware design, and more: http://www.angelsix.com

⏱️ Chapters:
0:00 - The Danger of "Pretty" AI UIs
0:44 - Why AI Code is a Maintenance Nightmare
1:34 - Setting Up the Avalonia Coder AI Agent
2:41 - Fixing Hard-Coded Colors & Gradients
3:35 - Refactoring Duplicated Code
6:54 - Sorting Out Dropdowns & Layout Controls
10:12 - Fixing Grid Spacing & Row Definitions
14:44 - The Progress Bar Performance Disaster
19:37 - Resolving SVG Icon & Pixel Scaling Issues
22:12 - Structural Problems in the Table Header
23:52 - Fixing New Bugs Introduced During Refactoring
26:45 - How to Properly Oversee AI Code

#CSharp #AvaloniaUI #AICoding #SoftwareArchitecture #AngelSix

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=N_dghes-HUQ>

---

[View this post on daily.dev](https://daily.dev/posts/i-let-ai-write-my-c-backend-big-mistake--y70dygquy)

```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":"I Let AI Write My C# Backend (Big Mistake)","url":"https://daily.dev/posts/i-let-ai-write-my-c-backend-big-mistake--y70dygquy","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-let-ai-write-my-c-backend-big-mistake--y70dygquy"},"datePublished":"2026-10-04T13:04:31.450Z","dateModified":"2026-10-04T21:46:33.813Z","description":"AI can build a stunning Avalonia UI in seconds... but what does the code actually look like behind the scenes? \n\nIn this video, we're exposing the hidden...","image":"https://i.ytimg.com/vi/N_dghes-HUQ/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/N_dghes-HUQ/sddefault.jpg","isAccessibleForFree":true,"articleSection":"AngelSix","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":"AngelSix","logo":"https://media.daily.dev/image/upload/s--h1ikmN_u--/f_auto,q_auto/v1791119063/logos/angelsix?_a=BAMAMicg0","url":"https://daily.dev/sources/angelsix"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-let-ai-write-my-c-backend-big-mistake--y70dygquy","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"","timeRequired":"PT27M","video":{"@type":"VideoObject","name":"I Let AI Write My C# Backend (Big Mistake)","description":"AI can build a stunning Avalonia UI in seconds... but what does the code actually look like behind the scenes? \n\nIn this video, we're exposing the hidden...","thumbnailUrl":"https://i.ytimg.com/vi/N_dghes-HUQ/sddefault.jpg","uploadDate":"2026-10-04T13:04:31.450Z","duration":"PT27M","url":"https://api.daily.dev/r/y70dYgqUy","embedUrl":"https://www.youtube.com/embed/N_dghes-HUQ"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"AngelSix","item":"https://daily.dev/sources/angelsix"},{"@type":"ListItem","position":3,"name":"I Let AI Write My C# Backend (Big Mistake)"}]}
```

