<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-2-keys-to-building-sustainable-software-with-ai-softwareengineering-ai-softwaredevelopment-m7ru4vhaa" -->

---
title: The 2 Keys to Building Sustainable Software with AI...
description: Building sustainable software with AI coding agents comes down to two habits: owning architectural trade-offs (denormalization, microservices vs. monolith,...
canonical: https://daily.dev/posts/the-2-keys-to-building-sustainable-software-with-ai-softwareengineering-ai-softwaredevelopment-m7ru4vhaa
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The 2 Keys to Building Sustainable Software with AI #softwareengineering #ai #softwaredevelopment | daily.dev
og:description: Building sustainable software with AI coding agents comes down to two habits: owning architectural trade-offs (denormalization, microservices vs. monolith,...
og:url: https://daily.dev/posts/the-2-keys-to-building-sustainable-software-with-ai-softwareengineering-ai-softwaredevelopment-m7ru4vhaa
og:image: https://api.daily.dev/og/posts/M7RU4Vhaa.png
og:image:alt: The 2 Keys to Building Sustainable Software with AI #softwareengineering #ai #softwaredevelopment
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.

# The 2 Keys to Building Sustainable Software with AI #softwareengineering #ai #softwaredevelopment

**[We Are .NET](https://daily.dev/sources/wearedotnet)** · 1 min read · 0 upvotes · 0 comments

## Summary

Building sustainable software with AI coding agents comes down to two habits: owning architectural trade-offs (denormalization, microservices vs. monolith, abstraction layers) before letting the agent write code, and validating outputs afterward. Validation should proceed from cheapest to most expensive: automated tests, package scanning for vulnerabilities, static analysis, AI-powered code review, and finally a manual read-through by the developer. Low-stakes work can skip some validation layers, but sustainable code requires both owning trade-offs and verifying outputs.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/shorts/iAZxGy-s9j4>

## Questions this post answers

### What steps should I take to validate code written by an AI coding agent?

Validate from cheapest to most expensive: start with automated tests to confirm the code does what it claims, then run package scanning to catch vulnerabilities the agent may have introduced, follow with static analysis to catch issues compilers miss, use AI-powered code review for inconsistencies, and finally glance over the files yourself to confirm you agree with what was written.

_daily.dev surfaces workflows like this for developers building validation habits around AI-generated code._

### Should I let an AI coding agent decide on architectural trade-offs like microservices versus a monolith?

No, architectural trade-offs such as denormalizing a table versus keeping a clean schema, splitting out a microservice versus staying in a monolith, or adding an abstraction layer should be decided by the developer, not the agent. These decisions have no universally correct answer and are difficult to reverse once an agent has made them by default.

_Engineers weighing monolith versus microservice calls with AI agents follow this kind of guidance on daily.dev._

## Similar posts on daily.dev

- [Using AI agents in long-lived software projects](https://daily.dev/posts/using-ai-agents-in-long-lived-software-projects-csq99vezx) · Ayende @ Rahien · 13 upvotes · 0 comments
- [Using AI Coding Agents Without Losing Control](https://daily.dev/posts/using-ai-coding-agents-without-losing-control-hvfewqwhw) · Softbinator · 0 upvotes · 0 comments
- [Five Ways To Use AI Coding Agents to Improve Your Software Architecture](https://daily.dev/posts/five-ways-to-use-ai-coding-agents-to-improve-your-software-architecture-1r7zawjlz) · InfoQ · 46 upvotes · 3 comments
- [Software Engineering Principles Help Get More out of AI](https://daily.dev/posts/software-engineering-principles-help-get-more-out-of-ai-g2d3tqsex) · Telerik · 0 upvotes · 0 comments
- [Managing the Hidden Overhead of AI Software Engineering](https://daily.dev/posts/managing-the-hidden-overhead-of-ai-software-engineering-odnh0uxvl) · DEV · 1 upvotes · 0 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#architecture](https://daily.dev/tags/architecture), [#ai-coding](https://daily.dev/tags/ai-coding), [#code-review](https://daily.dev/tags/code-review)

[View this post on daily.dev](https://daily.dev/posts/the-2-keys-to-building-sustainable-software-with-ai-softwareengineering-ai-softwaredevelopment-m7ru4vhaa)

```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":"The 2 Keys to Building Sustainable Software with AI #softwareengineering #ai #softwaredevelopment","url":"https://daily.dev/posts/the-2-keys-to-building-sustainable-software-with-ai-softwareengineering-ai-softwaredevelopment-m7ru4vhaa","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-2-keys-to-building-sustainable-software-with-ai-softwareengineering-ai-softwaredevelopment-m7ru4vhaa"},"datePublished":"2026-09-20T21:22:45.140Z","dateModified":"2026-09-20T21:23:03.241Z","description":"Building sustainable software with AI coding agents comes down to two habits: owning architectural trade-offs (denormalization, microservices vs. monolith,...","image":"https://i.ytimg.com/vi/iAZxGy-s9j4/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/iAZxGy-s9j4/sddefault.jpg","isAccessibleForFree":true,"articleSection":"We Are .NET","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":"We Are .NET","logo":"https://media.daily.dev/image/upload/s--BsnVOa3i--/f_auto/v1718347410/logos/wearedotnet","url":"https://daily.dev/sources/wearedotnet"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/the-2-keys-to-building-sustainable-software-with-ai-softwareengineering-ai-softwaredevelopment-m7ru4vhaa","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"testing,architecture,ai-coding,code-review","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"The 2 Keys to Building Sustainable Software with AI #softwareengineering #ai #softwaredevelopment","description":"Building sustainable software with AI coding agents comes down to two habits: owning architectural trade-offs (denormalization, microservices vs. monolith,...","thumbnailUrl":"https://i.ytimg.com/vi/iAZxGy-s9j4/sddefault.jpg","uploadDate":"2026-09-20T21:22:45.140Z","duration":"PT1M","url":"https://api.daily.dev/r/M7RU4Vhaa","embedUrl":"https://www.youtube.com/embed/iAZxGy-s9j4"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"We Are .NET","item":"https://daily.dev/sources/wearedotnet"},{"@type":"ListItem","position":3,"name":"The 2 Keys to Building Sustainable Software with AI #softwareengineering #ai #softwaredevelopment"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/the-2-keys-to-building-sustainable-software-with-ai-softwareengineering-ai-softwaredevelopment-m7ru4vhaa#faq","mainEntity":[{"@type":"Question","name":"What steps should I take to validate code written by an AI coding agent?","acceptedAnswer":{"@type":"Answer","text":"Validate from cheapest to most expensive: start with automated tests to confirm the code does what it claims, then run package scanning to catch vulnerabilities the agent may have introduced, follow with static analysis to catch issues compilers miss, use AI-powered code review for inconsistencies, and finally glance over the files yourself to confirm you agree with what was written. daily.dev surfaces workflows like this for developers building validation habits around AI-generated code."}},{"@type":"Question","name":"Should I let an AI coding agent decide on architectural trade-offs like microservices versus a monolith?","acceptedAnswer":{"@type":"Answer","text":"No, architectural trade-offs such as denormalizing a table versus keeping a clean schema, splitting out a microservice versus staying in a monolith, or adding an abstraction layer should be decided by the developer, not the agent. These decisions have no universally correct answer and are difficult to reverse once an agent has made them by default. Engineers weighing monolith versus microservice calls with AI agents follow this kind of guidance on daily.dev."}}]}
```

