Programming in Scala for Experienced Developers

Explore Scala Essentials, Functional Programming, Web Development, Database Connectivity, Testing / TDD, Debugging and More


Introductory and Beyond

5 Days

Course Overview

Geared for experienced programmers, Introduction to Scala Programming for Developers is a comprehensive hands-on course that introduces the language through clear explanations and numerous practical examples. This course takes a "how-to" approach, explaining language concepts as participants explore familiar programming tasks, mapping them to functionality in Scala. You will tackle concurrent programming in Akka, learn to work with Scala and Spring, and learn how to build DSLs and other productivity tools.

Course Objectives

This “skills-centric” course is about 50% hands-on lab and 50% lecture, designed to train attendees in core Scala coding skills, coupling the most current, effective development techniques with the soundest industry practices.

Working in a hands-on learnng environment, participants will explore

  • Getting started with Scala
  • How to use Java and Scala open source libraries
  • How to use SBT
  • Test-driven development
  • Debugging
  • Scala 2.10 updates

Need different skills or topics?  If your team requires different topics or tools, additional skills or custom approach, this course may be further adjusted to accommodate.  We offer additional Scala, programming, design, testing and application security courses which may be blended with this course for a track that best suits your development objectives. Our team will collaborate with you to understand your needs and will target the course to focus on your specific learning objectives and goals

Course Prerequisites

This is a foundation-level course is geared for experienced developers.  Prior experience working with (or familiarity with) Java, Python or Ruby would be helpful. This course is NOT for non-developers.

Please see the Related Courses tab for specific Pre-Requisite courses, Related Courses that offer similar skills or topics, and next-step Learning Path recommendations.

Course Agenda

Please note that this list of topics is based on our standard course offering, evolved from typical industry uses and trends. We will work with you to tune this course and level of coverage to target the skills you need most.

About Scala

  • What’s Scala?
  • The current crisis
  • Transitioning from Java to Scala
  • Coming from a dynamic language
  • For the programming language enthusiast

Getting started

  • REPL with Scala interpreter
  • Scala basics
  • Working with Array and List
  • Controlling flow with loops and ifs
  • For-comprehensions
  • Pattern matching
  • Exception handling
  • Command-line REST client: building a working example

OOP in Scala

  • Building a Scala MongoDB driver: user stories
  • Classes and constructors
  • Packaging
  • Scala imports
  • Objects and companion objects
  • Mixin with Scala traits
  • Case class
  • Named and default arguments and copy constructors
  • Modifiers
  • Value classes: objects on a diet
  • Implicit conversion with implicit classes
  • Scala class hierarchy

Having fun with functional data structures

  • Introducing type parameterization
  • Type variance with covariance and contravariance
  • Lower and upper type bounds
  • Higher-order functions, including map, flatMap, and friends
  • Using foldLeft and foldRight
  • Building your own function objects
  • Scala collection hierarchy
  • Mutable and immutable collections
  • Working with List and ListBuffer
  • Working with lazy collections: views and streams
  • Divide and conquer with parallel collections

Functional Programming

  • What is functional programming?
  • Moving from OOP to functional programming
  • Functions in all shapes and forms
  • Thinking recursively
  • Algebraic data types
  • Why does functional programming matter?
  • Building higher abstractions with monads

Building web applications in functional style

  • Building weKanban: a simple web-based Kanban board
  • Building Scala applications using Simple Build Tool
  • Introducing the Scalaz HTTP module

Connecting to a database

  • Adding a new story to a weKanban board
  • Building the Kanban board page

Building scalable and extensible components

  • Building your first component in Scala
  • Types of types in Scala
  • Ad hoc polymorphism with type classes

Concurrency programming in Scalafree

  • What is concurrent programming?
  • Challenges with concurrent programming
  • Implementing message-passing concurrency with actors
  • Composing concurrent programs with Future and Promise
  • When should you not use actors?

Building confidence with testing

  • Importance of automated testing
  • Automated test generation using ScalaCheck
  • Test-driven development cycle
  • Better tests with dependency injection
  • Behavior-driven development using Specs2
  • Testing asynchronous messaging systems

Interoperability between Scala and Java

  • Using Java classes in Scala
  • Using Scala classes in Java
  • Building web applications in Scala using Java frameworks

Scalable and distributed applications using Akka

  • The philosophy behind Akka
  • Simple concurrency with Akka
  • Building a real-time pricing system: Akkaoogle
  • Adding asynchronous HTTP support with Play2-mini

Course Materials

Each student will receive a Student Guide with course notes, code samples, software tutorials, step-by-step written lab instructions, diagrams and related reference materials and links (as applicable). Students will also receive the project files (or code, if applicable) and solutions required for the hands-on work.

Lab Setup Made Simple.   All course labs and solutions, data sets, Tableau course software (limited version, for course use only), detailed courseware, lab guides and resources (as applicable) are provided for attendees in our easy access, no installation required, remote lab environment for the duration of the course. Our tech team will help set up, test and verify lab access for each attendee prior to the course start date, ensuring a smooth start to class and successful hands-on course experience for all participants. 

Raise the bar for advancing technology skills

Attend a Class!

Live scheduled classes are listed below or browse our full course catalog anytime

Special Offers

We regulary offer discounts for individuals, groups and corporate teams. Contact us

Custom Team Training

Check out custom training solutions planned around your unique needs and skills.

EveryCourse Extras

Exclusive materials, ongoing support and a free live course refresh with every class.

Summer Savings!
Register today to receive *50% off all 2021 Public Classes*!  Check out our Current Offers for Individuals, Teams and Organizations to Learn for Less!

See our latest Offers and Promotions

Learn. Explore. Advance!

Extend your training investment! Recorded sessions, free re-sits and after course support included with Every Course
Trivera MiniCamps
Gain the skills you need with less time in the classroom with our short course, live-online hands-on events
Trivera QuickSkills: Free Courses and Webinars
Training on us! Keep your skills current with free live events, courses & webinars
Trivera AfterCourse: Coaching and Support
Expert level after-training support to help organizations put new training skills into practice on the job

The voices of our customers speak volumes

Special Offers
Limited Offer for most courses.

SAVE 50%

Learn More