▲ | scotty79 5 days ago | |||||||
> I have to do it manually every time. You can tell it to move it and they'll move it and use this shared code from now on. | ||||||||
▲ | codedokode 5 days ago | parent [-] | |||||||
Sometimes it seems like explaining what I want could take more time than actually editing the code. For example, imagine if you test a vector-like collection. In every test case dumb LLM creates vector manually and makes inserts/deletes. It could be replaced by adding a helper function that accepts a sequence of operations and returns the processed vector. Furthermore, once you have that function, you can merge multiple tests with parametrization, by having a test function accept a sequence of operation and expected result:
But it takes time to write this explanation, and dumb LLM might not merge all tests from the first time. | ||||||||
|