stepharo wrote
> new cheatsheet for Pharo syntax.
> Any feedback is welcome
Looks great! (and surprise, it covers much more than just syntax).
A few observations:
1. The code examples have smart quotes. This can create confusion. If it's
not too much trouble, copy/pasteable-into-Pharo single quotes would be
better.
2. Under "Pharo: a Live Programming Environment" ends with "… program is
executing. All". I guess that sentence is continued on the other side? If
so, it might be clearer to end with (over) and move the All to the other
side with the rest of the sentence.
3. The following example reminded me of the joy of Pharo's uniformity and
expressivity vs. e.g. Java or C++ - #1:`d.put("1", "Chocolate");` vs. #2: `d
at: '1' put: 'Chocolate'`. Experience of #1 - what was the order of the
parameters? Do I need a dot or arrow? [but then I get to sit back and feel
superior that I am one of the few "gurus" to have mastered an
incomprehensible system] vs. Experience of #2 - "hey, d. please at 1 put
Chocolate. Thanks"
4. Maybe too much detail, but where it says: "Counter >> initialize is a
notation to indicate that the following text is the content of the method
initialize in the class Counter." I personally find it pretty cool that
adding $# i.e. `Counter >> #initialize` makes it executable code, especially
now that we have GT tools which will open up a handful of domain views on
the method!
-----
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html