Scala Essential Training
4h 43mIntermediate2024-01-24
Authors

Rock the JVM
Course details
Scala is a general-purpose programming language, with full support for object-oriented and functional programming, and with a strong type system. Designed to be concise, many of Scala's design decisions were inspired by criticism of Java's shortcomings. In this hands-on course from Rock the JVM, learn the essential Scala skills needed to become a Scala developer. First, learn about basics like Scala syntax and structure. Then, dive into object-oriented programming and functional programming. Along the way, discover a different way of thinking about and approaching code, learn how to write expression-oriented code, and acquire multiple options to solve problems, with the knowledge to make informed tradeoffs between them.
Skills covered
ScalaProgramming LanguagesOpen SourceSoftware DevelopmentOne-Off
Concepts
Introduction
- Introduction and setup
Scala Basics
- Values and types
- Expressions
- Variables and instructions
- Functions
- Recursion
- Recursion - Exercise
- Recursion - Solution
- String interpolation
Object-Oriented Programming in Scala
- Classes, instances, fields, and methods
- Classes, instances, and methods - Exercise
- Classes, instances, and methods - Solution
- Method notation
- Inheritance
- Overriding, polymorphism, and anonymous classes
- Abstract classes and traits
- Objects
- Case classes
- Exceptions
- Generics
Functional Programming in Scala
- Functional programming basics
- Anonymous functions
- Scala collections - List
- Map, flatMap, and filter
- List exercises
- List exercises - Solutions
- For comprehensions
- Scala collections - Ranges, arrays, and sets
- Scala collections - Tuples and maps
Conclusion
- Recap and next steps