Explore >> Select a destination


You are here

curiosityhealsthecat.blogspot.com
| | humberto.io
12.4 parsecs away

Travel
| | Learn how to set mutable objects as default on Django Model Fields properly, and save you a lot of time with debugging
| | jimpurbrick.com
10.1 parsecs away

Travel
| |
| | blog.nuculabs.de
13.2 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.
| | samwho.dev
79.7 parsecs away

Travel
| How does a function in Ruby call a function in C? How does a function in Kotlin call a function in Java? It's no secret that you can call functions in one progr...