Discussion about this post

User's avatar
Emerald Fleur's avatar

When I was playing around with AI code before I recently started learning CS, every time I asked for a new feature another (very subtle) regression would pop up when I ran or diffed the code. Maybe Microsoft’s copilot could bring clippy back to ask, “Are your tests still passing on your code?” 🤣

Of course any real project that uses AI code is going to catch this, the problem is a situation exactly like this when you need something in five minutes and you can’t justify putting aside the time to write tests for the (sometimes literal) joke of an application you’re making, especially when the aims of the project can change so much (and the tests would change so much) and the changes you want mostly lie in CSS / layout rather than semantics.

For little projects like this, (I’m sure this might exist) it’d be nice if there’d be a deep research counterpart that writes unit tests before you spin up your app, and then rejects any AI code that doesn’t pass the tests. But at that point…

Expand full comment
2 more comments...

No posts