Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or let us provide unit tests for generated code and automatically tell the AI to fix the code until the code passes the tests we provided.


Or tell the AI to write the unit tests itself, and let it run those to check its work. After all, that's how humans write code. We aren't so great at writing bug-free code on our first try without testing it either.


I had ChatGPT generate a table of 10 test cases for a Jewish calendar to Gregorian calendar conversion function. None of them were valid.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: