Skip to content

Monthly Archives: March 2004

Instance-First Development

LZX is a prototype-based language: any attribute that can be attached to a class definition, can be attached to an instance of that class instead. This is handy in UI programming, where there are a number of objects with one-off behaviors. It’s also handy in prototyping and incremental program development, where it creates the possibility for a novel kind of refactoring.

The following two XML documents are complete LZX applications . Each defines a view named myview, that contains a method named f. Evaluating myview.f() in either application will result in 100.

Optimizing for Broadband

One feature of the recent LPS 2.0 release is the KRANK feature, for optimizing application startup performance.

Normally, when a Laszlo application launches within a browser, it runs initialization code that creates view and logic objects, binds them to dataset data,and attaches constraints. Some of this initialization depends upon the context of the application launch (query parameters, and the contents of runtime data and media requests). Much of it is the same each time the application is launched.