84 karma · joined May 11, 2021
https://www.linkedin.com/in/patrick-cauthorn/
Many great things to consider in this thread. Many thanks to you and others that put their thoughts down.
I've worked with a guy who wrote great code like he was typing an email.
Everyone has a ceiling of the complexity of problems they can handle, some programmers are outliers in this regard.
Good question, this is slightly different than lru_cache in that it persists to disk so it retrieves from the cache even when you rerun the Python interpreter.
Also it gives you a bit of flexibility as when to refresh the cache and to use or ignore function parameters. I often make a change in one 'group', db data for example, and am able to just refresh those methods that gather data from the db.
Not something I seen, a decorator used only for development that is deployed in production.
Thoughts?