Functional Programming in Scala

4 min read Original article ↗

Specialization - 5 course series

Discover how to write elegant code that works the first time it is run.

This Specialization provides a hands-on introduction to functional programming using the widespread programming language, Scala. It begins from the basic building blocks of the functional paradigm, first showing how to use these blocks to solve small problems, before building up to combining these concepts to architect larger functional programs. You'll see how the functional paradigm facilitates parallel and distributed programming, and through a series of hands on examples and programming assignments, you'll learn how to analyze data sets small to large; from parallel programming on multicore architectures, to distributed programming on a cluster using Apache Spark. A final capstone project will allow you to apply the skills you learned by building a large data-intensive application using real-world data.

Applied Learning Project

Learners will build small to medium size Scala applications by applying knowledge and skills including: functional programming, parallel programming, manipulation of large data sets, higher-order functions, property-based testing, functional reactive programming.

Functional Programming Principles in Scala

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

Category: Scala Programming

Category: Functional Design

Category: Object Oriented Programming (OOP)

Category: Data Structures

Category: Code Reusability

Category: Programming Principles

Category: Computational Logic

Functional Program Design in Scala

What you'll learn

  • Recognize and apply design principles of functional programs

  • Design functional libraries and their APIs

  • Write simple functional reactive applications

  • Understand reasoning techniques for programs that combine functions and state

Skills you'll gain

Category: Scala Programming

Category: Functional Design

Category: Functional Testing

Category: Software Design

Category: Data Structures

Category: Event-Driven Programming

Category: Software Design Patterns

Category: Programming Principles

Category: Performance Tuning

Category: Application Design

Category: Other Programming Languages

Category: Java

Category: Algorithms

Parallel programming

What you'll learn

With every smartphone and computer now boasting multiple processors, the use of functional ideas to facilitate parallel programming is becoming increasingly widespread. In this course, you'll learn the fundamentals of parallel programming, from task parallelism to data parallelism. In particular, you'll see how many familiar ideas from functional programming map perfectly to to the data parallel paradigm. We'll start the nuts and bolts how to effectively parallelize familiar collections operations, and we'll build up to parallel collections, a production-ready data parallel collections library available in the Scala standard library. Throughout, we'll apply these concepts through several hands-on examples that analyze real-world data, such as popular algorithms like k-means clustering.

Skills you'll gain

Category: Algorithms

Category: Data Structures

Category: Scala Programming

Category: Performance Testing

Category: Functional Design

Category: Java Programming

Category: Programming Principles

Category: Other Programming Languages

Category: Performance Tuning

Big Data Analysis with Scala and Spark

What you'll learn

Manipulating big data distributed over a cluster using functional concepts is rampant in industry, and is arguably one of the first widespread industrial uses of functional ideas. This is evidenced by the popularity of MapReduce and Hadoop, and most recently Apache Spark, a fast, in-memory distributed collections framework written in Scala. In this course, we'll see how the data parallel paradigm can be extended to the distributed case, using Spark throughout. We'll cover Spark's programming model in detail, being careful to understand how and when it differs from familiar programming models, like shared-memory parallel collections or sequential Scala collections. Through hands-on examples in Spark and Scala, we'll learn when important issues related to distribution like latency and network communication should be considered and how they can be addressed effectively for improved performance.

Skills you'll gain

Category: Apache Spark

Category: Scala Programming

Category: Data Manipulation

Category: Data Processing

Category: SQL

Category: Distributed Computing

Category: Data Import/Export

Category: Performance Tuning

Category: Apache Hadoop

Category: Big Data

Category: Data Persistence

Functional Programming in Scala Capstone

What you'll learn

In the final capstone project you will apply the skills you learned by building a large data-intensive application using real-world data.

Skills you'll gain

Category: Scala Programming

Category: Data Processing

Category: Spatial Data Analysis

Category: Visualization (Computer Graphics)

Category: Geospatial Mapping

Category: Scientific Visualization

Category: Data Transformation

Category: User Interface (UI)

Category: Data Manipulation

Category: Leaflet (Software)

Category: Big Data

Category: Computer Graphics

Category: Apache Spark

Category: Interactive Data Visualization

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.

Instructors

Martin Odersky

École Polytechnique Fédérale de Lausanne

6 Courses236,911 learners

Prof. Heather Miller

École Polytechnique Fédérale de Lausanne

2 Courses104,870 learners

Offered by