Introduction to Scala

Introduction to Scala

1h 41mBeginner2022-03-11

Authors

Amina Adewusi

Amina Adewusi

Software Engineer

Course details

Scala has become an increasingly popular programming language ever since it was publicly released in 2004. Designed in part to improve on some of the weaknesses of Java, Scala requires less code and supports both object-oriented programming and functional programming. And while Scala and Java are interoperable, you don’t need any knowledge of Java to run Scala. This course with Amina Adewusi is aimed at programming beginners who have only basic programming experience. Amina provides a broad and friendly introduction to some of Scala’s features that will set a foundation for more advanced lessons. She details everything you need to write Scala code and run it locally; examines values and types, functions, and control flows; looks at domain modeling; and explores Scala’s collection types. If you’re just starting on your programming journey, join Amina to see if Scala is right for you.

Skills covered

ScalaLearningProgramming LanguagesOpen SourceSoftware Development

Concepts

Introduction

  • Get functional with Scala 3
  • What you should know
  • Big picture - What is Scala
  • Install IntelliJ for Mac
  • Install Scala on a Mac
  • Install IntelliJ for Windows
  • Install Scala on Windows
  • Use the exercise files
  • Verify your installation

Our First Scala Project

  • Create a new Scala project
  • Understand the basic structure of a Scala project
  • Challenge - Hello world
  • Solution - Hello world

First Scala Function

  • Values and types
  • How to define a function
  • Challenge - Greeting
  • Solution - Greeting

Control Structures

  • If-else statements
  • Pattern matching
  • Challenge - Print the numbers of multiples
  • Solution - Print the numbers of multiples

Collections

  • Case classes
  • Enums
  • Enums with parameters
  • Challenge - Class and enums
  • Solution - Class and enums

Options

  • Introduction to options
  • The map function
  • Flat map
  • For comprehensions
  • Challenge - Options
  • Solution - Options

Lists

  • Introduction to lists
  • The map function on lists
  • Flat map on lists
  • For comprehensions on lists
  • Challenge - Lists
  • Solution - Lists

Conclusion

  • Next steps
40,000 Toman