Hacker News new | ask | show | jobs
by cmrdporcupine 1179 days ago
Where I have found GPT and/or tools like that somewhat useful when playing with them is in writing tests.

Boilerplate code is usually refactor-able away, yes.

But tests are kind of intrinsically boilerplate by definition. There are test and fuzzing and provability systems that definitely help automate. But on the whole, writing a test harness + unit tests is often like writing the whole system over again.

I feel like this might be the one long term useful thing I get out of these coding assistants for my own work: read this interface and implementation I've written. Now write a boatload of negative test cases to verify correctness.