โ Generative AI & Prompt Engineering learning pathGenerative AI & Prompt Engineering ยท Module 5 of 10
Prompting for coding
Use AI to write, explain and debug code.
๐ Key ideas
- Describe language, framework, inputs, outputs and constraints.
- Ask for explanations and tests along with code.
- Paste error messages and relevant code for debugging.
- Review, run and test all AI-generated code.
- Never paste secrets or private keys into prompts.
๐ก Real-life example: AI coding help is a pair programmer: great suggestions, but you own the final code.
Code generationAI writing code
Debugging promptSharing errors for help
Unit testsTests for small code pieces
Code reviewChecking code quality