What is Scala?
From the Scala documentation:
- Scala is an acronym for “Scalable Language”.
- Scala is a pure-bred object-oriented language. Conceptually, every value is an object and every operation is a method-call. The language supports advanced component architectures through classes and traits.
- Scala runs on the JVM. Java and Scala classes can be freely mixed, no matter whether they reside in different projects or in the same.
- Read more here
- SBT is the Scala Build Tool - More info here
Installation
-
Install Scala
$ brew install scala
-
Install SBT
$ brew install sbt
-
Install Scala Plugin
- IntelliJ IDEA - More info here
- Go to: IntelliJ IDEA menu => Preferences => Plugins => Install JetBrains Plugin => Scala => Install
- IntelliJ IDEA - More info here
-
Create a project to start practicing and learning! You can follow the Maven Standard Directory Layout to structure your project (i.e. src/main/scala … src/test/scala).
- Or you can also create directly a Scala Project in IntelliJ IDEA - Read here
-
Write some code!