Python / Maintainable systems

Python β€” Maintainable systems

Design behavioral interfaces, manage lazy and concurrent work, measure costs, and protect package boundaries.

6 lessons Β· No account required

What you will learn

  • Design behavioral interfaces, manage lazy and concurrent work, measure costs, and protect package boundaries.
  1. Protocols, special methods, and type contracts

    Design interfaces around required behavior, distinguish static promises from runtime validation, and implement special methods with consistent semantics.

    Start learning
  2. Generators, delegation, and bounded streams

    Build lazy producers, understand suspension and cleanup, and make backpressure and resource ownership visible in streaming designs.

    Start learning
  3. Decorators and resource contexts

    Wrap behavior without losing function contracts, and express resource acquisition and cleanup with reliable context boundaries.

    Start learning
  4. Async, threads, processes, and the GIL

    Choose concurrency by workload, manage task lifetimes, and distinguish CPython build behavior from universal language guarantees.

    Start learning
  5. Profiling, algorithmic cost, and memory

    Measure representative work, distinguish time from retained memory, and improve the dominant cost without changing the behavioral contract.

    Start learning
  6. Maintainable packages, safe boundaries, and APIs

    Design a small stable public API, package it deliberately, and treat external data and process execution as explicit trust boundaries.

    Start learning
Back to course