Skip to main content

Introduction to Scala

Begin your journey with Scala, a popular language for scalable applications and data engineering infrastructure.

Start Course for Free
3 Hours13 Videos46 Exercises17,348 Learners3700 XPData Engineer Track

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

Get an introduction to the programming language Scala. You'll learn why and how companies like Netflix, Airbnb, and Morgan Stanley are choosing Scala for large-scale applications and data engineering infrastructure. You'll learn the basics of the language, including syntax and style, focusing on the most commonly used features in the Scala standard library. You'll learn by writing code for a real program that plays a computer version of the popular card game Twenty-One. You’ll get a taste of the value of a hybrid object-oriented and functional programming language, of which Scala is the foremost example. We recommend this course for learners with intermediate-level programming experience, which can be acquired in the listed prerequisites.

  1. 1

    A Scalable Language


    Welcome to Scala! You'll learn what Scala is, who uses it, and why you should use it. You'll explore four common data types: integers, floating-point numbers, logical values, and text, using the Scala interpreter.

    Play Chapter Now
    A scalable language
    50 xp
    What is Scala?
    100 xp
    Why use Scala?
    100 xp
    Who uses Scala?
    50 xp
    Scala code and the Scala interpreter
    50 xp
    What makes Scala scalable?
    100 xp
    Scala is object-oriented
    100 xp
    Reasons for programming in Scala
    50 xp
    Immutable variables (val) and value types
    50 xp
    Define immutable variables (val)
    100 xp
    Don't try to change me
    100 xp
    Mutable variables (var) and type inference
    50 xp
    Define mutable variables (var)
    100 xp
    You can change me
    100 xp
    Pros and cons of immutability
    100 xp
  2. 2

    Workflows, Functions, Collections

    Discover two more ways of writing Scala code (writing a script and building an application) and popular tools that make writing these programs easier. Then, learn what functions do and how to use them, and structure your data using the Array and List collections.

    Play Chapter Now

In the following tracks

Data Engineer


adriansotoAdrián Soto


Intermediate Python
David Venturi Headshot

David Venturi

Data Science Educator

David graduated from Queen's University with a dual degree in Chemical Engineering and Economics. After working for a year, he discovered online education (in the early MOOC era) and became enamored with its potential. He has since created content to help people navigate the space, including a DIY data science master's program, Class Central's Data Science Career Guide, courses for Udacity's Data Analyst Nanodegree program, and several DataCamp courses and projects. Visit his website to say hi!
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA