Dear lazyweb, is there a similar library for python? :)
Scientist: A Ruby library for carefully refactoring critical paths
11–17 of 17 posts
Re: Scientist: A Ruby library for carefully refactoring critical paths
#12Re: Scientist: A Ruby library for carefully refactoring critical paths
#13Pretty cool to see the github of Github, never occurred to me but makes total sense.
Re: Scientist: A Ruby library for carefully refactoring critical paths
#14Dear lazyweb, is there a similar library for python? :)
I used my implementation to replace number parsing in my work project: https://kodare.net/2021/04/04/safe_number_parsing.html
Re: Scientist: A Ruby library for carefully refactoring critical paths
#15This is pretty cool, but in my experience critical path code generally has side effects and most code is not idempotent. That is to say it may not be safe or feasible to run the old and new code in parallel, without some special considerations. Think bidding on a auction item or transferring a bank balance.
Sure but IMO most code can and should be structured to decouple the side effect from the logic that is being replaced. Example in the transferring a bank balance, you have some storage DB you interact with, but that is an abstraction and when you run the dry run of the new code you can have an implementation that just does verification on the data from the real implementation. Anyways, it does take discipline and eff…