课程信息
4.5
2,247 ratings
400 reviews
In this course you will learn how to apply the functional programming style in the design of larger applications. You'll get to know important new functional programming concepts, from lazy evaluation to structuring your libraries using monads. We'll work on larger and more involved examples, from state space exploration to random testing to discrete circuit simulators. You’ll also learn some best practices on how to write good Scala code in the real world. Several parts of this course deal with the question how functional programming interacts with mutable state. We will explore the consequences of combining functions and state. We will also look at purely functional alternatives to mutable state, using infinite data structures or functional reactive programming. Learning Outcomes. By the end of this course you will be able to: - recognize and apply design principles of functional programs, - design functional libraries and their APIs, - competently combine functions and state in one program, - understand reasoning techniques for programs that combine functions and state, - write simple functional reactive applications. 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. This course is intended to be taken after Functional Programming Principles in Scala: https://www.coursera.org/learn/progfun1....
Globe

100% 在线课程

立即开始,按照自己的计划学习。
Calendar

可灵活调整截止日期

根据您的日程表重置截止日期。
Intermediate Level

中级

Clock

建议:5 hours/week

完成时间大约为12 小时
Comment Dots

English

字幕:English

您将获得的技能

Reactive ProgrammingFunctional ProgrammingFunctional DesignStreams
Globe

100% 在线课程

立即开始,按照自己的计划学习。
Calendar

可灵活调整截止日期

根据您的日程表重置截止日期。
Intermediate Level

中级

Clock

建议:5 hours/week

完成时间大约为12 小时
Comment Dots

English

字幕:English

教学大纲 - 您将从这门课程中学到什么

1

章节
Clock
完成时间为 8 小时

For Expressions and Monads

We'll start by revisiting some concepts that we have learned from Principles of Functional Programming in Scala; collections, pattern matching, and functions. We'll then touch on for-comprehensions, a powerful way in Scala to traverse a list, process it, and return a new list. We'll see how to do queries with for-comprehensions as well as how the for-comprehension is "desugared" into calls to higher-order functions by the Scala compiler. Finally, we'll discuss what monads are, and how to verify that the monad laws are satisfied for a number of examples....
Reading
10 个视频(共 164 分钟), 11 个阅读材料, 1 个测验
Video10 个视频
Tools Setup for Mac OS X21分钟
Tools for Setup for Windows18分钟
Tutorial: Working on the Programming Assignments8分钟
Recap: Functions and Pattern Matching19分钟
Recap: Collections12分钟
Lecture 1.1 - Queries with For7分钟
Lecture 1.2 - Translation of For11分钟
Lecture 1.3 - Functional Random Generators19分钟
Lecture 1.4 - Monads20分钟
Reading11 个阅读材料
Troubleshooting10分钟
Grading Policy10分钟
Tools Setup10分钟
Sbt Tutorial10分钟
Eclipse Tutorial10分钟
Intellij IDEA Tutorial10分钟
Scala Tutorial10分钟
Cheat Sheet10分钟
Reactive Cheat Sheet10分钟
Scala Style Guide10分钟
Learning Resources10分钟

2

章节
Clock
完成时间为 7 小时

Lazy Evaluation

This week we'll revisit performance issues caused by combinatorial search, and we'll discover an important concept in functional programming that can these issues: laziness. We'll also learn a little bit about proofs on trees; in particular, we'll see how to extend structural induction to trees....
Reading
5 个视频(共 80 分钟), 2 个测验
Video5 个视频
Lecture 2.2 - Streams12分钟
Lecture 2.3 - Lazy Evaluation11分钟
Lecture 2.4 - Computing with Infinite Sequences9分钟
Lecture 2.5 - Case Study: the Water Pouring Problem31分钟

3

章节
Clock
完成时间为 7 小时

Functions and State

This week, we'll learn about state and side-effects. Through a rich example, we'll learn programming patterns for managing state in larger programs. We'll also learn about for-loops and while-loops in Scala....
Reading
6 个视频(共 72 分钟), 2 个测验
Video6 个视频
Lecture 3.2 - Identity and Change8分钟
Lecture 3.3 - Loops8分钟
Lecture 3.4 - Extended Example: Discrete Event Simulation10分钟
Lecture 3.5 - Discrete Event Simulation: API and Usage10分钟
Lecture 3.6 - Discrete Event Simulation: Implementation and Test18分钟

4

章节
Clock
完成时间为 8 小时

Timely Effects

This week we'll learn a number of important programming patterns via examples, starting with the observer pattern, and then going on to functional reactive programming. We'll learn how latency can be modeled as an effect, and how latency can be handled with Scala's monadic futures. We'll learn the important combinators on futures as well as how they can be composed to build up rich and responsive services....
Reading
11 个视频(共 109 分钟), 2 个测验
Video11 个视频
Lecture 4.2 - Functional Reactive Programming20分钟
Lecture 4.3 - A Simple FRP Implementation19分钟
Lecture 4.4 - Latency as an Effect 17分钟
Lecture 4.5 - Latency as an Effect 212分钟
Lecture 4.6 - Combinators on Futures 19分钟
Lecture 4.7 - Combinators on Futures 27分钟
Lecture 4.8 - Composing Futures 14分钟
Lecture 4.9 - Implementation of flatMap on Future3分钟
Lecture 4.10 - Composing Futures 28分钟
Conclusion4分钟
4.5
Direction Signs

41%

完成这些课程后已开始新的职业生涯
Briefcase

83%

通过此课程获得实实在在的工作福利

热门审阅

创建者 RPSep 15th 2016

This is a university degree course which takes enormous effort to complete. But still its beond the programming course range giving you whats not possible to google or learn practical way. Thanks!

创建者 ESMar 18th 2018

Thank you for this exciting course! I did the FP in Scala course a few years ago and decided to do the full certification now. I am looking forward to the next courses in the specialisation.

讲师

Martin Odersky

Professor
Computer Science

关于 École Polytechnique Fédérale de Lausanne

关于 Functional Programming in Scala 专项课程

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....
Functional Programming in Scala

常见问题

  • Once you enroll for a Certificate, you’ll have access to all videos, quizzes, and programming assignments (if applicable). Peer review assignments can only be submitted and reviewed once your session has begun. If you choose to explore the course without purchasing, you may not be able to access certain assignments.

  • 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. If you only want to read and view the course content, you can audit the course for free.

还有其他问题吗?请访问 学生帮助中心