Part I – Introduction to Scala
- Scala as functional programming language
- Scala installation– Interpreter, Scripts
- Syntax basics – variables, functions, collections, tuples
- Class hierarchy
- Scaladoc documentation
- Language aspects – source code, methods, functional programming
Part II – Syntax differences between Scala and Java
- Classes and fields
- Classes and objects
- Classes and functions
- Inheritance
- Conditionals, looping structures, breaking control flow
- Generics
Part III – New elements introduced with Scala
- Function calls – apply, update methods
- Language constructs – Curly braces and higher order functions, Currying
- Pattern matching – Switching, Patterns, Literal Matches, Constructor Matches
- Map & FlatMap – mapping functions
- Monads – Basics, option class
- For comprehensions with flatMap
Part VI – Implementing Scala in Java teams
- Adopting Scala – the most important aspects
- Learning curve with Scala
- Suggestions and best practices
- Translating codes toScala
- Conventions