WORKSHOP: Scala with Nathan Hamblen

October 9, 2009
3:00 pmto5:00 pm

As presented by the illustrious Nathan Hamblen of Coderspiel. I know enough German to know that the blog name says something about playing with code. We play at ITP. Come play with code!

Scala is a programming language. Like Java. Which is like Processing.

BUT IT IS BETTER, and works with Processing.

First of all, they use Scala at Twitter. Twitter is pretty much the coolest thing ever.

Second of all, there are no semicolons. If you’ve used Python, then whatever, but it’s still nice.

Third of all, it’s functional. Which is at first kinda confusing, but is ultimately quite commonsensical. Want to pass a function as an argument to another function? Go ahead. If you wanted to take a list and filter out only the even numbers, it’s one line of code. If you want to take two lists and multiple all the elements together, it’s also one line of code.

[other reasons can wait until Friday]

AND MOST IMPORTANTLY this guy made it work with Processing. So you can make pretty stuff, just as you did before, but with less code and with more understandable code.

And now for some links!
“Scripting, Functional, OO, Static Typing – pick any 4″ (start here?) (and here) is the thing i wrote in Scala

Tuesday, October 6th, 2009
admin | Events