Onex is a app that enables non-techies to program their Android devices.
It's like a spreadsheet, only simpler and more powerful.
Here in Onex Land, we want to empower everyone to be able to program their own Android apps on their phones and tablets.
In fact, you already can: using spreadsheets! But it's not as easy or as powerful as we think it should be.
Spreadsheets are often used by non-coders to build certain kinds of apps like calculators and trackers.
The data in a spreadsheet is the first thing you see, so you always feel in control.
The formulae can be directly and immediately edited when you enter a cell that is created that way:
However, spreadsheets are very limited in their power to express complex applications in a clean and easily-managed way.
So we plan to fix the one main problem with spreadsheets that's been holding them back for all these decades!
Fixing that problem will open up the power of spreadsheets to enable you to easily build more complex smartphone apps.
Spreadsheets offer you a continuous, 'infinite' grid into which all your work is placed, but there is no concept of a 'chunk' of related data.
You may have it in your mind that this area of the spreadsheet is a cost lookup table, this area is the plan, and this the final costings. But the spreadsheet knows none of that, so can't help you manage those chunks.
It doesn't really know that this column header describes the data in this column: you could move all the data in the columns away from their corresponding headers, and right on top of the data of the lookup table, and the spreadsheet would happily let you.
Further, the formulae, being embedded in each cell, can't be seen until you click on the cell to expose them, up in the formula bar. It's great that the data is so visible, but it comes at the expense of easily seeing the second most important thing: the functions.
Worse than that is the way those formulae hidden inside each cell are copied again and again when working with lists or tables. So if you want to change the formula, each one has to be re-copied, hopefully into exactly the same places.
Finally, a cell value can only have a single formula to determine it, so sometimes those formulae have to be quite complex in order to encapsulate a number of possible conditions, and may have to line up with other complex formulae with parallel conditions.
Although spreadsheets are a very simple and powerful tool for non-programmers, they become hard to manage when you want to expand to building more complex, general purpose mobile apps.
The lack of 'chunking' or understanding of your intended structure, the re-use of the hidden formulae by copying, and the difficulty of managing complex conditions across many formulae, all make it hard and error-prone to evolve and maintain your program.
Onex fixes all these issues in spreadsheets with one simple concept - the 'linked object', for both data and formulae.
Onex chunks up both your data and your formulae into separate 'objects', linked together.
In Onex, you build collections of objects for your data and link them up to each other.
Linked objects allow you to structure your more complex data and programs into simpler chunks, into modules and layers, instead of having to manage the endless grid yourself.
You then link data objects to rule objects. Rule objects separately represent the formulae - the rules that describe your data dependencies.
Formulae are kept in one place instead of scattered around, and are as visible as the data.
In the same way that a spreadsheet formula describes how a cell value depends on another cell value, an Onex rule object describes how the values of a data object depend on other values in that object.
Of course, rule objects can also describe how the values in an object depend on the values of the other objects it links to.
Several data objects can all point or link to the same rule object, so you only need to change the rule once and all linked objects will now behave differently.
A single rule can simultaneously set multiple values, plus many rules can potentially set any given value, which means you can factor out formulae that work together.
Here's a quick intro to programming in Onex:
Onex is currently under development - see the code here - and will be released to the Play Store as soon as it's useful and has been fully tested by my family!
Contact me and/or follow me on Twitter.