A language for people who are not programmers

Formo team · 15 September 2017

Hello,

This week we want to talk about a small language we have been building, called QuokkaScript. The name is silly, the goal is serious: write behaviour so plainly that you do not need to be a programmer to read it.


Why another language?

When you have a number that depends on other numbers, most languages make you do the bookkeeping yourself. "When A changes, recompute B, then tell C." Miss one step and the screen shows stale values.

In QuokkaScript the bookkeeping is the language's job. You declare a value and write the rule for it; the language keeps it up to date. A slider with a from and a to, and a label showing to - from, is two lines. Move the slider, the label follows.

It also lets you say what is allowed. A value can refuse a change that makes no sense: "if this goes outside the range, cancel and show a notice". The mistake never reaches the screen.

A few readable lines and the little app they make.


Scripts next to the shape

In the editor we are building, you write small scripts the same way: next to the shape, with colour highlighting, suggestions while you type, and live results. Values in your scripts use the same units you see in the panel — degrees for rotation, 0 to 1 for opacity — so what you read is what you set. Broken scripts do not crash the editor; they flag the shape with the error.

Tip: write a script for one shape, then copy the shape. The copy brings its script along.


There is a lot still missing: we want a friendlier way to build whole screens from pieces without writing any lines at all. That is the direction we want to go.

As always, let us know what you think on our Discord.

On this page

Formo

The browser studio where drawings become animations, toys, and games. Your files, nothing to install.