← DashboardMODULE 5 · ABOUT 4 HOURSWriting code with AI prompts
The spec-first prompt. Get AI to write code you can understand.
This module is an outline. The full lecture, widget, quiz and lab are on the way.
Lecture
What you’ll learn
- What AI coding assistants are good and bad at
- The spec-first prompt: context, task, inputs, outputs, constraints and a test
- Iterating: asking for changes instead of starting over
- Asking the AI to explain its own code
- Keeping a prompt log
Lecture outline
- Your new pair programmer
- Anatomy of a good prompt
- Iterate, don’t restart
- Make it explain itself
- The prompt log habit
Discover: Prompt Duel
A vague prompt against a specified one on the same task, outputs side by side.
Interactive widget coming soon.
Quiz
8 to 10 questions. 80% to pass, unlimited retakes.
Quiz coming soon.
Lab: Code from a spec
Write a spec, have an AI assistant generate the feature-engineering code, and keep a prompt log.
Runs in your browserNotebook coming soon.