Explore >> Select a destination


You are here

blog.dscpl.com.au
| | blog.nuculabs.de
14.5 parsecs away

Travel
| | Hello, In this short article I would like to talk about context managers. I personally consider that at the core they are just a form of decorators. If you don't know what a decorator is check the Decorator Pattern Wikipedia article. Decorators can be used to implement cross-cutting concerns. We have componentA and we need logging and security, we could write the logic for logging and security handling in componentA but some people consider component a should be componentA not componentAthatAlsoKnowsAboutSecurityAndOtherStuff. Since it's not the component's responsibility to authorize requests or log calls to a external logging service, we can wrap the componentA into a decorator that does just that.
| | curiosityhealsthecat.blogspot.com
15.1 parsecs away

Travel
| | This is not yet another explanation of decorators. There are a lot of people who have done a great job of explaining it. What this post is a...
| | www.pmatiello.me
15.8 parsecs away

Travel
| | Implementing interface contracts in Python with class decorators
| | blog.martinig.ch
92.0 parsecs away

Travel
| Informations and opinions about software architecture, developers on call, holacracy, Scrum, continuous testing, product management, saying thank you, tech leadership, customer journey maps, code reviews, code sharing, good bugs, android testing and open source project management.