JavaScript Reusability Is A Quagmire
kirindave.tumblr.com
JavaScript Reusability Is A Quagmire
1–8 of 8 posts
Re: JavaScript Reusability Is A Quagmire
#2Re: JavaScript Reusability Is A Quagmire
#3It's a mistake to lump jQuery in with Prototype and MooTools as "doing things significantly differently and only sorta playing nice with each other". jQuery very deliberately avoids modifying built-in objects to ensure compatibility with other libraries and existing code.
Just because it doesn't deliberately destroy compatiblity doesn't mean that it's really helping the problem.
Re: JavaScript Reusability Is A Quagmire
#4Re: JavaScript Reusability Is A Quagmire
#5It's a mistake to lump jQuery in with Prototype and MooTools as "doing things significantly differently and only sorta playing nice with each other". jQuery very deliberately avoids modifying built-in objects to ensure compatibility with other libraries and existing code.
Re: JavaScript Reusability Is A Quagmire
#6JavaScript really isn't that bad. It is different to be sure and lost when it comes to OO. But like "The Good Parts" book explains, JavaScript really isn't about OO. Or strong typing. It doesn't need to be. It would be nice if the certain features worked correctly and it worked the same in all browsers, but I'd rather have less features and not more. With closure and first class functions you can get most of what you…
Scheme is really similar to JavaScript in that it is an extremely basic set of core functionality, but they've gone to great lengths to make the experience of using it consistent. Part of the problem is that most of schemes are written in scheme, but most javascripts are not written mostly in JavaScript. That means there is no style guide implicit in the source code. If a bunch of code just picked an object instantiation method, then there would be no problem.
Re: JavaScript Reusability Is A Quagmire
#7I thought the exact same thing when reading "JavaScript: The Good Parts". People often say you shouldn't try emulate classical inheritance with JavaScript, but the fact is every JS library does it to some extent, and each one does it differently. It's hard to keep track of the syntax and semantics for each version.
Re: JavaScript Reusability Is A Quagmire
#8JavaScript really isn't that bad. It is different to be sure and lost when it comes to OO. But like "The Good Parts" book explains, JavaScript really isn't about OO. Or strong typing. It doesn't need to be. It would be nice if the certain features worked correctly and it worked the same in all browsers, but I'd rather have less features and not more. With closure and first class functions you can get most of what you…
Yet, ECMAScript 4