4 ms·
When you write an application, it's fine to pull whatever dependency you feel like. When you write a library, you need to think very carefully about the deps y
by eloisant 11y ago
When you write an application, it's fine to pull whatever dependency you feel like.
When you write a library, you need to think very carefully about the deps you bring because you'll be imposing it to all your users.
- true_religion 11y agoThat's right, but most people don't set out to write libraries from day one. They write an application, then extract useful functionality into a library and release that. The users of the released library inherit whatever dependencies that weren't easily removeable.