> 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?
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.