• For Individuals
  • For Businesses
  • For Universities
  • For Governments
Coursera
Log In
Join for Free
Coursera
École Polytechnique Fédérale de Lausanne
Functional Programming Principles in Scala (Scala 2 version)
  • About
  • Modules
  • Recommendations
  • Testimonials
  • Reviews
  1. Browse
  2. Computer Science
  3. Software Development
École Polytechnique Fédérale de Lausanne

Functional Programming Principles in Scala (Scala 2 version)

Martin Odersky

Instructor: Martin Odersky

8,037 already enrolled

Included with Coursera Plus

•

Learn more

6 modules
Gain insight into a topic and learn the fundamentals.
4.8

(64 reviews)

Intermediate level

Recommended experience

Recommended experience

Intermediate level

At least one year of programming (in any language)

4 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

6 modules
Gain insight into a topic and learn the fundamentals.
4.8

(64 reviews)

Intermediate level

Recommended experience

Recommended experience

Intermediate level

At least one year of programming (in any language)

4 weeks to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
  • About
  • Modules
  • Recommendations
  • Testimonials
  • Reviews

What you'll learn

  • Understand the principles of functional programming

  • Write purely functional programs, using recursion, pattern matching, and higher-order functions

  • Design immutable data structures

  • Combine functional programming with objects and classes

Skills you'll gain

  • Computer Programming Tools
  • Algorithms
  • Object Oriented Programming (OOP)
  • Functional Design
  • Programming Principles
  • Data Structures
  • Scala Programming
  • Integrated Development Environments

Details to know

Shareable certificate

Add to your LinkedIn profile

Assessments

1 assignment

Taught in English

See how employees at top companies are mastering in-demand skills

Learn more about Coursera for Business
 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

There are 6 modules in this course

Functional programming is becoming increasingly widespread in industry. This trend is driven by the adoption of Scala as the main programming language for many applications. Scala fuses functional and object-oriented programming in a practical package. It interoperates seamlessly with both Java and Javascript. Scala is the implementation language of many important frameworks, including Apache Spark, Kafka, and Akka. It provides the core infrastructure for sites such as Twitter, Tumblr and also Coursera.

In this course you will discover the elements of the functional programming style and learn how to apply them usefully in your daily programming tasks, such as modeling business domains or implementing business logic. You will also develop a solid foundation for reasoning about functional programs, by touching upon proofs of invariants and the tracing of execution symbolically. The course is hands on; most units introduce short programs that serve as illustrations of important concepts and invite you to play with them, modifying and improving them. The course is complemented by a series programming projects as homework assignments. Recommended background: You should have at least one year programming experience. Proficiency with Java or C# is ideal, but experience with other languages such as C/C++, Python, Javascript or Ruby is also sufficient. You should have some familiarity using the command line.

Get up and running with Scala on your computer. Complete an example assignment to familiarize yourself with our unique way of submitting assignments. In this week, we'll learn the difference between functional imperative programming. We step through the basics of Scala; covering expressions, evaluation, conditionals, functions, and recursion

What's included

11 videos7 readings1 assignment3 programming assignments

11 videos•Total 139 minutes
  • Course Introduction•2 minutes
  • Tools Setup for Linux•22 minutes
  • Tools Setup for Mac OS X•21 minutes
  • Tools Setup for Windows•18 minutes
  • Lecture 1.1 - Programming Paradigms•14 minutes
  • Lecture 1.2 - Elements of Programming•14 minutes
  • Lecture 1.3 - Evaluation Strategies and Termination•4 minutes
  • Lecture 1.4 - Conditionals and Value Definitions•8 minutes
  • Lecture 1.5 - Example: square roots with Newton's method•11 minutes
  • Lecture 1.6 - Blocks and Lexical Scope•8 minutes
  • Lecture 1.7 - Tail Recursion•12 minutes
7 readings•Total 70 minutes
  • Tools Setup (Please read)•10 minutes
  • Cheat Sheet•10 minutes
  • IntelliJ IDEA Tutorial•10 minutes
  • SBT tutorial and Submission of Assignments (Please read)•10 minutes
  • Learning Resources•10 minutes
  • Scala Tutorial•10 minutes
  • Scala Style Guide•10 minutes
1 assignment•Total 30 minutes
  • Learning check-in•30 minutes
3 programming assignments•Total 540 minutes
  • Example Assignment•180 minutes
  • Recursion•180 minutes
  • Recursion•180 minutes

