Excerpt from O'Reilly Radar piece
Third, train yourself to use AI effectively. O’Reilly author Andrew Stellman recommends several exercises for learning to use AI effectively.1 Here are two: Take a program you’ve written, paste it into your favorite AI chat, and ask the AI to generate comments. Then look at the comments: Are they correct? Where is the AI wrong? Where did it misconstrue the intent? Stellman’s point is that you wrote the code; you understand it. You’re not second-guessing the AI. You’re learning that it can make mistakes and seeing the kinds of mistakes that it can make. A good next step is asking an AI assistant to generate unit tests, either for existing code or some new code (which leads to test-driven development). Unit tests are a useful exercise because testing logic is usually simple; it’s easy to see if the generated code is incorrect. And describing the test—describing the function that you’re testing, its arguments, the return type, and the expected results—forces you to think carefully about what you’re designing.
Just got quoted in a great @oreilly.bsky.social Radar article about AI & learning. 🚀
It's weird and counterintuitive, but accepting that AI makes a ton of mistakes is the first step in using it effectively.