- 54lessons
- 8module checkpoints
- 2.6hours of video
What you'll learn
- Install and pin a Scala 3 toolchain and run code with scala-cli and sbt.
- Transform immutable collections with higher-order functions and for-comprehensions.
- Compose behaviour with traits, generics, extension methods and given/using type classes.
- Handle absence and failure as values with Option, Try and Either and typed errors.
- Test pure logic, error paths, parsers and Futures with munit and run suites with scala-cli and sbt.
Skills you'll gain
- Scala workspace
- Types
- expressions
- Functions
- collections
- Case classes
- matching
- Traits
- composition
- Functional error handling
- Concurrency concepts
- Application testing
Tools you'll use
- Scala 3
- scala-cli
- sbt
- munit
- scala.concurrent Future
Details to know
- Certificate on completionIssued after your final project is reviewed
- 8 module checkpointsA quiz and a practical task close each module
- Self-pacedStudy any time; your progress is saved
How every lesson works
Each lesson follows the same four steps, so you always know what comes next.
- 01
Watch & Learn
A short animated video explains one idea at a time.
- 02
Guided Practice
Work through an example step by step and check the result.
- 03
Quiz & Challenge
Short questions check the idea has landed before you move on.
- 04
Mini Project
Build something useful from a project brief.
Learn at your own pace
This is a self-paced course. There are no live classes and no fixed timetable.
- Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
- Pick up where you left offYour progress is saved to your account.
- Ask when you're stuckUse Ask Mentor inside the learning platform.
Your path in 5 phases
Each phase ends with something you have built and checked.
- 01
Module 1
Command-line unit converter
Install and pin a Scala 3 toolchain, run and test code with scala-cli and sbt, read Scala 3 syntax, and call Java libraries.
You build: Command-line unit converter: A scala-cli program with @main taking typed arguments and a pinned directive header.
- 02
Modules 2 to 3
Receipt and statistics calculator
Use val, var, expressions, inferred types, numeric types, string interpolation, the type hierarchy and tuples to write small correct Scala programs.
You build: Receipt and statistics calculator: A receipt module using val-only code, interpolation and a Long total; A report module using map, filter, foldLeft and groupBy.
- 03
Modules 4 to 5
Booking domain model
Model data with case classes and enums, take it apart with pattern matching, and write extractors and immutable updates.
You build: Booking domain model: Case classes, an enum and an exhaustive match for a booking model; Traits, a bounded generic and a type class for pricing.
- 04
Modules 6 to 7
Validated order intake with concurrency
Represent absence and failure as values using Option, Try and Either, compose them in for-comprehensions, and design error types.
You build: Validated order intake with concurrency: Either-based validation with a sealed error enum and a batch report; A parallel price lookup with fallback.
- 05
Module 8
Scala data application with functional models and tests
Write munit tests with scala-cli and sbt for pure functions, error paths, Either results, data parsing and Futures.
You build: The final project, demonstrated to a trainer.
Full curriculum
8 modules and 54 lessons, 32 to 54 hours of study
01Scala workspace7 lessons, 3 to 5 hours
Lessons
- Verify the JDK and scala-cli toolchain and record versions
- Run a single-file program with @main and scala-cli run
- Pin the Scala version and a dependency with using directives
- Evaluate expressions interactively in the scala-cli REPL
- Read Scala 3 indentation syntax and brace syntax side by side
- Create an sbt project and run sbt compile, run and test
- Call a Java library from Scala using the JDK you already know
After this module you can
- Run the version commands for java and scala-cli and write down both versions plus the Scala version scala-cli selects by default.
- Write a Scala file with one @main method and run it with scala-cli run, passing two command-line arguments that the program prints back.
- Import java.time.LocalDate and java.util.ArrayList in Scala, compute a date difference, and convert a Java list to a Scala collection.
02Types and expressions7 lessons, 3 to 5 hours
Lessons
- Choose val or var and see what reassignment does
- Treat if and match as expressions that produce values
- Let type inference work and know where to annotate
- Work with Int, Long, Double and Boolean arithmetic and overflow
- Build text with s and f string interpolators
- Place values in the Any, AnyVal, AnyRef, Unit and Nothing hierarchy
- Group related values with tuples and destructure them
After this module you can
- Declare values with val and var, trigger the compiler error for reassigning a val, and rewrite a var-based loop total without var.
- Use an if-else expression and a match expression to assign a value, and explain why the else branch is required for a typed result.
- Return a tuple from a method, destructure it into names and use tuple accessors, then explain when a case class is clearer.
03Functions and collections7 lessons, 3 to 5 hours
Lessons
- Define methods with default and named parameters
- Treat functions as values with lambdas and method references
- Transform lists with map, filter and flatMap
- Reduce a collection with foldLeft and its accumulator
- Choose between List, Vector, Set and Map for immutable data
- Combine sequences with for-comprehensions
- Group, sort and summarise records with groupBy and sortBy
After this module you can
- Write a method with a default parameter, call it positionally and by name, and explain which call order the compiler accepts.
- Assign a lambda to a val, pass it to a method that takes a function, and convert an existing method to a function value.
- Group records by a key, compute a size per group, and sort groups by size descending with a documented tie-break.
04Case classes and matching7 lessons, 3 to 5 hours
Lessons
- Model a record with a case class and read its generated members
- Take values apart with match, literals, guards and wildcards
- Define a closed set of alternatives with enum and sealed ADTs
- Rely on exhaustivity checking for sealed hierarchies
- Match nested structures and collections
- Write apply and unapply in a companion object
- Update immutable records with copy and nested copy
After this module you can
- Define a case class and show its generated toString, equals, hashCode and copy by comparing two instances.
- Write a match over an Int and a String with literal patterns, a guard and a default case and report which case fires for supplied inputs.
- Update a field in a nested case class using copy twice and explain why the original value is preserved.
05Traits and composition7 lessons, 3 to 5 hours
Lessons
- Declare a trait with abstract and concrete members
- Mix in several traits and predict linearization order
- Use objects and companions for singletons and factories
- Write generic classes and upper bounds
- Predict covariance and contravariance in generics
- Add behaviour to existing types with extension methods
- Define type classes with given and using
After this module you can
- Define a trait with one abstract method and one concrete method, implement it in two classes, and call both through the trait type.
- Stack two traits that call super and predict the order in which their output lines print.
- Write a type class trait, give instances for two types, and a method that asks for the instance with using.
06Functional error handling7 lessons, 3 to 5 hours
Lessons
- Replace null with Option and read it safely
- Chain optional steps with map, flatMap, orElse and fold
- Capture exceptions as values with Try
- Return typed failures with Either
- Sequence Either steps in a for-comprehension
- Process a list of Either results with partitionMap and sequencing
- Design a sealed error ADT and map errors at boundaries
After this module you can
- Wrap a possibly-missing lookup in Option, read it with match, getOrElse and map, and show that no null is returned.
- Chain three optional lookups with flatMap and provide a fallback with orElse, then produce one String with fold.
- Replace string errors with a sealed error type, map a low-level error to an application error, and print a user-friendly message.
07Concurrency concepts6 lessons, 3 to 4 hours
Lessons
- Start a Future on an ExecutionContext and read its result
- Transform results with map and flatMap on Future
- Combine many futures with Future.sequence and traverse
- Recover from failed futures with recover, recoverWith and fallbackTo
- Show a race condition on shared mutable state and fix it
- Separate blocking calls from CPU work with thread pools
After this module you can
- Start a Future computing a value, supply an ExecutionContext, and read the result with Await in a small program.
- Chain two dependent futures with flatMap and transform a result with map, and explain why the second starts only after the first.
- Create a fixed thread pool context for blocking work, run tasks on it and observe thread names.
08Application testing6 lessons, 3 to 4 hours
Lessons
- Write a first munit test and run it with scala-cli test
- Choose assertions and test names that document behaviour
- Test error paths for Option, Either and exceptions
- Parse and test CSV-like text input with table-driven cases
- Organise a test-friendly design with pure core and thin edges
- Test Futures and run the whole suite with sbt test
After this module you can
- Create a munit test file with assertEquals, run it with scala-cli test and read the pass and fail report.
- Use assertEquals, assert, assertNotEquals and intercept in tests and write names that describe input and expectation.
- Write a munit test that returns a Future, then run the suite through sbt test and read the summary.
What you'll build
Final project
Scala data application with functional models and tests. Options: Transit fare-log analyser; Clinic appointment ledger; Warehouse stock-movement summariser.
What you submit
Source submission as a repository or zip with a scala-cli or sbt setup and the pinned Scala version stated Functional checks: a munit suite of at least 15 tests including error paths and a table-driven parser test, run with scala-cli test or sbt test.
How it's reviewed
Trainer review against a weighted rubric: Correctness on unseen data (30%) Typed models and exhaustive matching (20%) Error handling by values, no unchecked exceptions (20%) Test quality and coverage of failure paths (20%).
Where you'll use it
- Validate rows from a CSV file with Either and report each invalid row with a typed error.
- Model domain data with case classes and enums and compute summaries with immutable collections.
Roles that use these skills
- Scala developer
- Data engineer
- Backend developer
Earn the certificate by building, not watching
- Complete the lessons and pass each module checkpoint.
- Build your final project and demonstrate it.
- OUTLEARN reviews your project and issues your certificate. It is not issued automatically.
Frequently asked questions
What should I know before starting?
The course expects Java Programming or an accepted equivalent. Entry requirements: the Java course or equivalent. A short diagnostic check is described in the entry requirements.
What do I build for the final project?
You choose one of 3 options: Transit fare-log analyser; Clinic appointment ledger; Warehouse stock-movement summariser. It is reviewed by a trainer in a live demonstration.
When do I get a certificate?
Only after you build and demonstrate your live project. OUTLEARN staff issue certificates; nothing is issued automatically.
Be first in when Scala Programming opens
Email us and we will tell you as soon as enrolment opens.
Notify me when it opens
