rkotenko (2) [Avatar] Offline
#1
The technique used in section 2.3.3 of chapter 2 is not clear:

In the section it states that you can change the location of the left plane by referencing the lead plane coordinates:

this.x = parent.LEAD.x – 50
this.y = parent.LEAD.y + 40

However, it does detail how to implement this method. If a reader were to just paste these lines into the node declaration (which a beginner might do) as:

<jet this.x=parent.lead.x - 50 this.y = parent.lead.y + 40>

They would, of course, receive compilation errors. I realize that this is just an example of how relative positioning works, but there should be some indication of how 'this' is to be used. Otherwise, the ${} should be shown as follows:

<jet this.x="${parent.lead.x - 50}" y="${parent.lead.y + 40}">

So that readers may easily see the results of flat tags for themselves.
rkotenko (2) [Avatar] Offline
#2
Re: chapter 2 section 2.3.3 - flat tags
Sorry. That this.x in the last code bit should just be x.
nklein (33) [Avatar] Offline
#3
Re: chapter 2 section 2.3.3 - flat tags
From meeting and talking with several people that were frustrated in their attempts to "get" Laszlo. We decided that it was necessary to provide an initial chapter (chapter 2) to help them to grasp the "big picture" of Laszlo. So the purpose of this chapter and the jet formation example is to explain why a declarative approach is a critical element for any language used to build sophisticated user interfaces.

A more traditional "nut and bolts" approach to Laszlo LZX is provided in chapter 3.