Re:Show HN: Laboratory, a Python port of GitHub's Scientist ...
by lasdfas on Monday February 15, 2016 @02:19PM
(#11105276)
I imagine this can only work on getters? How do you use this when code makes state changes?
[ Parent
| on HN ]
Re:Show HN: Laboratory, a Python port of GitHub's Scientist ...
by chucksmash on Monday February 15, 2016 @02:32PM
(#11105359)
From Github's Scientist [1]:
Because `enabled?` and `run_if` determine when a candidate runs, it's impossible to guarantee that it will run every time. For this reason, Scientist is only safe for wrapping methods that aren't changing data.
When using Scientist, we've found it most useful to modify both the existing and new systems simultaneously anywhere writes happen, and verify the results at read time with `science`.
[1]: https://github.com/github/scientist/blob/master/README.md#de...