๐ค 100% AI Code Generation: Why Engineering Practices Matter More Than Ever ๐ค
Originally published on LinkedIn
๐ค 100% AI Code Generation: Why Engineering Practices Matter More Than Ever ๐ค
Thereโs almost no reason for an engineer to manually code anymore. I say that as someone who now works entirely in an ๐๐-๐๐ข๐ซ๐ฌ๐ญ, ๐๐จ๐๐-๐ ๐๐ง๐๐ซ๐๐ญ๐๐ ๐ฐ๐๐ฒ. I generate more code than ever before, at a higher pace, and to higher standards. But the key isnโt the code itselfโitโs the ๐๐ง๐ ๐ข๐ง๐๐๐ซ๐ข๐ง๐ ๐๐ข๐ฌ๐๐ข๐ฉ๐ฅ๐ข๐ง๐ around it.
Iโve been practicing with AI since it could barely string together a complex function. The approach has evolved, but hereโs where I am today:
โก ๐๐ซ๐จ๐๐๐ฌ๐ฌ๐๐ฌ, ๐ฌ๐ญ๐ซ๐ฎ๐๐ญ๐ฎ๐ซ๐, ๐๐ง๐ ๐ฉ๐ซ๐๐๐ญ๐ข๐๐๐ฌ ๐๐ซ๐๐งโ๐ญ ๐จ๐ฉ๐ญ๐ข๐จ๐ง๐๐ฅโ๐ญ๐ก๐๐ฒโ๐ซ๐ ๐๐ฏ๐๐ซ๐ฒ๐ญ๐ก๐ข๐ง๐ . Agile and delivery pressure chipped away at documentation, guidelines, and structure over the years. In the new โsuper-agileโ AI era, these foundations are more important than ever. Why? Because if theyโre well-defined, AI knows where to put code, how to structure it, and what โgoodโ looks like.
๐ง ๐๐ญโ๐ฌ ๐๐ฅ๐ฅ ๐๐๐จ๐ฎ๐ญ ๐๐จ๐ง๐ญ๐๐ฑ๐ญ. ๐๐จ๐ง๐ญ๐๐ฑ๐ญ ๐ข๐ฌ ๐ค๐ข๐ง๐ . AI doesnโt โknowโ in the human sense. It relies on the context you provide. If your repo, guidelines, and practices give it the right signals, it will generate code that fits seamlessly. If not, it will make assumptions and thatโs where risk creeps in. Every artifact, every definition, every standard adds to the context AI uses.
๐งช ๐๐๐ ๐จ๐ง ๐ฌ๐ญ๐๐ซ๐จ๐ข๐๐ฌ. I donโt touch a codebase with AI until Iโve prompted it to generate the required testing base. In legacy systems, that means creating unit tests first, before anything. Donโt tell me itโs too hard or take too long, it isnโt anymore, with AI thereโs no excuse.
๐ ๐๐จ๐๐ข๐ง๐ ๐ฌ๐ญ๐๐ง๐๐๐ซ๐๐ฌ ๐๐ซ๐ ๐ง๐จ๐ง-๐ง๐๐ ๐จ๐ญ๐ข๐๐๐ฅ๐. Define them once, maintain them, and ensure theyโre applied on every prompt. Not just an onboarding doc that gathers dust, or for a PR debate. Make them part of the process AI follows.
๐๏ธ ๐๐ซ๐๐ก๐ข๐ญ๐๐๐ญ๐ฎ๐ซ๐๐ฅ ๐ฉ๐๐ญ๐ญ๐๐ซ๐ง๐ฌ ๐ฆ๐ฎ๐ฌ๐ญ ๐๐ ๐๐ฑ๐ฉ๐ฅ๐ข๐๐ข๐ญ. SOA, microservices, repository patterns, DI, whatever your team uses, define it. AI will apply it consistently, every time, if you give it the rules.
๐ ๐๐๐ช๐ฎ๐ข๐ซ๐๐ฆ๐๐ง๐ญ๐ฌ ๐๐ง๐ ๐๐จ๐๐ฎ๐ฆ๐๐ง๐ญ๐๐ญ๐ข๐จ๐ง ๐๐ฎ๐ข๐ฅ๐ญ ๐ข๐ง. Donโt leave feature documentation as an afterthought. Define how and where requirements, test cases, and documentation should live in the repo. When AI knows, it follows. When it doesnโt, chaos creeps in.
โ ๐๐ก๐ ๐ฅ๐๐ฌ๐ฌ๐จ๐ง: With AI generating all the code, the role of engineering shifts. Weโre no longer valued for typing lines, but for designing the processes, practices, and structures that make the code reliable, maintainable, and scalable. AI is fastโbut only as good as the rails we lay down for it. And all of that comes back to ๐๐จ๐ง๐ญ๐๐ฑ๐ญ.
โจ And yes, system and architecture documentation deserves its own post. As an architect, Iโll dive into that next.
#AIEngineering #AIWorkflow #WritingWithAI