Page MenuHomePhabricator

Add support for a graphical language such as Scratch or Snap! to Wikifunctions
Open, Needs TriagePublic


It would be great to support a graphical programming language such as Scratch, Snap, or something homegrown based on Blockly within Wikifunctions.

This task is to explore this space and figure out how this could work. Feel free to add ideas below. There are many different options:

  • Composition could be done with a custom-made interface, eg based on Blockly
  • We might allow for Programming in Python or JavaScript using Blockly or Snap as a shim



Event Timeline

Is this better merged into T298633 as a general graphical-programming-language support task?

I'd like to be involved in this investigation.

See, for example:

Scratch and eToys are good models to use, FWIW, but I've got a personal lean toward things with 1:1 mappings w/ (a subset of) JavaScript (like the turtlescript example above). Note that I'd almost certainly use Blockly as the UX layer for turtlescript if I were building it in 2021, instead of hand-rolling my own UX.

(a perhaps non-obvious anecdote is that localization is/was a big issue w/ block-based representations. some languages have wildly varying string lengths to describe certain programming concepts, and some of these stretch the graphical layout of a 'block'. eToys and Scratch made it work, but the localization effort was more involved than "merely" translation.)