I hereby claim:
- I am andrewkiri on github.
- I am andrewkiri (https://keybase.io/andrewkiri) on keybase.
- I have a public key ASA0uD_ASnmfvzWRE9oDItq3izTHXxfYnvFjm3cKW2mrBgo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def donate(monthly_profits): | |
def lowest(a, b, c): | |
if a > b > c: | |
return "C" | |
elif b > a > c: | |
return "C" | |
elif c > b > a: | |
return "A" | |
elif c > a > b: | |
return "B" |
The targets that we want to achieve:
- Detach feature flags from build process (which forces to have multiple deployment environments or instances)
- Have the flexibility to have feature flags attached or detached to Grover site version
- Be future ready in case the decision is made to develop an on-site configurator (in order to turn certain feature flags on/off according to the desire of the viewer) . The site can be launched with some /URL param/ that will turn dev mode on (which in turn will enable a gear-settings-overlay to control feature flags)
- Be able to control from API level which features have a particular version of the site
Bonus items:
- We can declare site version to be more strict than feature flags (eg. to have site version be decisive) & attach it to route param or URL
- Once they are attached in redux, we can operate and toggle them (to allow for live toggle of any feature)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const inputString = 'cat has eaten big fat nimble fish, which made the cat fat'; | |
const filter = (filterValue, input) => input.split(' ') | |
.reduce((acc, curr) => { | |
if (curr !== filterValue) acc.push(curr); | |
return acc; | |
}, []) // ['has', 'eaten' ...] | |
.join(' ') | |
; |