Scala for Python Developers
This track introduces Scala to learners with a Python background, focusing on its JVM ecosystem, functional programming, and type system. It covers Scala syntax, collections, pattern matching, and integration with Java libraries. Ideal for developers expanding beyond Python into multi-paradigm languages. By the end, you'll read and write idiomatic Scala and understand its role in modern software.
Lesson outline
-
25
Read and Write Files in Scala
Learn to read and write files using Scala in this hands-on tutorial for Python developers. Master file I/O with practical examples and clear explanations.
-
26
Scala Lazy Evaluation
Explore Scala's lazy evaluation and how it defers computation until needed. Learn through examples and see how it compares to Python's generators.
-
27
Multiple Parameter Lists
Learn to define functions with multiple parameter lists in Scala for Python developers. Master currying and partial application in this hands-on tutorial.
-
28
Default and Named Arguments
Master Scala's default and named arguments for cleaner function calls, leveraging your Python knowledge. This lesson covers syntax, benefits, and practical examples, plus troubleshooting tips.
-
29
Avoid Nulls with Option Types
Learn how Scala's Option type eliminates null-pointer errors by explicitly handling absent values. This lesson covers when to use Some or None, pattern matching, and practical examples for Python developers.
-
30
Pattern Matching Guards
Learn how to use pattern matching with guards in Scala, perfect for Python developers. Step-by-step tutorial with hands-on examples, troubleshooting, and next steps.
-
31
Map flatMap and for-comprehensions
Map flatMap and for-comprehensions for Options — Scala for Python Developers. Learn to chain transformations safely and write clean code with for-comprehensions.
-
32
Algebraic Data Types in Scala
Learn algebraic data types in Scala for Python developers: what they are, how they work, and how to use them in practice.
-
33
Model Domain with Sealed Traits
Learn to model domains with sealed traits in Scala, a key concept for type-safe design. This lesson for Python developers covers the problem it solves, core mental models, step-by-step implementation, hands-on exercises, and troubleshooting. By the end, you'll understand how sealed traits enable exhaustive pattern matc
-
34
Pattern Matching on Sealed Traits
Learn to use pattern matching on sealed traits in Scala. This lesson covers sealed traits, exhaustive matching, and how they work for Python developers.
-
35
Implicit Parameters & Conversions
Learn to use implicit parameters and conversions in Scala for Python developers. Understand the core concept, step-by-step application, and troubleshooting in this lesson from the Scala for Python Developers track.
-
36
Define Type Classes With Implicits
Learn how to define type classes with implicits in Scala. This lesson for Python developers covers the core concept, hands-on steps, and troubleshooting.
Scala for Python Developers — step-by-step tutorials
What you will find here
This track walks through scala for python developers in order — each lesson is server-rendered HTML you can read without JavaScript. Follow the outline, then practice in the browser IDE when a lesson links to runnable code.
Tutorials vs quizzes and code samples
Tutorials teach in sequence. For quick checks use quizzes. For copy-paste snippets see code samples. For deeper reading browse articles.