3 ms·
Sure, if you blindly accept code just because the LLM has executed it (and maybe written tests for it too) without actually understanding what it does you'll ru
by simonw 3y ago
Sure, if you blindly accept code just because the LLM has executed it (and maybe written tests for it too) without actually understanding what it does you'll run into trouble.
But if you use it responsibly, LLMs can help you get to that accurate mental model. Code explanation is on of the things that they are really good at.
My personal rule is that I won't commit code generated by an LLM unless I'm confident I can explain how that code works to someone else.
- skepticATX 3y agoI agree. And this is why I wish that the narrative wasn't "LLMs will make you faster", and instead was "LLMs will improve the quality of your work". There are certainly times when you just need to pump out code that happens to be very easy to validate, and then you can actually achieve the 10x throughput improvement that so many like to claim. But generally, reviewing code is going to be at least as hard, if not harder, than writing the code. If we view coding assistants as a pair programmer, the collaboration has a throughput overhead, but two programmers should produce higher quality work than one isolated programmer.