Comment on AI Coding Is Massively Overhyped, Report Finds

<- View Parent
sugar_in_your_tea@sh.itjust.works ⁨1⁩ ⁨day⁩ ago

Ideally, the code developer is not the same person that develops the unit tests.

Why? The developer is exactly the person I want writing the tests.

There should also be integration tests written by a separate QA, but unit tests should 100% be the responsibility of the dev making the change.

Replacing the missing bits with AI is better than not having them at all.

I disagree. A bad test is worse than no test, because it gives you a false sense of security. I can identify missing tests with coverage reports, I can’t easily identify bad tests. If I’m working in a codebase with poor coverage, I’ll be extra careful to check for any downstream impacts of my change because I know the test suite won’t help me. If I’m working in a codebase with poor tests but high coverage, I may assume a test pass indicates that I didn’t break anything else.

If a company is going to rely heavily on AI for codegen, I’d expect tests to be manually written and have very high test coverage.

source
Sort:hotnewtop