programming-idioms
programming-idioms copied to clipboard
Build a linkable Smalltalk playground
An external website to be used in "Demo" links of Smalltalk implementations.
The probable design consists of:
- a client-based playground (implemented in JS or WASM) capability, running arbitrary code in a sandbox inside the web browser
- a database of snippets having a unique, stable ID
A lightweight alternative to (2) is to accept only Gist IDs in the URL, and dynamically fetch the code from Github, as does https://dartpad.dev/ . This is less convenient for the contributor than a simple "save" button, though.