Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Scala Intermediate Recipes
Rating: 4.6 out of 5(10 ratings)
78 students

Scala Intermediate Recipes

Delve into Scala's more powerful features with some easy tricks
Last updated 3/2018
English
English [Auto],

What you'll learn

  • Use Pattern matching to write safe code
  • Create advanced functionalities in your code using patterns
  • Learn to test your code using the spec2 library
  • Incorporate Functional Programming in your code
  • Tips and tricks to add more functionality in your programs

Course content

4 sections19 lectures4h 4m total length
  • The Course Overview3:06

    This video provides an overview of the entire course.

  • Basic Pattern Matching18:45
    In this video, we will review and understand the basics of pattern matching, including nested matches and alternates.
  • Pattern Matching Collections12:11
    In this video, we will learn about the ways that pattern matching interacts with Seq, List, and vararg
  • Case Classes16:02

    This video will help us understand case classes and how they interact with pattern matches.

  • Try/Catch Statements and Pattern Matching16:54
    In this video, we will learn how try/catch statements leverage pattern matching in Scala
  • PartialFunctions11:04
    In this video, we will understand how PartialFunctions leverage pattern matching to declare functions that don’t respond over their whole input range, and how to combine functions like this together
  • Custom Match Patterns16:13

    In this video, we will learn to create custom matchers for use inside pattern matches.

Requirements

  • Basics of Scala programming

Description

Now that we have the easy stuff out of the way, we take delve into some of Scala's more powerful features. Pattern matching is Scala's tremendous ability to deconstruct data in intuitive and readable ways, letting you write safely in a few lines of code what other languages can take tens of buggy lines to get across. We'll explore the various ways that patterns can be used, as well as some of the more advanced functionality that they hide. A quick detour into testing will introduce the specs2 library and how to use it to do behavior-driven development in Scala. Then we'll dig into Scala's collections some more; Scala's collections library is vast, and holds many powerful tools for dealing with data. Finally, we'll go through a few tricks that let you get readable and type-safe frameworks in place to describe your domain.

About the Author

Antonio Salazar Cardozo is a developer who has led small teams from his classes at Georgia Tech and through each company he has contributed to. He is a software pragmatist and perfectionist who values great software that is written for humans first, and loves to help teams find the development and interaction styles that make them deliver the best software to solve the problems they are solving. Between startups and larger companies, he has worked on most aspects of web and non-web systems, and loves to see how each piece of software is received and how it can improve. When he's not leaving honest, extensive code review, he's been known to travel and enjoys visiting both new and old places far from home.

Who this course is for:

  • This video course targets Java developers, budding data scientists, and web developers who know the basics of Scala programming and now want to overcome various obstacles in their quest to build robust applications in Scala.