Programming with Scala
Public courses
£2100
Private courses
Price set individually
About the training
This training was created for programming teams who are considering using Scala. The authors of the training expect from participants the basic knowledge of programming languages but not necesserily Java. Our training is a perfect introduction to the Scala. Participants will learn the advanced concepts that are connected with this language of programming. We pay a lot of attention to the practical aspects and thanks to that you will be able to use Scala as soon as you finish the training.
Scala is a language which makes use of object-oriented programming – especially functional programming – while preserving the simplicity and brevity of the code. The scalability, integration with Java, expressive syntax and a number of advanced functions are only a few features of Scala. Numerous leading companies using it on a daily basis is just another proof of its usefulness.
Who is this training for?
- Developers
- Java Programmers
What will I learn?
- Learn all important features of the Scala syntax
- New programming elements not available in other languages
- The most important components of the Scala language such as conditional execution, loops, variables, system types, classes and methods
- Learn how to compile programs in Scala
- Integrate Scala with Java and get the best of two languages
- Learn frameworks for development of applications like big data systems
- Good programming practices in line with functional programming paradigm
- Learn Akka and start developing powerful applications
Course outline
- Introduction to Scala
- Scala as a hybrid language – functional meets object orientation
- Object-oriented programming
- Functional Programming
- Scala Environment
- Scala IDE, Shell
- Scala REPL
- Compilation and program execution
- Classes and Objects
- Classes – constructors,definitions, variables, methods, parameters, inheritance
- Objects – constructors, declaration, inheritance
- Methods – method declaration, invocation, parameters
- Basic types and operators
- Basic types
- Literals
- Operators are methods
- Arithmetic operators
- Logic and relational operators
- Bitwise operations
- Order of precedence
- Control structures
- Conditional expressions
- Nesting ifs
- For, While expressions
- Exception handling
- Try catch construct
- Scope
- Packages
- Constructing packages, options, access to package code
- Imports and options
- Package objects
- Scope rules
- Package visibility
- Functions
- Function refresher
- Functions as Methods/Values
- Anonymous functions
- Higher order functions
- Closures
- Currying
- Control abstractions
- Traits
- Traits as interfaces
- Trait construction order
- Multiple Inheritance
- Trait members and traits with implementations
- Abstract fields in traits
- Traits extending classes
- Pattern Matching
- Basic Pattern matching – any type, matching in lists
- Variables in patterns
- Matching arrays, lists and tuples
- Patterns in variable declarations
- Matching nested classes
- Collections Framework
- Mutable vs immutable collections
- Sequences, Lists, Sets, Maps, Tuples
- Operators for managing elements
- Common methods
- Interoperability with Java collection
- New concepts in Scala
- Implicit conversions and parameters
- Annotations
- Type declarations
- Lazy evaluation
- Actors
- The components of Actors
- Creating actors
- Life cycles
- Child Actors
- Akka Actor API
- Futures
- Dispatchers
- XML Processing
- Description of XML
- XML in Scala
- Serialization and Desarialization
- XML literals
- Loading and Saving
- Pattern Matching
- Testing
- Types of tests
- Runtime tests in Scala
- Libraries for testing– ScalaTest, Spec, ScalaCheck
- Testing Framework Scalatest
- Java interoperability
- Using Java in Scala code
- Java and Scala generics
- JavaBeans specification compliant Scala classes
- JavaBean properties
- Inheritance
- Compiling Scala and Java together
- Application design
- Simple Build tool – SBT
- Scala and Maven
- Web frameworks – Lift, Play2



