All 4,799 reports

NoCopilot · 3 Feb 2025

I had to explicitly ask it to generate idiomatic tests and even then it still didn't test all of the parameters that it should have

alexjplant on Hacker News

In the thread “Ask HN: What is interviewing like now with everyone using AI?”, replying to this comment

Got in the way: Obscure libraries and subtle logic errors in generated code.

Earlier this past week I asked Copilot to generate some Golang tests and it used some obscure assertion library that had a few hundred stars on GitHub. I had to explicitly ask it to generate idiomatic tests and even then it still didn't test all of the parameters that it should have. At a previous job I made the mistake of letting it write some repository methods that leveraged SQLAlchemy. …