Explore >> Select a destination


You are here

dafoster.net
| | blog.nuculabs.de
15.8 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.
| | martinheinz.dev
14.1 parsecs away

Travel
| | Even if you write clear and readable code, even if you cover your code with tests, even if you are very experienced developer, weird bugs will inevitab...
| | www.pmatiello.me
14.8 parsecs away

Travel
| | In which I give my own half-baked workaround to the lack of tail call optimization in Python
| | powershellisfun.com
128.4 parsecs away

Travel
| You always use certificates but forget when they expire until it's too late. In this blog post, I will show you how to use a small script when starting a PowerShell session to display certificates about to expire on your Windows system.