Welcome to Headstorm Scala School!
This series focuses on learning the core elements of Scala and pure functional programming concepts with a sprinkling of category theory.
Scala is a strongly typed, functional programming language with an OO heritage. It compiles to Java bytecode and runs on the Java Virtual Machine.
You will need to install the Scala compiler and SBT (Simple Build Tool) in order to build your Scala projects
brew install scala
brew install sbt
Use one of the following tools to run your Scala code as you practice, these tools are REPLs:
-
Scala REPL: Scala itself provides a built in REPL:
brew install scala
Now typescala
on the command line. Welcome to your built in Scala REPL! -
Ammonite: Ammonite is a more powerful REPL and runs after installation with
amm
in your shell. Install Ammonite with the below command:
sudo sh -c '(echo "#!/usr/bin/env sh" && curl -L https://github.com/lihaoyi/Ammonite/releases/download/1.7.1/2.13-1.7.1) > /usr/local/bin/amm && chmod +x /usr/local/bin/amm' && amm
- Scastie: https://scastie.scala-lang.org/
Now you're ready to learn Scala with the resources below: