开发者

Scala: Workshop Advice

I've been asked to give a scala workshop to a PHP audience. A lot of these people never had any contact with a functio开发者_JAVA技巧nal programming language at all, so I was wondering how to introduce them in a way so they get the most out of it.

I heard that a lot of people have a hard time understanding high order functions etc.

What are your experiences? I don't want to scare them off with too advanced stuff nor do I want to bore them to death.

The workshop will be approximately be 3 hours long with about 10 attendees.

Thanks for your input.

Regards, raichoo


I suggest following some of the advices at Sneaking Scala Into Your Organization.

But before that make sure to show the implications of a static type systems and how inference makes lot of type annotations unnecessary.

For function programming don't forget to define important things like clousures, lambdas (anonymous functions) and how they fit in Scala's OO.


Take a look at these slides. I can't tell if they're the most appropriate slides for a PHP audience, but I've always thought that Jonas Boner hits the spot with his presentations. You might want to integrate topics covered here into the workshop, as they are oriented towards the practical aspects of the language.


Programming Scala by Martin Odersky has a number of examples that start with an imperative style and then go through the steps of making it functional.

It helps a great deal if you're not used to functional programming to start with "normal" code and translate it, rather than thinking functionally straight away.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