Hacker News new | ask | show | jobs
by bradgessler 496 days ago
I built a Ruby library for feature flags that’s completely hardcoded.

In a rails app you have an ./app/plans folder with Ruby files, each command containing a class that represents each feature in a plan.

There’s code examples at https://github.com/rubymonolith/featureomatic if you want to have a look.

I’ve used it for a few apps now and it’s been pretty useful. When you do need plug a database into it, you can do so by having the class return the values from a database.