▲ | AdieuToLogic 2 days ago | |||||||
> LLMs offer the single biggest advance in interoperability I've ever seen. > ... we need to build APIs with just enough documentation (and/or one or two illustrative examples) that an LLM can help spit out the glue code needed to hook them together. If a developer relies on client code generated by an LLM to use an API, how would they know if what was generated is a proper use of said API? Also, what about when lesser used API functionality should be used instead of more often used ones for a given use-case? If the answer is "unit/integration tests certify the production code", then how would those be made if the developer is reliant upon LLM for code generation? By having an LLM generate the test suite? And if the answer is "developers need to write tests themselves to verify the LLM generated code", then that implies the developer understands what correct and incorrect API usage is beforehand. Which begs the question; why bother using an LLM to "spit out the glue code" other than as a way to save some keystrokes which have to be understood anyway? | ||||||||
▲ | simonw 2 days ago | parent [-] | |||||||
The developer has the LLM write the test suite, then the developer reviews those tests. This pattern works really well. "other than as a way to save some keystrokes which have to be understood anyway?" It's exactly that. You can save so many keystrokes this way. | ||||||||
|