Hacker News new | ask | show | jobs
by domk 1501 days ago
Good advice. But instead of having an entitlements _system_ and API calls passing through multiple different services returning lists of features a customer is entitled to, you can follow basic OOP principles and write

  customer.is_entitled_to("feature")
to abstract the logic away to the same effect.