Last modified on 2008-06-05 10:19:14
Going deeper
Integrating code and data
If you have data you would probably save it in a spreadsheet or a database. Then you can get some overviews by filtering or sorting, or you can edit your data by simple operations like addition or multiplication. If you want to perform more complicated operations you would probably write a macro or write some code in a suitable programming language. In any case, your data and logic will be saved separately. Unlike Charta. Charta saves everything in one database, charta.data. This means that you can write code that uses or manipulates your data and direclty see the effects. It's all in one screen.
Charta.data, visible in the explorer on the left, has a DOM structure. It is based on references. In essence every function, every class and every piece of data can be pointed to from every context.
To get a clear (starting) structure charta.data is divided in:
- Programming: a package structure that contains all the classes and functions
- Ad hoc functions: a selection of functions with a utility purpose
- Main functions: custom functions that start a process
- Classes: custom classes
- Data objects that can be accessed from every function
- Navigate to charta.data with the key combinations Windows+Arrow
- Expand and collapse the nodes in the tree by using the Left and Right keys.
Lessons learned
- Everything is saved in one database
- Everything is based on references
