← Dashboard
MODULE 5 · ABOUT 4 HOURS

Writing 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

  1. Your new pair programmer
  2. Anatomy of a good prompt
  3. Iterate, don’t restart
  4. Make it explain itself
  5. 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 browser

Notebook coming soon.