This week, we'll learn about functions as first-class values, and higher order functions. We'll also learn about Scala's syntax and how it's formally defined. Finally, we'll learn about methods, classes, and data abstraction through the design of a data structure for rational numbers.

What's included

7 videos2 programming assignments

7 videos•Total 83 minutes
  • Lecture 2.1 - Higher-Order Functions•10 minutes
  • Lecture 2.2 - Currying•14 minutes
  • Lecture 2.3 - Example: Finding Fixed Points•10 minutes
  • Lecture 2.4 - Scala Syntax Summary•4 minutes
  • Lecture 2.5 - Functions and Data•11 minutes
  • Lecture 2.6 - More Fun With Rationals•15 minutes
  • Lecture 2.7 - Evaluation and Operators•16 minutes
2 programming assignments•Total 360 minutes
  • Functional Sets•180 minutes
  • Functional Sets•180 minutes

This week, we'll cover traits, and we'll learn how to organize classes into hierarchies. We'll cover the hierarchy of standard Scala types, and see how to organize classes and traits into packages. Finally, we'll touch upon the different sorts of polymorphism in Scala.

What's included

3 videos2 programming assignments

3 videos•Total 66 minutes
  • Lecture 3.1 - Class Hierarchies•24 minutes
  • Lecture 3.2 - How Classes Are Organized•20 minutes
  • Lecture 3.3 - Polymorphism•21 minutes
2 programming assignments•Total 360 minutes
  • Object-Oriented Sets•180 minutes
  • Object-Oriented Sets•180 minutes

This week we'll learn about the relationship between functions and objects in Scala; functions *are* objects! We'll zoom in on Scala's type system, covering subtyping and generics, and moving on to more advanced aspects of Scala's type system like variance. Finally, we'll cover Scala's most widely used data structure, Lists, and one of Scala's most powerful tools, pattern matching.

What's included

7 videos2 programming assignments

7 videos•Total 117 minutes
  • Lecture 4.1 - Objects Everywhere•19 minutes
  • Lecture 4.2 - Functions as Objects•8 minutes
  • Lecture 4.3 - Subtyping and Generics•15 minutes
  • Lecture 4.4 - Variance (Optional)•21 minutes
  • Lecture 4.5 - Decomposition•16 minutes
  • Lecture 4.6 - Pattern Matching•19 minutes
  • Lecture 4.7 - Lists•16 minutes
2 programming assignments•Total 360 minutes
  • Huffman Coding•180 minutes
  • Huffman Coding•180 minutes

This week we dive into Lists, the most commonly-used data structure in Scala.

What's included

7 videos

7 videos•Total 88 minutes
  • Lecture 5.1 - More Functions on Lists•13 minutes
  • Lecture 5.2 - Pairs and Tuples•10 minutes
  • Lecture 5.3 - Implicit Parameters•11 minutes
  • Lecture 5.4 - Higher-Order List Functions•14 minutes
  • Lecture 5.5 - Reduction of Lists•15 minutes
  • Lecture 5.6 - Reasoning About Concat•13 minutes
  • Lecture 5.7 - A Larger Equational Proof on Lists•9 minutes

After a deep-dive into Lists, this week we'll explore other data structures; vectors, maps, ranges, arrays, and more. We'll dive into Scala's powerful and flexible for-comprehensions for querying data.

What's included

6 videos2 programming assignments

6 videos•Total 98 minutes
  • Lecture 6.1 - Other Collections•20 minutes
  • Lecture 6.2 - Combinatorial Search and For-Expressions•13 minutes
  • Lecture 6.3 - Combinatorial Search Example•16 minutes
  • Lecture 6.4 - Maps•22 minutes
  • Lecture 6.5 - Putting the Pieces Together•20 minutes
  • Conclusion•4 minutes
2 programming assignments•Total 360 minutes
  • Anagrams•180 minutes
  • Anagrams•180 minutes

Instructor

Instructor ratings

Instructor ratings

We asked all learners to give feedback on our instructors based on the quality of their teaching style.

4.8 (23 ratings)
Martin Odersky
Martin Odersky
École Polytechnique Fédérale de Lausanne
6 Courses•235,094 learners

Offered by

École Polytechnique Fédérale de Lausanne

Offered by

École Polytechnique Fédérale de Lausanne

