When you enroll in this course, you'll also be enrolled in this Specialization.
Learn new concepts from industry experts
Gain a foundational understanding of a subject or tool
Develop job-relevant skills with hands-on projects
Earn a shareable career certificate
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, Netflix, Zalando, 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 of programming projects as homework assignments.
Recommended background: You should have at least one year of 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 background in mathematics (e.g., algebra, logic, proof by induction). Last, you should have some familiarity with 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
Lecture 1.3 - Evaluation Strategies and Termination•5 minutes
Lecture 1.4 - Conditionals and Value Definitions•9 minutes
Lecture 1.5 - Example: square roots with Newton's method•5 minutes
Lecture 1.6 - Blocks and Lexical Scope•8 minutes
Lecture 1.7 - Tail recursion•9 minutes
7 readings•Total 65 minutes
Working on Assignments•5 minutes
Tools Setup (Please read)•10 minutes
Scala 3 REPL and Worksheets•10 minutes
Cheat Sheet•10 minutes
SBT tutorial and Submission of Assignments (Please read)•10 minutes
Learning Resources•10 minutes
Scala Style Guide•10 minutes
7 assignments•Total 210 minutes
Programming Paradigms•30 minutes
Elements of Programming•30 minutes
Evaluation Strategies and Termination•30 minutes
Square roots with Newton's method•30 minutes
Blocks and Lexical Scope•30 minutes
Tail recursion•30 minutes
Learning check-in•30 minutes
3 programming assignments•Total 540 minutes
Example•180 minutes
Recursion•180 minutes
Recursion•180 minutes
Higher Order Functions
Module 2•10 hours to complete
Module details
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.
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
6 videos4 assignments2 programming assignments
Show info about module content
6 videos•Total 58 minutes
Week 3: Introduction•1 minute
Lecture 3.1 - Class hierarchies•17 minutes
Lecture 3.2 - How classes are organized•10 minutes
Lecture 3.3 - Polymorphism•11 minutes
Lecture 3.4-Objects Everywhere•14 minutes
Lecture 3.5-Functions as Objects•5 minutes
4 assignments•Total 120 minutes
Class hierarchies•30 minutes
How classes are organized•30 minutes
Polymorphism•30 minutes
Scala is functional and objected-oriented•30 minutes
2 programming assignments•Total 360 minutes
Object-Oriented Sets•180 minutes
Object-Oriented Sets•180 minutes
Types and Pattern Matching
Module 4•10 hours to complete
Module details
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 videos6 assignments2 programming assignments
Show info about module content
7 videos•Total 69 minutes
Week 4: Introduction•1 minute
Lecture 4.1 - Decomposition•10 minutes
Lecture 4.2 - Pattern Matching•12 minutes
Lecture 4.3 - Lists•11 minutes
Lecture 4.4 - Enums•10 minutes
Lecture 4.5 - Subtyping and Generics•10 minutes
Lecture 4.6 - Variance•16 minutes
6 assignments•Total 180 minutes
Decomposition•30 minutes
Pattern Matching•30 minutes
Lists•30 minutes
Enums•30 minutes
Subtyping and Generics•30 minutes
Variance•30 minutes
2 programming assignments•Total 360 minutes
Huffman Coding•180 minutes
Huffman Coding•180 minutes
Lists
Module 5•3 hours to complete
Module details
This week we dive into Lists, the most commonly-used data structure in Scala.
What's included
6 videos5 assignments
Show info about module content
6 videos•Total 59 minutes
Week 5: Introduction•1 minute
Lecture 5.1 - A Closer Look at Lists•13 minutes
Lecture 5.2 - Tuples and Generic Methods•10 minutes
Lecture 5.3 - Higher-order list functions•11 minutes
Lecture 5.4 - Reduction of Lists•15 minutes
Lecture 5.5 - Reasoning about lists•9 minutes
5 assignments•Total 150 minutes
A Closer Look at Lists•30 minutes
Tuples and Generic Methods•30 minutes
Higher-order list functions•30 minutes
Reduction of Lists•30 minutes
Reasoning about lists•30 minutes
Collections
Module 6•9 hours to complete
Module details
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
7 videos4 assignments2 programming assignments
Show info about module content
7 videos•Total 75 minutes
Week 6: Introduction•1 minute
Lecture 6.1 - Other Collections•12 minutes
Lecture 6.2 - Combinatorial Search and For-Expressions•7 minutes
"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
8,269 reviews
5 stars
83.54%
4 stars
13.51%
3 stars
1.70%
2 stars
0.66%
1 star
0.56%
Showing 3 of 8269
L
LK
5·
Reviewed on Jul 12, 2016
The course is very good and labs are sometimes difficult but useful. However some material was not covered, and it is always like that, but still it can include iterators and some other chapters
G
GS
5·
Reviewed on Sep 17, 2022
The course is very well structured and explained, I enjoyed and learned a lot. At least for me, I needed way more time for understanding the theory and completing the exercises than what estimated.
M
MD
5·
Reviewed on Jan 14, 2017
Content and the lecturing is super. All the assignments makes you think about the subjects. If you want to learn about functional programming and something about scala this is the course for you.
This course covers the latest stable version of Scala. You can find the legacy version of the same course based on Scala 2 here.
When will I have access to the lectures and assignments?
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.
What will I get if I subscribe to this Specialization?
When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
Is financial aid available?
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.