3 ms·
If anyone is interested, you can implement something like that with a few lines of code on the front end. We expose a function that generates a uniformly-distri
by EGreg 5mo ago
If anyone is interested, you can implement something like that with a few lines of code on the front end. We expose a function that generates a uniformly-distributed hash that you can use for A/B testing and other uses:
Q.Data.variant()
https://github.com/Qbix/Q.js/blob/main/src/js/Q.minimal.js#L9842C2-L9858C3 https://github.com/Qbix/Q.js/blob/main/src/js/Q.minimal.js#L...
And on the back end, you'd use it like this:
https://github.com/Qbix/Platform/blob/main/platform/classes/Q/Data.php#L607 https://github.com/Qbix/Platform/blob/main/platform/classes/...
Essentially, this can support a huge number of "variants" and within each variant you can have N equal segments. That will help you do A/B testing and flipping features on or off.