|
You are here |
fabianlindfors.se | ||
| | | | |
blog.nuculabs.de
|
|
| | | | | 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
|
|
| | | | | 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... | |
| | | | |
blog.javascripting.com
|
|
| | | | | (Note: we're using "reduce" strictly in the computer science sense [https://en.wikipedia.org/wiki/Fold_(higher-order_function)] in this article, lest anyone be confused.) Flux is awesome but there are still numerous open questions. One of the toughest, which everyone has to face sooner or later is: where do | |
| | | | |
lambdaland.org
|
|
| | | This is the story of how I solved a problem (ugly, cumbersome boilerplate code) that I ran into while writing a program in a functional language (Elixir). Functional programming languages often pride themselves on expressiveness and elegance; but occasionally they are not amenable to the most obvious solutions to the problems we wish to solve. In this case, the simplest solution to my problem would have been to have a global mutable variable. But no one likes those. | ||