Wow, nice link! Those are excellent snippets.Sven:Stef:+1 about using somethign with ZnClient. Manipulating web pages (getting data, or filling out forms) is something all students can understand and get excited about (versus some of the other traditional code snippets in books).
On Wed, Jun 17, 2015 at 4:13 PM, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Here are some more
�� https://medium.com/concerning-pharo/elegant-pharo-code-bb590f0856d0
Maybe for teaching, the example should somehow be familiar, recognisable.
On the other hand, that might be confusing and lead to too many comparisons.
> On 17 Jun 2015, at 21:53, stepharo <stepharo@free.fr> wrote:
>
> Hi
>
> For the mooc I have a lecture called Pharo Syntax in a nutshell and I would love to get a couple of simple examples
> that show the syntax but are not totally boring.
>
> I thought about something like
>
>
>�� �� ZnClient new
>�� �� �� �� url: 'http://localhost:8080/books/1';
>�� �� �� �� formAt: 'author' put: 'SquareBracketAssociates';
>�� �� �� �� formAt: 'title'�� put: 'Pharo For The Enterprise';
>�� �� �� �� put
>
>
>
> Stef
>