Course Description

Scala Programming

This course provides an introduction to the Scala programming language. Scala is a multi-paradigm language, allowing developers to write in both functional and object-oriented styles. The language runs on the JVM, which means that Scala has access to a vast range of Java libraries, and can interoperate with Java code.

The course will introduce the main features Scala: its support for object-oriented programming, and its support for functional programming.

Supported Distributions

The course can be run on Windows, Linux or OS X.



2 Days


Target Audience

Developers who wish to learn object-oriented and functional programming in Scala.


Course Prerequisites

Developers with experience of programming in Java, or another OO language that uses the JVM. No knowledge of functional programming is assumed.


Suggested Follow on Courses


Course Content

Introduction to Scala Programming

  • Origins and overview of Scala
  • Scala and Java – which to use, when and why
  • Overview of Scala development tools (Eclipse, scalac, sbt, Maven, Gradle, REPL, ScalaTest)
  • Overview of Scala Frameworks

Scala Syntax Fundamentals

  • Data types
  • Variables
  • Operators
  • Functions and lambdas
  • Scala Statements / Loops / Expressions
  • Strings
  • Easy I/O in Scala

Object-Oriented Programming with Scala

  • Defining and using classes
  • Constructors
  • Companion objects
  • val and def
  • Exception Handling

Inheritance and Traits

  • Inheritance and the Object Hierarchy
  • AnyVal and AnyRef
  • Nothing and Null
  • Abstract classes and methods
  • Traits
  • Packages and package objects

Test-Driven Development with Scala

  • Unit testing and TDD
  • Writing good unit tests
  • Using ScalaTest
  • Using matchers

Functional Programming with Scala

  • What is functional programming?
  • Pure & First Class Functions
  • Anonymous Functions
  • Higher Order Functions
  • Currying, Closures & Partials
  • Tail Recursion
  • Lazy evaluation

Collections and Generics

  • Java and Scala Collections
  • Mutable and immutable collections
  • Generic types
  • Type bounds and variance
  • Arrays and Ranges
  • Lists, tuples and maps

Functional Programming and Collections

  • foreach and map
  • fold, reduce and filter
  • Flattening collections and flatMap
  • Option
  • The for comprehension

Pattern Matching

  • Using “Match”
  • Case Classes
  • Wildcards
  • Case Constructors & Deep Matching
  • Using Extractors


See more Programming Languages courses