Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
larsthorup
· 6y ago · 0 comments
Should you use a tool at all? One code file with the flags, and a small piece of router middleware that allows the URL to override the value of flags, and then just if statements. This has served me well on the past 3 frontend projects I have built.
Comments
[–]
maps7
6y ago
So the URL can turn on different features?
[–]
larsthorup
OP
6y ago
Yes, using #feature:name=value. This makes it easy to share a URL to someone who wants to test a not yet enabled feature