Tuesday, July 01, 2014 (permalink)
In Python, the @cached_property decorator is a really nice piece of code. What it does is it caches the result of a property call. The cached result will persist as long as the instance does, so if the instance is passed around and the function subsequently invoked, the cached result ...Read more ...
Saturday, August 17, 2013 (permalink)
Friday, July 26, 2013 (permalink)
- 91% of Django projects use ModelForms.
- 80% ModelForms require trivial logic.
- 20% ModelForms require complex logic.
In Chapter 10 of ...Read more ...