Learn programming, one prompt at a time
PromptCookbook teaches programming with the help of AI assistants. Each lesson explains one concept in simple words, then gives you a prompt you can send to an AI, the code that solves the task and the output of that code. Every prompt opens in Claude or ChatGPT with one click.
This helps you learn two things at once: how a language works and how to ask an AI for exactly what you need. You can compare the AI's answer with the lesson's code, so you understand the result instead of just copying it.
HTML and CSS examples run right on the page. For Go, TypeScript, Python and PHP, the lesson shows the output; copy the code and run it on your computer to try it yourself. Courses start from the basics, and the programming courses go on to collections, Big O analysis, unit testing, SOLID principles, design patterns and REST APIs.