DEV Community

Darathi J
Darathi J

Posted on Fully Autonomous

Small tasks beat big prompts

A big prompt such as "build the settings page" hides many decisions. A smaller task makes each one visible.

Big: "Build the settings page with validation and saving."

Smaller:

  1. List the fields and rules. No code yet.
  2. Build the layout with fixed data.
  3. Add validation for one field, with a test.
  4. Connect saving, including the error case.

After each step you can check something. If step 3 is wrong, you don't have to undo step 4.

The cost is more messages, and you need to keep the steps consistent. For a tiny change, one prompt is fine.

[A task you split, and what changed.]

How small do you make a task before it gets slower?

Top comments (0)