Explore more from Software Development

  • Status: Free Trial
    Free Trial
    É

    École Polytechnique Fédérale de Lausanne

    Functional Programming Principles in Scala

    Course

  • Status: Preview
    Preview
    É

    École Polytechnique Fédérale de Lausanne

    Functional Program Design in Scala (Scala 2 version)

    Course

  • Status: Free Trial
    Free Trial
    É

    École Polytechnique Fédérale de Lausanne

    Functional Programming in Scala

    Specialization

  • Status: Free Trial
    Free Trial
    É

    École Polytechnique Fédérale de Lausanne

    Functional Program Design in Scala

    Course

Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

Learner reviews

4.8

64 reviews

  • 5 stars

    81.25%

  • 4 stars

    17.18%

  • 3 stars

    1.56%

  • 2 stars

    0%

  • 1 star

    0%

Showing 3 of 64

L
LK
5

Reviewed on Dec 16, 2022

The course gives a much deeper understanding than a basic course on Scala. It's from the Scala creator himself.Martin is the best

D
DP
5

Reviewed on Nov 27, 2021

A bit academic at times but that is the nature of scala

B
BM
5

Reviewed on Feb 12, 2023

Wow, this course was amazing and very interesting!

View more reviews
Coursera Plus

Open new doors with Coursera Plus

Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Learn more

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Explore degrees

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Learn more

Frequently asked questions

This course uses Scala 2. You can find a more recent version of the same course based on the latest stable version of Scala hereOpens in a new tab.

To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.

When you purchase a Certificate you get access to all course materials, including graded assignments. Upon completing the course, your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.

You will be eligible for a full refund until two weeks after your payment date, or (for courses that have just launched) until two weeks after the first session of the course begins, whichever is later. You cannot receive a refund once you’ve earned a Course Certificate, even if you complete the course within the two-week refund period. See our full refund policy.

Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.

More questions

Visit the learner help center

Financial aid available,

Coursera Footer

Skills

  • Artificial Intelligence (AI)
  • Cybersecurity
  • Data Analytics
  • Digital Marketing
  • English Speaking
  • Generative AI (GenAI)
  • Microsoft Excel
  • Microsoft Power BI
  • Project Management
  • Python

Certificates & Programs

  • Google Cybersecurity Certificate
  • Google Data Analytics Certificate
  • Google IT Support Certificate
  • Google Project Management Certificate
  • Google UX Design Certificate
  • IBM Data Analyst Certificate
  • IBM Data Science Certificate
  • Machine Learning Certificate
  • Microsoft Power BI Data Analyst Certificate
  • UI / UX Design Certificate

Industries & Careers

  • Business
  • Computer Science
  • Data Science
  • Education & Teaching
  • Engineering
  • Finance
  • Healthcare
  • Human Resources (HR)
  • Information Technology (IT)
  • Marketing

Career Resources

  • Career Aptitude Test
  • Examples of Strengths and Weaknesses for Job Interviews
  • High-Income Skills to Learn
  • How Does Cryptocurrency Work?
  • How to Highlight Duplicates in Google Sheets
  • How to Learn Artificial Intelligence
  • Popular Cybersecurity Certifications
  • Preparing for the PMP Certification
  • Signs You Will Get the Job After an Interview
  • What Is Artificial Intelligence?

Coursera

  • About
  • What We Offer
  • Leadership
  • Careers
  • Catalog
  • Coursera Plus
  • Professional Certificates
  • MasterTrack® Certificates
  • Degrees
  • For Enterprise
  • For Government
  • For Campus
  • Become a Partner
  • Social Impact
  • Free Courses
  • ECTS Credit Recommendations

Community

  • Learners
  • Partners
  • Beta Testers
  • Blog
  • The Coursera Podcast
  • Tech Blog

More

  • Press
  • Investors
  • Terms
  • Privacy
  • Help
  • Accessibility
  • Contact
  • Articles
  • Directory
  • Affiliates
  • Modern Slavery Statement
  • Do Not Sell/Share
Learn Anywhere
Download on the App Store
Get it on Google Play
Logo of Certified B Corporation
© 2025 Coursera Inc. All rights reserved.
  • Coursera Facebook
  • Coursera Linkedin
  • Coursera Twitter
  • Coursera YouTube
  • Coursera Instagram
  • Coursera TikTok
Coursera

Welcome back

​
Your password is hidden
​

or

New to Coursera?


Having trouble logging in? Learner help center

This site is protected by reCAPTCHA Enterprise and the Google Privacy Policy and Terms of Service apply.