Notes

3 min read

From a description to a running app

The first app was written again in Burret's own language, and ran on the Android emulator, keeping its data across a restart.

Everything you design in Burret is kept as a short, readable description of your app. On 20 November the first app, a small task list, was written in that description for the first time, instead of in a temporary format.

Burret checked it, wrote the Android project, and we ran it on the emulator. We typed a task and added it; the counter followed. Then we closed the app and opened it again: the task was still there.

Small, but complete: a description you can read, a real Android app from it, and data that stays.

What the description is

Under the canvas, your app is a set of plain text files. They list the screens, the data the app keeps, and the steps that run when someone taps a button, written close to plain sentences. Burret’s own language is easy to read first, and it is built so that nothing is out of reach: what Kotlin can say, it can say. The files end in .bur, and they are the source of the app. Everything else, the Android project and later the iPhone project, is written from them.

Until this day the task list existed in a temporary format that stood in for the real language while the language was still being settled. That format worked for the first proof, but it was not the thing we are building. Writing the same app in the real description was the test of whether the language could carry a whole app, not just a few lines.

The steps, in order

  • Write. The task list, with its text field, Add button, filters and counter, was written as text.
  • Check. Burret read the text and checked it. It reported three warnings and no errors. A warning is something worth a look that does not stop the build.
  • Write the project. Burret wrote the Android project from the description: 63 files, in the standard shape that the usual Android tools open.
  • Build and install. We built it with the usual Android tools and installed it on the emulator, with the app’s data cleared first, so that nothing was left over from an earlier run.
  • Use it. The app opened on “Nothing to do”. We typed “Buy milk” and tapped Add. The row appeared, and so did “1 task left”.
  • Stop and start. We force-stopped the app and started it again. The row “Buy milk” and “1 task left” were still there.

Why the last step matters

It is easy to make an app that looks right for as long as it stays open. Real apps are closed, stopped by the phone to free memory, and opened again days later, and people expect their things to be where they left them. Keeping data across a restart is one of the first things a real app has to do. It is a small thing to test, and it is the kind of thing that, if it is wrong, makes an app feel broken.

We checked it by reading what was on the screen after the restart, and by taking a screenshot. That is the standard we hold ourselves to: nothing counts until it has run, and the evidence is the run.

What this does not show

This was one small app, on one emulator, on Android. It does not show that every kind of app works, and we do not claim it does. The iPhone side is separate work, in its own stage, and has not been run on a Mac yet. The Studio, where you would design this app visually, is not built yet. What the day shows is the chain: a description anyone can read, a check, a real native Android project, and an app that keeps its data.

What comes next

The measure for what comes next is the written count of what real apps need: 514 lines from the official documentation, each ticked only when it runs on both phones. The build notes will keep reporting where it stands.

Read next

Easy to read, and nothing out of reach

Read it