Lesson 988 of 1455
Why Small AI Prompts Beat 'Build Me an App'
Asking Claude or ChatGPT for one function at a time gives way better code than asking for a whole app.
Builders · AI-Assisted Coding · ~4 min read
The big idea
Tell Claude 'build me a Twitter clone' and you get a confident-looking blob that crashes on second touch. Tell it 'write me a function that takes a username and returns true if it's valid' and you get something you can actually test, fix, and use. Small prompts win every single time.
Some examples
- 'Write the schema for a posts table' (good) vs 'build a blog' (bad).
- 'Write the regex that strips trailing slashes' (good) vs 'build my routing' (bad).
- 'Make this function return early when the array is empty' (good) vs 'optimize my code' (bad).
- 'Write a 5-line bash script that lists .ts files modified today' (good) vs 'build my CI/CD' (bad).
Try it!
Pick something you want to build. Write 5 tiny prompts that, together, would build it. Ask the AI for each one, one at a time.
Key terms in this lesson
End-of-lesson quiz
Check what stuck
8 questions · Score saves to your progress.
Lesson help
Questions are best handled with a grown-up here.
For this age range, Tendril keeps freeform AI chat paused until parent/guardian consent and child-safe moderation are fully verified. Use the quiz, notes, and related lessons below, or ask a parent, guardian, teacher, or librarian to work through the question with you.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Builders · 7 min
AI for CSS Animations: Make Your Site Move
Use AI to build slick CSS keyframe animations without memorizing every property.
Builders · 35 min
Tests as Prompts — an Unexpected Superpower
Writing a test first is not just good engineering. It is the clearest possible prompt for an AI. Let's use tests to make AI code reliable.
Builders · 30 min
Python File I/O
Reading and writing files is where real scripts start. Learn the with-statement, path handling, and JSON round-trips.
