Prompting for Code: Specs, Tests and Reviews

AI Coding Assistants Intermediate 3 min read Published
In this lesson

“Write a function to validate phone numbers” gets you *a* function. “Write is_valid_mobile(s) for Indian mobile numbers; here are 5 examples it must pass” gets you the function you need. The secret of good AI coding is the same as good engineering: a clear spec, and tests that prove the code works.

🎬 The phone number bug

🔒 This is a premium lesson

It is part of the Gen AI Developer career track.

🎬 Live animations · 🧪 Tested code · 💼 Projects · 🎓 Certificate

See the track

Already a member? Sign in

Progress is saved in this browser. Create a free account to keep it on every device.