Vibe Coding in the CS Classroom

Page 1 of 7

Before we dive into building apps together, you'll need to get familiar with Bool - the AI-powered IDE we'll be using.

Click anywhere outside this window to take a quick tutorial on how to use Bool! Don't worry - you'll be able to reopen this window at any time.

Jump Into Vibe Coding

Copy and paste the following snippet into bool:

Create an app to log movies I've watched, add star ratings, and show my top 5 favorites.

Test your prototype. If something doesn't work the way you expect, adjust your prompt and try again.

Micro-Check

In your first app, what worked well? What could be improved?

Page 2 of 7

Vibe Coding and Its Place in the Computer Science Classroom

What Is Vibe Coding?

Vibe coding is a new way to build software: describe what you want in plain language, and an AI coding assistant (like bool) writes the code for you. Instead of typing each line yourself, you guide the AI to generate, test, and refine.

Why It's Exciting for the CS Classroom

How You Might Use It

Micro-Check

In one or two sentences, describe how you might use vibe coding in a project or lesson.

Page 3 of 7

Quick Classroom Scenario

A 9th grade student describes:

Build a page that lets me pick a mood and changes the background color.

Copy this prompt into bool!

You can then ask the student to:

This shows students that AI can help build—but they need to read, debug, and understand what's happening.

Micro-Check

How can students meaningfully interact with AI-generated code?

Page 4 of 7

Prompting & Iteration (Make AI a Helpful Pair-Programmer)

The Loop (an iterative process)

  1. Describe the goal and constraints.
  2. Generate code with AI.
  3. Run & test what is created.
  4. Refine the prompt with specifics: features, style, errors to fix.
  5. Repeat with small, focused requests.

Try-This / Not-That

Prompt Add-Ons You Can Ask For

Micro-Check

Write one "vague" and one "improved" version of a prompt to add a reset button to your app.

Page 5 of 7

Hands-On: Build a Tiny Mood App

Goal

Create a one-page app where a user picks a mood and the page changes its "vibe."

Step 1: Describe

Create a prompt that describes the goal and constraints of what you want to build. You can use this prompt or create your own.

Write JavaScript that listens to the #mood dropdown change. For calm, set the background to a soft blue and show '😌 Calm vibes'. For excited, warm orange with '🎉 Excited vibes'. For focused, gentle purple with '🎯 Focused vibes'.

Step 2: Generate

Step 3: Run & Test

Step 4: Refine

Step 5: Repeat!

Micro-Check

What single refinement made the biggest improvement (and why)?

Page 6 of 7

Teaching With AI and Teaching Coding

Classroom Pattern: "AI-Then-Explain"

  1. Generate: Students vibe-code a tiny feature with AI.
  2. Explain: They write pseudocode or annotate the generated code.
  3. Test: Create two test cases (normal + edge case).
  4. Improve: Rename variables, add comments, or refactor duplication.
  5. Reflect: When would you trust this code? When not?

Prompts That Build Understanding

Guardrails You Can Set

Sample Mini-Lesson (40–60 min)

💡 Next: You've seen how AI can accelerate coding and how we can scaffold student understanding. Next, we'll zoom out and tackle the question many teachers face: "If AI can code, why should students still learn to code?"

Micro-Check

How might you adapt the "AI-Then-Explain" pattern for your classroom context?

Page 7 of 8

Why Coding Still Matters in an AI World

The Question Many Are Asking

With tools that can write working code in seconds, some wonder: "Do students still need to learn to code?"

What Experts & Educators Say

How to Frame This With Students

Reflection Prompt

How would you explain to students why they should learn to code even while using AI tools like vibe coding?

Page 8 of 8

🎉 Congratulations!

You've completed the Hour of AI!

You've learned how to use vibe coding to build apps with AI and discovered how it can transform the computer science classroom.

Ready to Go Beyond the Hour of AI?

Continue your journey with advanced tutorials, classroom resources, and more hands-on projects.

Go Beyond the Hour of AI →

What You've Accomplished:

Thank you for exploring the future of coding education with us!