Re:Stop writing milliseconds and hating JavaScript's setTime...
by baddox on Monday May 16, 2011 @02:43AM
(#2551848)
Where 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?
[ Parent
| on HN ]
Re:Stop writing milliseconds and hating JavaScript's setTime...
by stephenr on Monday May 16, 2011 @06:52AM
(#2552157)
No, 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.