logoalt Hacker News

AndrewKemendotoday at 5:17 PM1 replyview on HN

Code has become cheaper to produce than to perceive.

Which means fixes can go in faster than it would require to first grok it

What’s missing in literally every single one of these conversations is testing

Literally all you have to do is implement test driven development and you solve like 99.9% of these issues

Even if you don’t go fully TDD which I’m not a fan of necessarily having an extensive testing suite the covers edge cases is necessary no matter what you do but it’s a need to have in a case where your code velocity is high

This is true for a company full of juniors pumping out code like early days of Facebook let’s say which allowed for their mono repot to grow insanely but it took major factors every few years but it didn’t really matter because they had their resources to do it


Replies

barrkeltoday at 6:15 PM

There's another gap, actually. Imprecise specification.

When you need to implement something yourself, you have to make decisions when faced with the reality of turning ideas into code.

An AI agent sometimes surfaces these; and sometimes it just makes a choice.

The risk is tests just embed these decisions as policy in code, without there have been proper consideration.

Often there's a core ambiguity in a conception somewhere, and because of the limited context of an AI, it can implement things one way and then another for the next feature, without actually hitting the inconsistency.

show 1 reply