About This Wiki
Viewing old version ec5ac87c20d9cfcb01050904490078dc09f67378; View Current
I find the tour of Scala a nice idea, but found many of the examples wanting; sometimes for general clarity, but mostly because I kept asking myself “why should I care about this feature?”
As an application developer, mathematical examples aren’t particularly satisfying or exciting. As a Java developer, I was also interested in how Scala improves on Java, with respect to a particular language feature.
So, I went through every element of the tour and worked out the feature myself, trying to map it to real-world scenarios I (and, presumably many others) have faced. I find a real (if simplified) context makes not only comprehending a language feature simpler, but also leaves me with a feeling of why the feature exists and what good it does.
I want new languages and tools to make my life easier in some way, and I feel that many of Scala’s features do that. However this was not obvious to me from the tour.
I also thought it would be a bit more helpful to order the tour elements so that things flowed better, as well as some introductory material that clears up some syntax that I found counter-intuitive the first time. I also added a few of my own stops on the tour that I thought would’ve been nice to have the first time through.
Finally, I can’t pass up the opportunity to comment on these features, so each one contains my thoughts at the bottom, which you can skip if you aren’t interested.
h2. Contributing or Using this Content
The content is all stored in git, and there’s a mirror available on github. Feel free to fork it and submit changes, or just use it how you see fit. It’s all licensed under a creative commons license, so just stick to the license terms and you’re good to go.
I get paid to write Java, and have been so paid for about 10 years (before which I did C and C++). I also write a fair amount of Ruby code, so the concept of a concise language geared toward productivity is not foreign to me.
That being said, most of my examples show “the way you’d have to do it in Java” and then “the Scala way”. I figure most people will come to Scala from Java and appreciate the comparison.
Last Updated 12/21/2010 at 05:32:38 PM by davecblog comments powered by Disqus
Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.