2 ms·
> and it's wrong. Fair enough. Just saying that's the impression I get. > even those focused on specific high level tasks tend to depend on tons of lower leve
by nailer 10y ago
> and it's wrong.
Fair enough. Just saying that's the impression I get.
> even those focused on specific high level tasks tend to depend on tons of lower level modules
Yes. Good libraries do that. Smaller bits are made from bigger bits.
> living them open to things like the "leftpad" fiasco
I don't think you understand what the "leftpad fiasco" was. Small modules doesn't have anything to do with it - people who unpublish their modules on a whim does. And that's not been prevented.
> And using "github and npm to track how active projects are before installing them" is not really an answer to the UNIX way described.
Indeed. It's an answer to your concern about "npm module du jour that gets abandoned 2-3 years later or completely rewritten".
I'm not sure that npm, gulp changing significantly is a bad thing. Good software evolves over times. As long as the changes are clearly communicated I'm 100% down with that. Look how much better express got!
- coldtea 10y ago>Yes. Good libraries do that. Smaller bits are made from bigger bits. I think there's a marginal returns (or worse negative returns) border with this approach, where the overhead, over-generalization, and, finally, bloat, maintenance and management issues stemming from having too many small parts from disparate sources justify writing a specialized solution. Leftpad would be an extreme case in point -- I'd put the bar even higher than that. >Small modules doesn't have anything to do with it - people who unpublish their modules on a whim does. And that's not been prevented. The "unpublish" thing just made the issue instantly apparent, but the core issue would still be there even if nobody could ever unpublish anything. E.g. such small modules could get abandoned and neglected with bugs or security issues, could have extra bloat the parent library doesn't need (this might not hold with leftpad but would be true for anything a little larger that covers 10 things when you only need 2 and could code them yourself and be done with it), is now a dependency that has to be tracked and updated, it's not optimized for the particular use case it is used in, etc.
- nailer 10y ago> E.g. such small modules could get abandoned and neglected with bugs or security issues How well do you think a module with 1000 users is likely to be maintained, vs a create-your-own-wheel equivalent? Do you think writing the latter is an adequate use of your time? Do you think you'll discover all the edge cases? How does writing your own wheel module rank when compared to working on features your customers want?