/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

gaganpreet.in
| | adamj.eu
4.6 parsecs away

Travel
| | Most projects I work on use Python, good ol' Pip, and pip-tools. Below is a pattern I've used to speed up the GitHub Actions workflow runs on several such projects. On larger projects with many dependencies, it can save tens of seconds per run.
| | python-future.org
3.7 parsecs away

Travel
| |
| | vsupalov.com
3.7 parsecs away

Travel
| | The moving parts of starting a small project in Flask - what, why and how.
| | blog.nuculabs.de
27.6 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.