Introduction to Scala

Installation

Scala can be downloaded and installed on either a Windows or NIX platform (e.g. Linux, OS-X) here. For this lecture you must install Scala 3.X, and we recommend installing it using Coursier (see the previous link). You will also need the a JDK, we recommand the one from Adoptium you can download from here.

IDE

One of the most widely used IDE (Integrated Development Environment) for Scala is:

  • VSCode - You will need to install the Scala (Metals) and Code Runner plugins
  • We recommend reading the official Scala documentation for an introduction to the language
  • To test the installation create a new project by going to the Metals Plugin → Build commands → New Scala Project and select scala/hello-world.g8, you should be able to run the code directly via the Run Code button