CSC-105

LibraryProduction and Prototyping

Production and Prototyping

Tuesday, October 27

๐Ÿ“† Today

X-Risk?

Build > Test > Build

Planning and Prototyping

  • Trying things is now "cheap"
  • Trying with real users is the only way to know if it works
  • The loop: Build > Test > Build Again

Docs + Prototype

  • Your docs are the "source of truth" and context for your agents and you.
  • Your app code lives along side of it so your agent gets automatic context

The loop

  1. Docs: what you are building, in docs/project.md
  2. Prototype: HTML, CSS, JS etc.
  3. Test: People who will use your app
  4. Learn: What did they do/say/not say?
  5. Update docs and prototype, and test again

Docs as source of truth

DocHolds
docs/project.mdWho it's for, their problem, the core features
docs/research.mdWhat people told you before you built
docs/tests.mdTest observations and notes
docs/decisions.mdWhat you changed, and why

A prototype you can test

Real enough to test

  • Looks legit: should look and feel like a real product.
  • Works on a phone, most users will be using phones
  • The core task "works" the user can complete a full task
  • Faking it: Use sample data instead of a database, no accounts/logins yet

Real front-end, fake back-end

Testing with real users

Run a test

  1. Find three people who have the problem (start with your research)
  2. Give them a task, not a tour: "Post a ride home for Thursday."
  3. Watch, don't help. Ask them to think out loud
  4. Afterward, ask two or three questions
  5. Write what they did in docs/tests.md, in their words

What to watch for

  • Where do they pause?
  • What do they try first?
  • What did they expect to happen?
  • What do they skip?

Then change it

  1. Pick the biggest problem you saw
  2. Decide the change and write it in your docs (decisions.md, and project.md if the product changed)
  3. Brief your agent from the doc
  4. Test again

The Studio

Your project, with an agent beside it

  • Agent: builds from your docs, one working step at a time
  • App: your prototype, running, at laptop or phone size
  • Docs: your docs folder, as pages
  • Code and History: every change is a commit you can undo
  • Put it online: a real link testers open on their own phones

Open the Studio

Brief from your docs

  • "Build a prototype of the core feature in docs/project.md, with sample data."
  • "Make the post button easier to find on a phone."
  • "Testers kept looking for a search box. I wrote it in docs/tests.md. Add one."

You stay in the driver's seat

  • Your agent asks about the look before it styles
  • It asks before adding a server, accounts or a dependency
  • It never writes your project doc, your research or your test notes
  • Read its plan before it builds, and try every change
  • Anything it commits, you can undo

This week

First slice: prototype and test

  • A prototype of your core features, built in the Studio from your docs
  • A test plan in docs/tests.md
  • Three people with the problem try it, and you write what happened
  • Your docs change from what you learned, then the prototype does

First slice ยท Testing with users

Thursday

Working with agents quiz: in class, open book, 20 minutes, in the Quiz Space.