4 ms·
I suppose in a sense, it's easier to enforce policies through a library than it is to tell a dev "do this" or "don't do that'". I'm not a front-end developer e
by JoelBennett 10y ago
I suppose in a sense, it's easier to enforce policies through a library than it is to tell a dev "do this" or "don't do that'".
I'm not a front-end developer either (so my JavaScript experience is a bit limited), but with the back-end code that I work on with my team, enforcing policies can be a bit tricky. It's pretty easy for things to slip through in a pull request that are against policy, and it's kind of hard to automatically check for policy violations. When forcing someone to use an API, at least you can somewhat guarantee that the API follows the policy.