Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Functional Patterns and Pattern Matching in Python

via CodeSignal

Overview

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.

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

Reviews

Start your review of Functional Patterns and Pattern Matching in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.