Wakefield's Daily Tips

Use Auto → JS code components wherever possible

Even if you aren’t planning to run your experiment online, using an Auto code component will help you spot syntax errors in your Python code.

There are some cases where valid Python code comes up as a Syntax error on the JavaScript side but these are rare and, when you encounter then, you can switch to a Both code component and edit or delete the JavaScript side to highlight the fact that they contain code that won’t run online unedited.

Where possible I isolate the lines of code that won’t translate into a separate code component so that most of my code is still being automatically checked and translated.