This guide assumes no prior knowledge of Scala and will get you set up to the point where you have Scala installed on your computer and can hack on a project.
We recommend reading Programming in Scala to learn the language.
Followed by Functional Programming in Scala, aka “the red book”.
Before installing any software, you can complete exercises online at scala-exercises.org and execute code in your browser at scalafiddle.io.
- Install Java: Scala runs on the Java Virtual Machine (JVM).
Prefer free/libre OpenJDK to proprietary versions of Java.
Install OpenJDK using your system package manager:
- Install SBT: The Scala Build Tool (
sbt) will install all the build tooling you need, including Scala.
- (GNU / BSD, Optional): If you anticipate using multiple versions of Java, install jenv.
If a volunteer would like to pad out the following, that’d be great. Until then, try Daniel Spiewak’s “Getting Started in Scala” guide
- checkout a basic tutorial project, e.g. 99 problems or scalania
- start sbt and cheatsheet of basic commands (for now, try sbt common commands)
- hello world in the editor without ensime (e.g. /editors/emacs/scala-mode) starting from scratch with
sbt new eed3si9n/hello.g8
- start ensime server, for now read Getting Started