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.
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
- 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
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.
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.
- What’s Scala?
- The current crisis
- Transitioning from Java to Scala
- Coming from a dynamic language
- For the programming language enthusiast
- REPL with Scala interpreter
- Scala basics
- Working with Array and List
- Controlling flow with loops and ifs
- 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
- Scala imports
- Objects and companion objects
- Mixin with Scala traits
- Case class
- Named and default arguments and copy constructors
- 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
- 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
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.