4 ms·
Do you try things like make a set of unit tests and then have the LLM create methods that the tests test? It seems that there needs to be tight coupling and ver
by dpflan 4y ago
Do you try things like make a set of unit tests and then have the LLM create methods that the tests test? It seems that there needs to be tight coupling and verification between what is generated and whether it actually accomplishes the task, and tests can guide this.
- cloudking 4y agoI haven't gone too much into testing code, but I'm sure it could look at your code and generate the entire unit test for you. I would just write it out as a comment again: // Write a unit test for method xyz
- dpflan 4y agoIm suggesting the unit tests come first, are made by the coder (maybe with assistance), and the LLM creates the feature code. And the unit tests prove the generated code works or not then you tweak. Like TDD meets LLM