4 ms·
I still think jQuery/UI, libs maintained by a group that has a vision, organization, etc. Is a better solution than pulling in a ton of shitty half hearted comp
by 91bananas 9y ago
I still think jQuery/UI, libs maintained by a group that has a vision, organization, etc. Is a better solution than pulling in a ton of shitty half hearted components, functions, what have you from a bunch of random developers and repos scattered across the internet. Bootstrap works because it is built by a team, solves a specific problem and solves it well. jQuery is the same thing.
I grant that the things linked from this site are useful and novel, but I don't want to build a project sourcing things from 16 different developers when I could just bring in one library that does all of them, and might weigh a little more over the net.
- emodendroket 9y agoThat's my problem with microlibraries in general. How rigorous is your vetting process when you're starting to pull in code like left-pad, really?
- Spivak 9y agoleftPad is a very simple example but the goal of these micro libraries is to keep every project from having a utils.js which contain slightly different variations of the same code.
- emodendroket 9y agoBut a "macrolibrary" would seem to serve that goal equally well and also help solve the problem where many of your libraries overlap because none of them do quite what you need.
- hw 9y agoBootstrap at least provides a way to pull in only components that you need. I would argue for a more modular jQuery. There are some projects that don't require all that jQuery provides, and sometimes you want to min-max performance and size of JS that gets downloaded. Keep in mind that jQuery is maintained and contributed to by more than 16 developers so you are technically sourcing things from multiple developers, just so happens they are in a single library. Again, it really depends on what you're doing with your project and what you need for your project. Most developers include jQuery by default because it's just the most common and most used library, and PlainJS offers an alternative which I think is great.
- currysausage 9y agoWhat I'm looking for: libraries instead of one-size-fits-all frameworks. Libraries annotated for Closure Compiler's advanced compilation mode, so I can automatically tree-shake all the code that I don't need.
- m_mueller 9y agoCould you give a common example from jQuery core that could be left away? I'd hate if I find a documentation about a method for a jQuery object only to find out that I don't have that extension yet. IMO its size is just about right.