Course lesson
Produce Better Refactored Code with AI by Providing Mock Data as Input
When you ask an AI to refactor or write a function for you it will have limited knowledge of what data you are using.
- Duration
- 1 min
- Access
- Included
- Transcript
- Retained from source evidence
When you ask an AI to refactor or write a function for you it will have limited knowledge of what data you are using.
By providing it some expected input to a function you want it to write or refactor, it will do a much better job at writing code that gets the job done. Of course you will still want to verify that your code works as you expect.