AI in education / Teaching practice
WEBS, ACTIVITATS I SIMULACIONS07

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

LA PETITION

"Create a cost simulator: €5 fixed and €3 per piece. Explain how the total change."

Cost of a productionPieces →5 pieces → 20 €
  1. GeneraA small, understandable prototype.
  2. TestExtreme values, keyboard and results.
  3. CorrectsCheck before using it in the classroom.
A fictional example of iAducació. The relation is cost = 5 + 3 × pieces; they are not data from a company.

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.

5 pieces · 20 €

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

TestCheck
ContentFormulas, units, answers and limits with examples calculated by hand.
AccessibilityKeyboard, visible focus, labels, contrast and alternative text.
Data and securityNo real names, secret keys, hidden tracking or charges to unforeseen services.
OperationMobile, small screen, input errors and limited connection.
MaintenanceSave 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]

Sources of this subpage
  1. [35] Department of Education and Vocational Education and Training · Orientations for the use of artificial intelligence in educational centers (1st edition, September 2026; 70 pages). CC BY 4.0.
  2. [8] UNESCO · Guidance for generative AI in education and research (2023)
iAducació · AI and Education · Version 1.6 · 19/10/2026
Illustrations and original activities of iAducació. Data and definitions: indicated sources.

Documentary update: 19/10/2026 · Department orientations, September 2026 edition. The dates of consultation of the other sources are preserved.