3 ms·
But jQuery is a library, not a programming language. A web developer should not depend on jQuery precisely because it is not available in every javascript envir
by debaserab 15y ago
But jQuery is a library, not a programming language. A web developer should not depend on jQuery precisely because it is not available in every javascript environment.
- baddox 15y agoWhere does plain old code reusability (which everyone in the software industry agrees is good) end and "libraries" begin? The jQuery library is just a bunch of open source JavaScript code. If you can distribute your own JavaScript code with your web creations, then you can distribute jQuery, and even if the jQuery team breaks things you can keep using an old version. Are you suggesting it shouldn't be relied upon because someone else wrote it, or are you against code reuse in general?
- stephenr 15y agoNo, you can't always distribute jQuery - if a project is already using another library, it's not really acceptable to include jQuery. Code re-use is great, when it makes sense. Requiring jQuery and a ~250 line script, so you can use "5 minutes" instead of (5 * 60 * 1000) is ridiculous, and any developer who does that would get a bollocking if they reported to me.