Zum Inhalt springen
#0766
Exec

The Friday quiz's ops layer is four comment lines

The online course's Friday quiz is one exec script, and its entire operational configuration sits above the first line of code. // @schedule 0 9 * * 5 regenerates the question set each week. // @token gates submissions. // @cors https://course.example locks the embed to the course site, and // @concurrent 50 absorbs the 9:05 rush when three hundred students submit at once.

No YAML, no dashboard, no deploy step. Magic comments parse at load time: edit one, save, and the behavior changes. A validation endpoint checks them without ever running the script.

The teaching assistant who maintains this has never opened a cloud console. The quiz's scheduler, auth, and rate cap fit in four comments.

The quiz's scheduler, auth, and rate cap fit in four comments.