The scala starter checklist

A starter checklist is not a full course. It is the shortest sequence that proves your Scala environment, syntax, and feedback loop work. Tick each item before adding libraries, frameworks, or larger exercises.

Confirm the Java foundation

Scala runs on the JVM, so start below Scala. Install a current JDK — JDK 17 or JDK 21 are sensible beginner choices — and check it from a terminal with java -version. You want one clear version line, not “command not found”.

Set JAVA_HOME if your installer does not. Keep at least 2 GB of free disk space and 2–4 GB of available memory for editor, compiler, and test runs. If the machine has less, close heavy browser tabs before your first build; a first compile can take 1–3 minutes and look frozen while it downloads dependencies.

Checkpoint: java -version reports 17 or 21, and a trivial Java command runs without a path error.

Install one Scala entry point

Choose one supported way to run Scala and use it for the first week: a Scala runner such as Scala CLI, or a build tool such as sbt, or an IDE-managed project. Do not install three routes on day one; you will not know which one produced an error. If you use an IDE, close and reopen it after installation so it picks up the new path.

Allow 20–40 minutes for download and setup. Verify the installation with the version command your route provides and expect a Scala 3 line, for example 3.3.x. If the command prints Scala 2.13, stop and fix that before writing code.

Checkpoint: one command prints a Scala 3 version, and you can open its REPL or worksheet.

Pin the language version

Beginners should start with Scala 3.3 LTS unless a course or workplace explicitly requires Scala 2.13. Mixing examples from both versions causes strange syntax errors: Scala 3 uses significant indentation, enum, given, and @main; older tutorials may use braces, implicit, and object ... extends App.

Write the version in your notes and in the project file. Keep every exercise file ending in .scala; do not paste .scala code into a .java file and expect it to compile.

Checkpoint: you can say which Scala version your project uses and where that version is declared.

Create and run the smallest project

Make a folder, add one source file, and print one line. An 8–12 line project is enough to prove the toolchain. With a build tool, the usual layout is src/main/scala/Main.scala; with a runner, a single folder is fine. Keep the file under 20 lines and delete generated sample code you do not understand.

“scala @main def hello(): Unit = println("Hello, Scala") “

Run it with your chosen tool's standard command, such as scala-cli run . or sbt run. The first run may take 1–3 minutes; later runs often take 2–20 seconds. If it prints Hello, Scala, your edit-compile-run loop exists.

Checkpoint: you can change the text, save, run again, and see the new output without restarting the whole setup.

Learn the five core syntax habits

Before collections or frameworks, drill five habits for 30–45 minutes each:

  1. val for a fixed value and var only when mutation is truly needed. Prefer val in every exercise.
  2. Type annotations where they clarify: val count: Int = 3, val name: String = "Ada".
  3. Functions as values: write def add(a: Int, b: Int): Int = a + b, then pass a function to map or filter.
  4. Collections: create a List(1, 2, 3), transform it with map, keep items with filter, and reduce it with sum.
  5. Pattern matching: match on an Int, a String, and a simple case class; always include a default case for open-ended input.

Keep each REPL session to 10–15 minutes and finish with one written example you can rerun. One hundred tiny examples beat ten copied large ones. Set a timer for 25 minutes and stop while the example still makes sense.

Checkpoint: you can explain the difference between val and var without looking it up.

Wire in one test

Add one test before the project grows. Use the test framework that comes with your chosen setup; the exact import matters less than the habit. Write 1–3 assertions for a small function, such as an add function returning 5 for 2 and 3.

Run the test command and deliberately break the expected value once. You should see a failure message naming the test and the line. Repair it and run again. This 5–10 minute exercise teaches more than a perfect first pass. A test that never fails is not yet proof; the deliberate failure is part of the checklist.

Checkpoint: one passing test, one deliberate failure, and one repaired pass.

Diagnose the first build failure

Symptom: command not found: scala or sbt. Likely causes: the tool is not installed, the terminal was opened before installation, or the path is not set. Fix: reopen the terminal, check the installer's path instructions, and run the version command again. Do not install a second tool as a guess.

Symptom: “value map is not a member” or a long type error. Likely causes: the collection is not what you think, a Scala 2.13 example is pasted into Scala 3, or an import is missing. Fix: print the value's type in the REPL, reduce the expression to one line, and check the example's Scala version. Add imports only after reading the first error, not the tenth.

Symptom: the first compile hangs for minutes. Likely causes: dependency download, low memory, or a cold build cache. Fix: wait 1–3 minutes once, then check the log's last 20 lines. Close memory-heavy apps, confirm 2–4 GB is available, and rerun. If the same error repeats, copy the first error line, not the whole screen.

Symptom: code runs in the REPL but not in the project. Likely causes: wrong file location, wrong package declaration, or a different Scala version. Fix: compare the working snippet's imports and version with the project file, then move the file to the expected source folder. Keep one known-good Main.scala as a control.

FAQ

Do I need to learn Java before Scala?

No. You need basic terminal confidence and an understanding of what a compiler does. Learn Java only when a specific library or job requires it; Scala will teach you JVM concepts as you go.

Which Scala version should a beginner start with?

Start with Scala 3.3 LTS for a stable beginner path. Use Scala 2.13 only if your course, codebase, or library documentation requires it. Do not mix versions in one exercise set.

How do I know my Scala setup is working?

You have three proofs: a version command prints Scala 3, a 5–10 line @main program prints text, and one test passes and fails when deliberately broken. If all three work, your starter checklist is complete.