Back to Browse

Mastering Python Refactoring: Simplifying Code with the Dictionary Dispatch Pattern

1.7K views
Sep 4, 2023
12:52

In today's video we look at how to refactor an if-elif-elif...-else statement using the "dictionary dispatch pattern" in Python. 💡 As a bonus we also add some ad hoc testing to the mix and refactor further using the operator module. 😎 --- Learn more about Pybites / what we do: https://pybit.es Get our weekly developer / mindset emails: https://pybit.es/friends/ Join our Slack community: https://pybit.es/community/ And last but not least, we appreciate any feedback to make our YouTube content better 💡 https://form.jotform.com/230941798741062 🙏

Download

1 formats

Video Formats

360pmp418.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Mastering Python Refactoring: Simplifying Code with the Dictionary Dispatch Pattern | NatokHD