An open API service indexing awesome lists of open source software.

https://github.com/dirkjbosman/func_with_scala

Func / Functions / Fun with Scala :)
https://github.com/dirkjbosman/func_with_scala

functional-programming oop scala

Last synced: 2 months ago
JSON representation

Func / Functions / Fun with Scala :)

Awesome Lists containing this project

README

        

First steps with Scala:

### 1. Install Homebrew (if not already installed)
- Open your terminal and run: `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
- After installation, ensure Homebrew is working correctly: `brew doctor`

### 2. Install Java
- Install OpenJDK via Homebrew: `brew install openjdk`
- Add OpenJDK to your environment: `sudo ln -sfn $(brew --prefix openjdk)/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk`
- Verify the installation:`java -version`

### 3. Install Scala
- Install Scala: `brew install scala`
- Verify the installation:`scala -version`

### 4. (Optional) Install SBT (Scala Build Tool)
- Install SBT: `brew install sbt`
- Verify SBT installation: `sbt sbtVersion`
- Scala Metals VSCode Extention

### 5. Terminal Commands:
General
- `% scalac Book.scala`
- `% scala Book.scala`
- `% rm *.class`
- `% rm *.tasty`

E.g. exercise_4
- `scalac *.scala`
- `scala *.scala`