Explore >> Select a destination


You are here

thepythoncorner.com
| | florimond.dev
4.2 parsecs away

Travel
| | A memo on implementing parametrized decorators whose default behavior doesn't require empty parentheses.
| | aaronluna.dev
4.2 parsecs away

Travel
| | Decorators can be a daunting topic when first encountered. While the Zen of Python states "There should be one- and preferably only one -obvious way to do it", there are many, equally valid ways to implement the same decorator. These different methods can be categorized as either function-based, class-based, or a hybrid of both. In this post I will explain the design and behavior of Python decorators and provide examples of decorators that I frequently use in my own code.
| | simeonfranklin.com
2.5 parsecs away

Travel
| | Simeon Franklin - Web Developer
| | sandroroth.com
31.4 parsecs away

Travel
| Reducers are not only useful for global state management. They can also be used for local component state. And compared to plain useReducer() we can reduce boilerplate code by adapting the API of modern reducer libraries like Redux Toolkit (RTK).