Script include patterns: where your server logic actually belongs
The three shapes of a script include, a worked TaskUtils example, client-callable boundaries, scoped API design, and how to actually test the thing.
The three shapes of a script include, a worked TaskUtils example, client-callable boundaries, scoped API design, and how to actually test the thing.
Scheduled script executions for recurring work, the event queue for reacting to it, and the fire-the-event, do-the-work-elsewhere pattern that keeps both honest.
Before, after, async, or display. A decision-shaped recipe for the four business rule timings, the double-update bug, the async previous gotcha, and the discipline that keeps rules maintainable.