Oreilly - Functional Programming with Python
by | Released November 2015 | ISBN: 9781771374651
In this Functional Programming with Python training course, expert author Chris Armstrong will teach you functional programming techniques for making maintainable, modular, and testable code. This course is designed for users that already have experience with Python.You will start by learning about functional programming, including first class functions, recursion, and modifying data structures. From there, Chris will teach you about many functional programming libraries available in the Python ecosystem. This video tutorial will then teach you how to implement a text adventure game using these techniques and libraries. You will also learn how to write unit tests for functional code, use imperative libraries in a functional way, and use first-class effects. Finally, you will create a web UI for the game, and learn how to isolate an imperative web framework so that all of the application logic remains purely functional.Once you have completed this computer based training course, you will have learned how to apply these functional programming techniques to create maintainable, modular, and testable Python code. Show and hide more Publisher resources Download Example Code
- Introduction
- Introduction 00:01:49
- Libraries And Setting Up Our Environment 00:01:44
- About The Author 00:00:37
- Functional Programming
- What Is Functional Programming? 00:04:09
- Why Functional Programming? 00:11:12
- First-Class Functions 00:01:35
- Recursion 00:04:32
- Higher-Order Functions 00:07:07
- Modifying Data Structures 00:02:31
- A Tour Of FP Libraries
- Immutable Data Structures: Introduction To Pyrsistent 00:05:22
- Immutable Data Structures: How Pyrsistent Works 00:04:34
- Toolz: A Functional Standard Library 00:07:34
- Hypothesis: Property-Based Testing 00:05:51
- Effect: Isolation Of Side Effects 00:06:54
- Implementing A Game
- Writing A Game: Interactive Fiction 00:01:49
- Implementing A Text Adventure 00:04:57
- Adding A Challenge To Our Game - Part 1: Props And Inventory 00:06:48
- Adding A Challenge To Our Game - Part 2: Lock And Key 00:06:12
- Testing
- Writing Unit Tests For Our Simulation Code 00:04:52
- Stateful Testing With Hypothesis 00:04:19
- Testing Our Game With Hypothesis 00:07:12
- User Interface
- Creating A Text-Based UI 00:05:24
- Testing Effects With Mocks 00:05:56
- Integrating With An Imperative Third-Party Library
- Using An Imperative Library: SQLite 00:03:25
- Using An Imperative Library: Storing And Loading Data 00:04:20
- Refactoring Imperative Code 00:03:30
- Adding Storage To The Game Loop 00:07:45
- First-Class Effects
- The Desire For First-Class Effects 00:03:31
- Making Our Imperative Shell Pure 00:04:31
- Performing Effects 00:02:18
- Testing Effects 00:06:28
- Creating Custom Intents 00:05:30
- Web UI
- Introduction To Flask 00:05:01
- Making Flask Functional 00:06:25
- A Functional Web UI For Our Game 00:06:11
- Conclusion
- Wrapping Up And What To Do Next 00:01:55
Show and hide more