Skip to content

IntermediateLesson 2 of 59 min read

Small steps, and test every time

A course from the Academy: Coding with AI, even if you're not a developer

Go to the quiz ↓

The most common mistake: asking for the whole project in one go. The AI then hands back hundreds of lines, something doesn't work, and neither you nor it knows where to look. The method that works is the opposite: one small step, one test, then the next.

Start with the minimal version

First ask for the simplest version that works. For the flatmates' tool: "A page where I enter two expenses and the total appears. Nothing else for now." Once that works, add one feature: the names, then the who-owes-what calculation, then the phone layout.

Test after every change

  • Really try it: click every button, enter normal values, then odd ones (zero, a negative number, an empty field).
  • Check with a case whose answer you know: if Léa paid 30 euros and Tom 10, each should have paid 20, so Tom owes Léa 10 euros. If the tool says otherwise, it's wrong, however nice it looks.
  • One change at a time: if you change three things and it breaks, you won't know which one did it.

Keep versions

Before each new step, keep a copy of the version that works: a "v1", "v2"… folder, or a version-tracking tool like Git, which the AI can teach you to use. If the next step goes wrong, you go back in ten seconds instead of fixing everything.

Understand the basics

After each step, ask: "Explain in three sentences what you changed, and why." You don't need to understand everything, but you should know which part does what.

Analogy. Assembling flat-pack furniture. You don't screw all the pieces together before looking at the instructions: you build the frame, check it's straight, then add the drawers. A mistake caught at step two takes a minute to fix; at step twelve, you have to take it all apart.

Key takeaways

  • First the minimal version that works, then one feature at a time.
  • Test after every change, with a case whose answer you know.
  • Keep a copy of every working version.
  • Ask the AI to explain what it changed.

Complete the lesson

A 4-question quiz: 3 correct answers are enough, plus an exercise to practise. It opens in the Academy, on this same lesson.

Take the quiz and complete the lesson Free. With an account, your progress is saved and leads to the course certificate.

The course: Coding with AI, even if you're not a developer

  1. What you can build, and how to describe it9 min
  2. Small steps, and test every time9 min
  3. Reading an error and getting it fixed9 min
  4. What you should never do9 min
  5. Your first project, from A to Z10 min

The whole Academy →The AI glossary