Vibe coding for the classroom
Writing an idea with natural language can help to obtain a prototype code. The prototype needs tests before reaching the students.
From natural language to a prototype we can try
"Create a cost simulator: €5 fixed and €3 per piece. Explain how the total change."
- GeneraA small, understandable prototype.
- TestExtreme values, keyboard and results.
- CorrectsCheck before using it in the classroom.
In this course we use vibe coding to discuss the iterative creation of code with AI help: to describe, generate, test and correct. It is a working definition; it does not mean that the code is safe or correct without review.
Webs
A workshop guide, a reading itinerary or a resource portal with clear navigation.
Interactive activities
Questions with explanatory return, process sorting or cases with justified decisions.
Simulations
Explore a relationship between variables and contrast prediction with the calculated result.
Try a prototype: cost of a fictional workshop
Simplified teaching model: cost = 5 € fixed + 3 € per piece. They are not real economic data or a market estimate.
Before moving control: how much will the cost increase if you add two pieces? What would change if the €5 were per piece?
Minimum tests before publishing
| Test | Check |
|---|---|
| Content | Formulas, units, answers and limits with examples calculated by hand. |
| Accessibility | Keyboard, visible focus, labels, contrast and alternative text. |
| Data and security | No real names, secret keys, hidden tracking or charges to unforeseen services. |
| Operation | Mobile, small screen, input errors and limited connection. |
| Maintenance | Save the code, a version and the revision instructions. |
Template: generates an autonomous HTML activity
Educational proposal of iAducació · uses own or authorized materials and fictitious data.
Create an activity in an autonomous HTML on [concept]. It must include short instructions, tag controls, keyboard use and explanations of the answers. Do not use external services, analytics, accounts or personal data. Set editable content. It includes three test cases and the limitations of the model. All results must be reviewed by the teacher.
Extending tasks, preserving learning
The OIA-34 proposes websites and escape games as examples of more complex products that AI can help build. The conception, orientation and criterion remain of the students. [35 · p. 36]
It preserves technical and accessibility tests. It declares the help received and asks for an explanation of the operation. If AI executes autonomous actions on services, accounts or files, it is no longer just to generate code: the AI-10 discourages the adoption of agent AI in educational environments. [35 · p. 16] [35 · p. 33]