Writing code
************

PsyNet users can often rely on coding agents to write their experiment
code for them. These pages are still useful for understanding the code
an agent has written, checking it, and changing it yourself.


Starting a project
^^^^^^^^^^^^^^^^^^

* Working with a coding agent

* Starting from a demo or an existing experiment

* Experiment directory

* Managing dependencies

* Running and debugging locally

* Using Git with an experiment

* Using a local copy of PsyNet or Dallinger


Timeline
^^^^^^^^

* Writing a timeline


Pages
^^^^^

* Writing pages

* Control gallery

* Recording video and audio, and handling uploads

* Event management

* Theming

* Graphics

* Custom front ends

* Exchanging data with the server

* Unity integration


Trials
^^^^^^

* Writing a static trial maker

* Writing a chain experiment

* Create and rate

* Handling failed participants and trials


Stimuli and media
^^^^^^^^^^^^^^^^^

* Using stimuli and media

* Hosting stimuli on S3

* Managing assets


Participants
^^^^^^^^^^^^

* Consent

* Pre-screening and questionnaires

* Creating pre-screening tasks

* Payment

* Internationalization


Groups
^^^^^^

* Writing a round-based experiment

* Chatrooms

* Pseudonyms

* Real-time interaction

* Groups and barriers in detail

* Late, slow and leaving players: case studies


Database
^^^^^^^^

* Querying and storing database objects


Exercises
^^^^^^^^^

* Timeline exercise

* Graphics exercise

* JSSynth exercises

* Donation game exercise
