Saturday, November 20, 2010

"Intro to Scala for Java Programmers": slides, code, and links

Last week, I presented a talk titled "An Introduction to Scala for Java Programmers".  I had a lot of fun making it, and I learned a ton.  I thought it was interesting that the more I learned, the more I liked Scala.  This is certainly not always true of technologies that look good at first!

Here's the slides.  They're probably pretty reliant on the speaking that typically goes with them, but maybe you will see something interesting.


Here's the code I used to develop the slides.  It's in the form of an Eclipse workspace.  To use it, you'll need the Scala plugin installed on Eclipse.  Unfortunately, you'll need to use Eclipse 3.5 (Galileo) instead of the latest.  Once it's installed, make sure you activate the Scala perspective, and import the sample code using File...Import...Existing Project Into Workspace, and use "Select Archive File" to import talk.zip.  The code is a downright odd collection of snippets, but I suspect it would be interesting to play with if you were curious about Scala.

Finally, I wanted to give better credit for some of the ideas and samples in the slides.

  • 3 interesting uses of traits: lifted from this awesome article
  • Actors: inspired by this great intro on Actors 
  • As useful as named parameters and default values are, I didn't have a good example to illustrate them until I found this intro on Artima
  • I think the format of the slides was guided by this article on combining OO and functional principles.
  • Many times, I ended up referring back to Programming in Scala for clarity.  It's a great general-purpose programming book.
Update: Some people have asked for a downloadable pdf - here it is

14 comments:

askraj said...

this is so concise and good thanks

Anonymous said...

very nice. thanks.

Paul Miller said...
This comment has been removed by a blog administrator.
Laraib Malik said...
This comment has been removed by a blog administrator.
Mirnalini Sathya said...

Wonderful Blog!!! Your post is very informative about JAVA technology. Thank you for sharing the article with us.
JAVA Training in Chennai | JAVA Course in Chennai

Nandhini said...

Thanks for taking time to share this post.It is really useful.Continue sharing more like this.
Regards,
Java Training in Chennai

Nandhini said...

Thanks for taking time to share this post.It is really useful.Continue sharing more like this.
Regards,
Java Training in Chennai

Nancy 12 said...

This information is impressive; I am inspired by your post writing style & how continuously you describe this topic.
Java Training in Chennai

pavitha vinu said...

Scala interoperates seemlessly with Java, there is no need to implement equivalent classes in the Scala class library as the slides, codes and links are equal.
Java Certification Training in Chennai

Mohana M said...

Your information about Java is useful for me to know more technical information. Really very informative post you shared here. Keep sharing this type of informative blog. If anyone wants to become a Java professional learn Java Training in Bangalore. Nowadays Java has tons of job opportunities for all professionals.

Krishna Veni said...

Good and nice blog post. it is very useful to me, thanks for sharing your views and ideas.. keep rocks and updating...


Java Training in chennai | Java Training institute in chennai

sangeetha said...

Hi, you have given really informative post. Thanks for sharing this post to our vision. Learn Dotnet will helps you to reach your goal.
Java Training in Marathahalli
Python Training in Marathahalli

Melba henry said...

I have read all the articles in your blog; was really impressed after reading it. Besant Technologies is glad To inform you that; we provide practical training on all the technologies with MNC exports. Java Training in Chennai | Selenium Training in Chennai

uma mahi said...

Nice to see the blog about Scala for Java programmer Java courses in chennai . Keep post more update about Scala related to Big data.