โIf AI generates code that worksโฆ why do we care what that code looks like?
Originally published on LinkedIn
โ๐๐ณ ๐๐ ๐ด๐ฒ๐ป๐ฒ๐ฟ๐ฎ๐๐ฒ๐ ๐ฐ๐ผ๐ฑ๐ฒ ๐๐ต๐ฎ๐ ๐๐ผ๐ฟ๐ธ๐โฆ ๐๐ต๐ ๐ฑ๐ผ ๐๐ฒ ๐ฐ๐ฎ๐ฟ๐ฒ ๐๐ต๐ฎ๐ ๐๐ต๐ฎ๐ ๐ฐ๐ผ๐ฑ๐ฒ ๐น๐ผ๐ผ๐ธ๐ ๐น๐ถ๐ธ๐ฒ?
Letโs start with defining ๐ด๐ผ๐ผ๐ฑ ๐ฐ๐ผ๐ฑ๐ฒ, or really what we should aim for, "good enough" code.
โ Meets the functional requirements
โ Meets the non-functional requirements (scalability, security, performance, resilience)
โ Aligns to a coherent architecture
โ Is testable, and proven by tests
โ Is extensible so weโre not rewriting it in X months
These are your engineering goals and acceptance criteria, not code.
๐ ๐ก๐ผ๐ ๐๐ต๐ฒ ๐๐ป๐ฐ๐ผ๐บ๐ณ๐ผ๐ฟ๐๐ฎ๐ฏ๐น๐ฒ ๐พ๐๐ฒ๐๐๐ถ๐ผ๐ป: If AI produces code that satisfies all of thatโฆ why do you care what it looks like? Why do you even need to look at it?
Are these really objections to throw?
โ Itโs not how Iโd structure it.
โ I wouldnโt name it that.
โ It doesnโt use the pattern I prefer.
โ Itโs not elegant.
Those are stylistic objections. Stylistic is subjective.
If a system demonstrably:
โ Handles the load
โ Survives failure
โ Meets the security model
โ Evolves without collapse
โ Passes comprehensive tests
โฆwhat exactly is missing?
Because hereโs what I keep hearing:
โ ๏ธ โAI canโt really code.โ
โ ๏ธ โIt just produces boilerplate.โ
โ ๏ธ โI can write better code.โ
โ ๏ธ โI spend more time fixing AI code.โ
Maybe you can write nicer looking code. But thatโs not the goal.
If you can define how it could be improved why didn't you ask for the code from AI that way? That's a missed requirement not an AI implementation issue unless merely stylistic.
The goal is to produce the simplest solution, as quickly as possible, that satisfies the defined requirements.
Thatโs what engineers are paid for.
โ Not to showcase taste.
โ Not to demonstrate stylistic preference.
โ Not to optimise for elegance.
โ Not to rewrite code just to be how they like it.
Engineers are paid to deliver systems that work, securely, scalable, reliably, within constraints defined by the business they operate in.
Engineering skill isnโt becoming less important. Itโs moving upstream.
โน๏ธ Defining clear constraints โน๏ธ Designing robust architectures โน๏ธ Specifying non-functional requirements precisely โน๏ธ Designing verification strategies โน๏ธ Setting guardrails that enforce quality
AI can generate the implementation that satisfies those constraints if engineers can define them.
๐ง ๐ฆ๐ผ ๐ต๐ฒ๐ฟ๐ฒโ๐ ๐๐ต๐ฒ ๐ฟ๐ฒ๐ฎ๐น ๐พ๐๐ฒ๐๐๐ถ๐ผ๐ป: If it works, scales, is secure, and is provably correct..
Why does the aesthetics of the code matter? Why do you even need to look at it?
And if your answer is, โBecause I can write it betterโ
Better for the business? Or better for you? What makes your code better if it does the same thing?
#SoftwareEngineering #AI #Architecture #EngineeringLeadership #TechStrategy