Course material, available in Catalan, Spanish and English.

Teaching guide — Session 2

Diagnose, improve and check

Continue the S1 app. The minimum outcome is a diagnosed error, one tested improvement, a security review and a functionality and access test. The six improvements form a catalogue: learners do not need to do them all. Photos are an optional advanced challenge.

Format and starting point

Allow roughly 2.5 hours of self-paced work over one or several sittings. In a group, adapt the pace and keep presentations optional. Learners need a browser, an authorised account, their S1 app and access to its spreadsheet and project. Use fictional data; there is no need to switch to a personal account if the organisation provides an authorised environment.

Keep the restaurant analogy: dining room / frontend (Index.html), kitchen / backend (Codi.gs), pantry / database (Sheets) and, if needed, storeroom / storage (files).

Teacher preparation

Suggested path: 150 minutes

Block Minutes Observable result
Recover the project and make copies 15 Test spreadsheet and code identified
Reproduce a reversible error 25 Message and steps recorded
Interpret, fix and retest 20 The copy works again
Break 10
One small improvement 40 Reviewed plan, change and tests
Security and access 20 Settings and accounts checked
Deployment and results 20 Same /exec and repeated tests

Debugging exercise, step by step

  1. Open /dev on the copy and check it works before changing anything.
  2. If doGet() loads Index, rename only that HTML file to Inici, save and reload /dev. Do not delete a random line.
  3. Read the error and record what was expected, what happened and how to reproduce it. Give AI the error and current code, without private data.
  4. Ask for a likely cause and smallest fix. Restoring Index may be enough: do not require a rewrite.
  5. Save, retest /dev and check reading, a valid write and invalid input. The test must write to the copy.
  6. If recovery fails, restore the saved files. Reverting code does not recover deleted data.

Supporting the improvement

Deployment and completion

After tests pass on the copy, move only tested changes to the intended project and check its spreadsheet ID. Use Manage deployments → Edit → New version to preserve /exec. Repeat tests and check access. Sharing is optional; a private app is valid too.

The course menu counts four goals: diagnosis, at least one improvement, security and access. Previous catalogue progress is preserved. Switching projects restores each app’s state without reusing another app’s link.

When someone gets stuck

Symptom Useful check
The change is not visible /dev or /exec? Was the deployed version updated?
It writes to the original spreadsheet Check the copy’s ID before continuing
Header error Keep the exact order; review the migration plan
Search misses an old record It may be outside the loaded list
Another account cannot enter That may be correct for a private app
AI says “tested” Ask for environment, steps and observed result

Do not request credentials or personal data for support. Use the test worksheet to record evidence. If time is short, finish the loop and one improvement before attempting photos or migrations.

Technical sources

Content reviewed: 25 October 2026. Site checks and simulations do not replace testing each app in an authorised Google account.

Page generated automatically from recursos/s0-s6/en/guia-professor-sessio2.md · reviewed on 2026-10-26. Edit the .md, not this file.
Download material as Markdown (.md)