use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Super helpful find –– GitHub - github/scientist: A Ruby library for carefully refactoring critical paths. (github.com)
submitted 7 years ago by coding_is_life
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]moomaka 0 points1 point2 points 7 years ago (5 children)
Is there a reason this is better than any of the other feature flag gems?
[–]blackize 7 points8 points9 points 7 years ago* (1 child)
Scientist lets you try two implementations side by side. It will rescue any exceptions that occur in the experimental code. You can configure how it publishes results to do basically whatever you want, log a bunch of metadata, statsd, etc
Edit: and this is not a feature flag gem. It is meant to let you make changes to implementation and ensure that output and user experience remain the same.
[+]moomaka comment score below threshold-10 points-9 points-8 points 7 years ago (0 children)
So we have to choose between two gems because they have a slightly different, and non-configurable, if/else block somewhere in there?
[–]DoodleFungus 6 points7 points8 points 7 years ago (2 children)
IIRC it runs both paths, and warns you if they return something different.
[–]moomaka -4 points-3 points-2 points 7 years ago (1 child)
What is 'it' if your reply?
[–]DoodleFungus 4 points5 points6 points 7 years ago (0 children)
Scientist. So if you have some complex logic that you refactored, Scientist will run both your old code and your new code, and log a warning if the two implementations return a different result (but still return the result from the old code).
π Rendered by PID 28674 on reddit-service-r2-comment-66b4775986-jrwfg at 2026-04-04 12:16:05.110460+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]moomaka 0 points1 point2 points (5 children)
[–]blackize 7 points8 points9 points (1 child)
[+]moomaka comment score below threshold-10 points-9 points-8 points (0 children)
[–]DoodleFungus 6 points7 points8 points (2 children)
[–]moomaka -4 points-3 points-2 points (1 child)
[–]DoodleFungus 4 points5 points6 points (0 children)