โ† Generative AI & Prompt Engineering learning path
Generative AI & Prompt Engineering ยท Module 5 of 10

Prompting for coding

Use AI to write, explain and debug code.

๐Ÿ“– Key ideas

  1. Describe language, framework, inputs, outputs and constraints.
  2. Ask for explanations and tests along with code.
  3. Paste error messages and relevant code for debugging.
  4. Review, run and test all AI-generated code.
  5. 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