This is it. Always be distrustful and challenge the LLM. That along with providing ample context and guiding it towards a solution you have in mind at a high level is the trick to make LLM assisted coding work really well.
And once you're in that groove, and have built the intuition on what works and what doesn't and where you should challenge or follow up, productivity really goes up quite a bit.
To quote Memento: "Don't believe his lies." (though thankfully, as the LLMs advance, this is becoming less of an issue. Claude 3.5 Sonnet V2 is already a huge step ahead compared to where it once was).
And once you're in that groove, and have built the intuition on what works and what doesn't and where you should challenge or follow up, productivity really goes up quite a bit.
To quote Memento: "Don't believe his lies." (though thankfully, as the LLMs advance, this is becoming less of an issue. Claude 3.5 Sonnet V2 is already a huge step ahead compared to where it once was).