3 ms·
Being able to turn on and off features based on login or randomness seems like a pretty common feature when you get big enough for it to be meaningful to do tes
by jack12 15y ago
Being able to turn on and off features based on login or randomness seems like a pretty common feature when you get big enough for it to be meaningful to do tests on portions of your userbase, or have multiple tests running at once.
Disqus have open-sourced a similar system for Django-based sites, Gargoyle: http://code.disqus.com/code/projects/gargoyle.html http://code.disqus.com/code/projects/gargoyle.html
You basically stick if(abc-is-active)s throughout your code, and then it has a fancy frontend for defining when abc should be active, based on user, ip, randomness, etc. They showed it off in their PyCon 2011 presentation, at about the 10:00 mark: http://python.mirocommunity.org/video/4256/pycon-2011-disqus-serving-400- http://python.mirocommunity.org/video/4256/pycon-2011-disqus...