This course dives into the intricacies of functional objects in Python, with a focus on functors, currying, and partial application. You'll learn how to harness these powerful concepts to create more modular, reusable, and maintainable code.
Overview
Syllabus
- Lesson 1: Introduction to Currying and Partial Application in Python
- Currying the Multiply Function in Python
- Partial Application for Logging in Python
- Debugging Curried Multiply Function in Python
- Partial Application to Calculate Cost with Tax
- Curried Function for String Concatenation
- Lesson 2: Advanced Currying Techniques in Python
- Creating a Curried Function for Basic Mathematical Operations
- Curried Server Configuration Task
- Curried Function to Calculate Total Cost
- Adding a Timestamp to Curried log_message Function
- Lesson 3: Creating Callable Objects in Python
- Creating a YoungerThan Callable Object in Python
- Filtering Numbers Within a Range Using Callable Objects
- DivisibleBy Callable Object Task
- Creating a Callable Class to Multiply List Elements
- Creating Callable Objects for Filtering and Transforming Lists
- Lesson 4: Advanced Functional Programming with Callable Objects in Python
- Increasing Item Prices Using Callable Objects
- Filter Persons by Age Using Callable Objects
- Increasing Health Points with Callable Classes