Scala Notes: Getting Started

This is the first in a series of very short articles I am calling scala-notes where I will share my notes and or my favorite links about Scala related topics. Hopefully this will prove to be a motivator for me to mine the giant stack of paper notes I have written about scala… In any case I hope this exercise proves useful for somebody.

Getting Started with Scala

When you get started with a language you need a “Hello, World”. (This example works if you install Scala, rather than using it from SBT.) So here is one:

 $ vi HelloWorld.scala
object HelloWorld extends App {
  println("Hello, world!")
}
 $ scalac HelloWorld.scala
 $ scala HelloWorld
  Hello, world!

What is Scala?

The official answer is here, but to me it is simply an object-functional programming language on the JVM. The more interesting part is the functional part, but because it also supports object oriented design on the JVM, it makes for a simpler transition from Java than say moving directly to Haskell. If you are a Java programmer maybe you should avoid scala? Don’t say I didn’t warn you. ;-)

Functional

Here are some functional programming links (mostly videos). Some relate to scala more than others.

Videos

Books

General Scala

Books

If you have some favorite links for getting started with Scala, then please share them in a comment.

Mark Mynsted
March 5, 2014