scientist
scientist copied to clipboard
:microscope: A Ruby library for carefully refactoring critical paths.
`observation.rb` does this: ```ruby def initialize(name, experiment, &block) ... begin @value = block.call rescue Object => e @exception = e end ... end ``` Which is a [well](http://daniel.fone.net.nz/blog/2013/05/28/why-you-should-never-rescue-exception-in-ruby/) [documented](http://www.mikeperham.com/2012/03/03/the-perils-of-rescue-exception/) [anti-pattern](https://robots.thoughtbot.com/rescue-standarderror-not-exception)....
Scientist is _fantastic_ for Ruby development, but how would I find a similar library for other languages? I'm looking to do this in PHP and JS. Is there a name...
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. Release notes Sourced from actions/checkout's releases. v4.0.0 What's Changed Update default runtime to node20 by @takost in actions/checkout#1436 Support fetching without the --progress option...
I couldn't find any way a custom Experiment can take a block into initialize, so I don't think this example is correct.
- A method that has `?` suffix should return boolean, but this method return an object that respond to `valid?`. - All other examples don't have `?`. - https://github.com/github/scientist/blob/8d9fd4ec676a0d3ba3be868b24415384108da2f0/README.md#L44 -...
For Using Fork Requests
The Serverless scientist link is no longer up. Replacing with AWS Lamba link.
Allows this to work: ```ruby Marshal.load(Marshal.dump(Scientist::Default.new("foo"))) #=> ArgumentError: wrong number of arguments (given 1, expected 0) #=> from /Users/ryan.buckley/.rvm/gems/ruby-2.7.8@envoy-web/gems/scientist-1.6.3/lib/scientist/experiment.rb:334:in `marshal_load' ```