[lively-kernel] Lively "cheat sheet"

Lincke, Jens Jens.Lincke at hpi.uni-potsdam.de
Tue Nov 5 00:27:05 CET 2013


Hi, Steve

a point in Lively can be constructed using „pt(100,10)“
so try „this.moveBy(pt(100,10))“

We could have made the moveBy method more clever in accepting more kind of arguments, but as I remember we did not do it due to performance reasons.
Maybe nowadays this should not make a difference any more.

Best, Jens

Am 05.11.2013 um 00:12 schrieb Steve Thomas <sthomas1 at gosargon.com<mailto:sthomas1 at gosargon.com>>:

Thank you, this is very helpful.  I have been wanting to try and figure out how to use Lively in the same way I use Etoys with kids, but haven't had/made the time to learn the things I need to know.  This definitely helps reduce the learning time.

One thing I was trying to do was to perform some basic "turtle" commads like moveBy, when I opened the inspector and tried this.moveBy(10)  it always moved to 0,0 no matter what number I entered.  I then say the cheat sheet said moveBy(point)  so I tried moveBy(100,10) and still the same behavior.

It would be great if at some point the cheatsheet had links for each "cheat" to a tutorial/example page.


Thanks,
Stephen
P.S. At some point it would be great if there were scripting tiles :)


On Mon, Nov 4, 2013 at 1:57 AM, Robert Krahn <robert.krahn at gmail.com<mailto:robert.krahn at gmail.com>> wrote:
To provide a concise overview of the most needed interfaces when working with Lively I have assembled a small list here:

http://lively-web.org/users/robertkrahn/lively-cheat-sheet.html

You are very welcome to extend the list or make extension requests.

Best,
Robert

_______________________________________________
lively-kernel mailing list
lively-kernel at hpi.uni-potsdam.de<mailto:lively-kernel at hpi.uni-potsdam.de>
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel




--

To some of us, writing computer programs is a fascinating game. A program is a building of thought. It is costless to build, weightless, growing easily under our typing hands. If we get carried away, its size and complexity will grow out of control, confusing even the one who created it. This is the main problem of programming. It is why so much of today's software tends to crash, fail, screw up.

When a program works, it is beautiful. The art of programming is the skill of controlling complexity. The great program is subdued, made simple in its complexity.

- Martin Harverbeke (from Eloquent JavaScript<http://eloquentjavascript.net/index.html>)

_______________________________________________
lively-kernel mailing list
lively-kernel at hpi.uni-potsdam.de<mailto:lively-kernel at hpi.uni-potsdam.de>
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hpi.uni-potsdam.de/archive/lively-kernel/attachments/20131104/fe9adbf3/attachment.html>


More information about the lively-kernel mailing list