- Level Professional
- المدة 45 ساعات hours
- الطبع بواسطة École Polytechnique Fédérale de Lausanne
-
Offered by
عن
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.الوحدات
Getting Started
- Example Assignment
4
Videos
- Course Introduction
- Tools Setup for Linux
- Tools Setup for Mac OS X
- Tools Setup for Windows
7
Readings
- Tools Setup (Please read)
- Cheat Sheet
- IntelliJ IDEA Tutorial
- SBT tutorial and Submission of Assignments (Please read)
- Learning Resources
- Scala Tutorial
- Scala Style Guide
Functions & Evaluation
- Recursion
- Recursion
1
Assignment
- Learning check-in
7
Videos
- Lecture 1.1 - Programming Paradigms
- Lecture 1.2 - Elements of Programming
- Lecture 1.3 - Evaluation Strategies and Termination
- Lecture 1.4 - Conditionals and Value Definitions
- Lecture 1.5 - Example: square roots with Newton's method
- Lecture 1.6 - Blocks and Lexical Scope
- Lecture 1.7 - Tail Recursion
Higher Order Functions
- Functional Sets
- Functional Sets
7
Videos
- Lecture 2.1 - Higher-Order Functions
- Lecture 2.2 - Currying
- Lecture 2.3 - Example: Finding Fixed Points
- Lecture 2.4 - Scala Syntax Summary
- Lecture 2.5 - Functions and Data
- Lecture 2.6 - More Fun With Rationals
- Lecture 2.7 - Evaluation and Operators
Data and Abstraction
- Object-Oriented Sets
- Object-Oriented Sets
3
Videos
- Lecture 3.1 - Class Hierarchies
- Lecture 3.2 - How Classes Are Organized
- Lecture 3.3 - Polymorphism
Types and Pattern Matching
- Huffman Coding
- Huffman Coding
7
Videos
- Lecture 4.1 - Objects Everywhere
- Lecture 4.2 - Functions as Objects
- Lecture 4.3 - Subtyping and Generics
- Lecture 4.4 - Variance (Optional)
- Lecture 4.5 - Decomposition
- Lecture 4.6 - Pattern Matching
- Lecture 4.7 - Lists
Lists
7
Videos
- Lecture 5.1 - More Functions on Lists
- Lecture 5.2 - Pairs and Tuples
- Lecture 5.3 - Implicit Parameters
- Lecture 5.4 - Higher-Order List Functions
- Lecture 5.5 - Reduction of Lists
- Lecture 5.6 - Reasoning About Concat
- Lecture 5.7 - A Larger Equational Proof on Lists
Collections
- Anagrams
- Anagrams
6
Videos
- Lecture 6.1 - Other Collections
- Lecture 6.2 - Combinatorial Search and For-Expressions
- Lecture 6.3 - Combinatorial Search Example
- Lecture 6.4 - Maps
- Lecture 6.5 - Putting the Pieces Together
- Conclusion
Auto Summary
Functional Programming Principles in Scala is a hands-on course designed for IT and Computer Science professionals. Taught by Coursera, it covers the essentials of functional programming using Scala, a language that blends functional and object-oriented programming. Over 2700 minutes, you'll learn to apply functional programming to real-world tasks, supported by practical projects and assignments. Ideal for those with at least a year of programming experience, especially in Java or C#. Subscription options include Starter and Professional plans.

Martin Odersky