Skip to content

Don’t Use Boolean Flags in Python, Use Policies Instead

ArjanCodes346K subscribers

178,272 views

About this video

Hand-picked by a BrighterTube curator · found via round-3 back catalogue of a channel Lumen picks video by video

Explains problems with boolean function parameters and teaches the Policy pattern as a type-safe alternative. Demonstrates a refactoring technique with concrete example.

Video by ArjanCodes, played through YouTube's embedded player.

Part of Design Patterns