Suppose you have a new girlfriend because Corinna is too stupid. Her name is Ursel. You want to worship and/or impress her.
For example, by putting her name on your screen.
So you create a program:
Put Ursel on the widget
Yes, that is the whole program.
(Put the text in the "Content" field. Title doesn't matter. For type - it doesn't matter really, TinyBrain will figure it out - you can always use "JavaX (incomplete)" for any program you are writing.)
Then you rely on TinyBrain to give you suggestions on how to turn this program into something runnable.
Right now, the suggestors must be run manually - but we will of course automate that too.
The suggestors can be run like this:
java -jar x18.jar 1000604 yoursnippetid
java -jar x18.jar 1000610 yoursnippetid
They will post comments on the page of your snippet. You can click on those comments to have the suggestions applied.
(Edit: The suggestors (these two anyway) are now run automatically. Just press reload on the snippet page a few times, there is like a 10 second delay or so from your update to the result.)
(The first suggestor turns the prose into a function call; the second one adds all the Java boilerplate.)
So, after two clicks (plus hitting "reload" a few times), we end up with this runnable program:
!636
!629
main {
static Object androidContext;
static String programID;
public static void main(String[] args) throws Exception {
updateWidgetWithText("Ursel");
}
}
And, voila, it can be run! Just start the app, enter your snippet ID (1000603 in the example), hit "Go"... and Ursel will be very impressed: