You'll learn to write cleaner, more declarative Python code. This course explores functional patterns like decorators and single dispatch, and masters the powerful match/case statement for complex logic. Your code will become more expressive, easier to read, and simpler to maintain.
Overview
Syllabus
- Unit 1: Decorators Done Right
- Designing a Parameterized Decorator Factory
- Building Your Retry Loop
- Preventing the Thundering Herd Problem
- Taming an Unreliable Service
- Smart Exception Filtering
- Unit 2: Single Dispatch Generic Functions
- Building Your First Generic Function
- Registering Handlers for Multiple Types
- Creating the Serialization Entry Point
- Serializing Real World Data
- Unit 3: Structural Pattern Matching
- Extend the Command Router
- Adding Command Name Flexibility
- Building Conditional User Filters
- Unit 4: Composable Error Handling
- Building Your First Result Mapper
- Chaining Operations That Can Fail
- Decorate Functions for Error Handling
- Build Your Own Result Function
- Chaining Operations Together