Specify
Turn a research task into explicit screens, events, trial rules, and saved fields.
Use an AI coding assistant to plan, build, debug, and deploy a complete browser-based task. This practice gives everyone the technical workflow needed for the final project; no prior coding experience is required.
The scientific task is intentionally simple so you can focus on the development cycle: specify behavior precisely, prompt the model, test what it produces, diagnose failures, protect participant data, and deploy a working site.
Turn a research task into explicit screens, events, trial rules, and saved fields.
Verify trial counts, timing, random placement, network behavior, and visualization.
Publish a live experiment and learn what changes when code leaves your own computer.
Build one index.html page with a welcome screen, ten reaction-time trials, a results screen, and a histogram that compares the current session with an anonymous aggregate.
Create a Google Sheet named RT_Experiment_Data with the headers Timestamp, Random_Participant_Code, Trial_Number, and Reaction_Time. Keep the sheet private and share its view-only link only through the course portal.
Ask the coding assistant for a validated doPost(e) that accepts only the random code, trial number, and reaction time, adds a server timestamp, and appends one row per trial. The public doGet(e) response should contain aggregate histogram bins and counts—not rows, identifiers, or raw trial records.
Generate a random session code automatically. Present a circle at a random valid screen location; record the click latency; hide it; wait about 500 ms; and repeat until exactly ten trials are complete. Submit the ten records only after successful completion.
Calculate the current user's average reaction time. Use Chart.js or an equivalent library to plot the aggregate histogram returned by the endpoint and add a clear marker for the current average.
Test blank and repeated starts, all ten trials, small screens, failed requests, and chart loading. Publish the task with GitHub Pages and retest the live URL before submitting it in Canvas.
Build one phase at a time. Paste error messages back exactly and ask for the smallest targeted correction.
A public GitHub Pages URL where the ten-trial task and histogram work.
The GitHub repository containing the frontend and documentation, without secrets or private data links.
A view-only Google Sheet link submitted privately in Canvas so the instructor can verify the ten trial rows.
At most two paragraphs describing the hardest instruction, a specific bug, and how your prompts changed during debugging.