Getting Started With Scala Development

Scala Logo

Learning new languages can be a great way to expand your skills and stay up to date with software development trends. The language that I’m currently learning is Scala! It’s a great language for picking up functional programming concepts, and it being on the JVM allows you to leverage the Java ecosystem’s libraries and frameworks. In this post I’ll show you how to install Scala and give you a few resources to get you started.

 Installing Scala

To install Scala you need to install a Java runtime version 1.6 or later. Once you have that installed you can install Scala through homebrew if you are on a mac, or follow these instructions if you are not.

$ brew install scala

 Using Scala

You can get started playing with the language basics from the terminal with the scala command.

$ scala
Welcome to Scala version 2.11.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_25).
Type in expressions to have them evaluated.
Type :help for more information.

scala> 

Here you can evaluate simple expressions and quickly try a few things (enter :quit to exit the REPL).

scala> println("Hello world")
Hello world

scala> 

 Learning Scala

Scala has great free resources to get you up to speed quickly. I would recommend the following:

 
6
Kudos
 
6
Kudos

Now read this

Writing Command Line Applications In Ruby With Thor

Writing small command line utilities and bash scripts can save you a lot of time as a developer. People often don’t take advantage of them though because they feel intimidated and confused by the ones they use every day like $ git status... Continue →