Hacker News new | ask | show | jobs
by larsthorup 2118 days ago
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.
1 comments

So the URL can turn on different features?
Yes, using #feature:name=value. This makes it easy to share a URL to someone who wants to test a not yet enabled feature