Image based development | It is the default mode of development suggested by U8 server. It is instantiated from [Start Coding] button, forking this contribution or entering this page. Under image based development mode, you can take snapshot of the running application and upload the image to server. When the contribution is opened again, it will load from saved image. You work as usual in any smalltalk dev. environment. |
File based development (headless) | This mode of development open the default image and start loading pieces of application dynamically from files in the contribution's folder, or in other folders under U8 server's space. Under file based development mode, a basic GUI to load/save startup files is present. You can download the contents of a startup file to result pane, drag the contents to workspace, edit and then press the save button to save the expression to be loaded on next startup of the contribution. |
The result of evaluating "U8 fileBased" will return true when the contribution is file based (also called headless). |
Browse U8>>#html and U8>>#open |
Note that the snapshot process includes a basic serialization of your globals, and you must learn/implement a mechanism to serialize instances during snapshot if you need to persist data in image globals. |
Browse U8>>#toolsHTML and U8>>#imageToolsHTML/#fileToolsHTML |
button set | |
Evaluate the text in the Workspace area as a Smalltalk expression and report the result in the Results area. | |
FileIn the text in the Workspace area. Consider that you can fileIn code and resources from chunked data with S8. Browse FileInReader class and subclasses. | |
Evaluate the text in the Workspace area as javascript code (in the global context). Report the result of evaluation in Result area. | |
The clipboard store texts saved from Workspace (with [+] button). Each time you press the [+] button, the text in the workspace area is saved as an annotation. You can cycle current annotations using [<] and [>] buttons. Once you loaded an annotation, you can delete from memory pressing [-] button. |
Most actions you evaluate to get information are reported on Results area. The only action that change your workspace text are clipboard operations(buttons). |
You can drag the contents of result area to workspace to edit+evaluate/fileIn code. |
The Result area show objects in javascript notation. You can send #asString to the result to see result as smalltalk object. |
All annotations are saved in the image (in image development mode), and can be accessed with the expression "WorkspaceAnnotations". In file development mode, the clipboard is read from chunks in file "Clipboard.txt" |
We suggest this simple set of tools because we maintain the same version of tools on small devices. You can work your classes in the smalltalk environment you feel more comfortable and then export code as standard chunk format to be filedIn in one shot step. |
When a method is incorporated in a class the source management system emmits the javascript output (with #print: ) and it is routed to Transcript. |
U8 tool also implements messages to maximize/hide/show GUI elements. |
You can make the Sample lement of fixed size of the page and when you clear the contents the tools will appear as usual. |