RocketModule - Jquery http://rocket.local/categories/jquery en Javascript Framework Redux http://rocket.local/blog/javascript-framework-redux <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p><em>Part II in a series of articles about an online web application I am working on. <a href="/blog/side-project-part-1-getting-started">Read Part I</a></em></p> <p>I'm am currently in the process of making my own web service, which will have a single-page-app (SPA) type of structure/interface. This is exactly the type of project that the bevy of JavaScript frameworks like Backbone.js, Angularjs, Ember.js, Knockout.js, and Meteor are build for, thus I've taken it for granted that I would use one of these frameworks as the client-side infrastructure for my app. After much review and fiddling around it turns out that I will not be using one of them. At least not for now. Below are some of reasons why <em>(note these reasons may not apply to you, you may rightly decide that a Javascript framework is a great choice for your project(s) - these are one person's opinions only)</em>:</p> <h3>Using any of the frameworks requires more commitment from my code base than I want to give right now</h3> <p>One of my biggest surprises/disappointments after spending a lot of time with Backbone.js and Angularjs was realizing that my (imho) perfectly awesome JavaScript/jQuery foundation layer, which I just slaved over creating, would not only have to be modified - it would have to be thrown out the window. This is because none of these frameworks are a container for your JavaScript - they are a replacement for it. Sure you might use a little bit of JavaScript/jQuery within any one of the frameworks, but overall you'll be doing-Backbone, or doing-Angular, or doing-Ember, or whatever. It's even common advice for Angular experts to tell newbies to not use jQuery at all while they are getting started, so that they can learn the 'Angular way'. Thanks, but no thanks.</p> <p>I don't want to abandon my universally usable and performant JavaScript/jQuery that I can take and integrate easily into almost anything (well almost anything but these frameworks, apparently). Maybe in the future as one of the JS frameworks becomes more mature and dominant I will reconsider. Honestly, I think a platform would have be as ubiquitous as jQuery has grown to be, for me to volunteer myself for platform lock-in on the level these frameworks require now.</p> <h3>I want to continue building my expertise in JavaScript/jQuery themselves and don't want to have it abstracted away from me</h3> <p>This is a big one for me. I can do what needs to be done with JavaScript, even reasonably well on a case by case basis. But I want to really master it. I don't want to just know Angular, or Backbone. I want to come up with solutions for the real-world, big-picture DOM/JS obstacles that I run into, presumably like the makers of the Javascript frameworks did. I want to eventually have the knowledge that I *could* make my own framework. And at that point, even if I decide to use someone else's framework I will have much more appreciation for my choice, and I will have more knowledge for how to leverage it.</p> <h3>Who are the frameworks a good choice for?</h3> <p>Don't get me wrong I am really glad I spent the time I did looking into Backbone.js and Angularjs (I actually looked at others, but I spent the most time with Backbone and Angular). They are demystified for me now, and there are a lot of good bits, patterns, and big-picture issues that I'm more informed about now than I was previously. I can easily imagine that someone who isn't a JavaScript expert and who just wants to commit to learning the idiosyncrasies of one of the frameworks can build some really great stuff. I can also imagine that true JavaScript masters might be taking their knowledge and one of these frameworks to bring their projects to an even higher level of organization and efficiency (though I'd actually be interested in hearing from the John Resigs of the world regarding their thoughts on current framework implementations).</p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Categories:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/categories/javascript" typeof="skos:Concept" property="rdfs:label skos:prefLabel">JavaScript</a></div><div class="field-item odd"><a href="/categories/drupal" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Drupal</a></div><div class="field-item even"><a href="/categories/jquery" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Jquery</a></div></div></div> Mon, 01 Apr 2013 18:06:12 +0000 Caleb Gilbert 128 at http://rocket.local http://rocket.local/blog/javascript-framework-redux#comments jQuery UI 1.5 and jQuery Enchant 1.0 alpha work with Drupal 6! http://rocket.local/blog/jquery-ui-15-and-jquery-enchant-10-alpha-work-drupal-6 <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>The jQuery team has just released an alpha of <a href="http://jquery.com/blog/2008/02/08/jquery-123-air-namespacing-and-ui-alpha/">jQuery UI 1.5 and jQuery Enchant 1.0</a>, both of which will work with Drupal 6, as it is stated that the minimum requirements for the alphas are identical to the version of jQuery that ships with Drupal 6!</p> <p>Some links to help you get your tinker on:</p> <p><b>Download</b></p> <ul><li><a href="http://jqueryjs.googlecode.com/files/jquery.ui-1.5a.zip">jQuery UI 1.5 (Alpha)</a> (Requires jQuery 1.2.3 or higher)</li> <li><a href="http://jqueryjs.googlecode.com/files/jquery.enchant-1.0a.zip">jQuery Enchant 1.0 (Alpha)</a></li> </ul><p><b>Demos</b></p> <ul><li><a href="http://ui.jquery.com/1.5a/demos/">jQuery UI 1.5 (Alpha)</a></li> <li><a href="http://ui.jquery.com/enchant/1.0a/demos/">jQuery Enchant 1.0 (Alpha)</a></li> </ul><p><em>[Note: even if the jQuery version requirements for UI and Enchant change at some point before the final release, rest assured that someone in the Drupal community is sure to make an <a href="http://drupal.org/project/ui">upgrade path</a> available] ;-)</em></p> </div></div></div><div class="field field-name-taxonomy-vocabulary-1 field-type-taxonomy-term-reference field-label-above"><div class="field-label">Categories:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/categories/drupal" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Drupal</a></div><div class="field-item odd"><a href="/categories/jquery" typeof="skos:Concept" property="rdfs:label skos:prefLabel">Jquery</a></div><div class="field-item even"><a href="/categories/ajax" typeof="skos:Concept" property="rdfs:label skos:prefLabel">AJAX</a></div><div class="field-item odd"><a href="/categories/ahah" typeof="skos:Concept" property="rdfs:label skos:prefLabel">AHAH</a></div><div class="field-item even"><a href="/categories/javascript" typeof="skos:Concept" property="rdfs:label skos:prefLabel">JavaScript</a></div></div></div> Sun, 10 Feb 2008 18:33:08 +0000 Caleb Gilbert 69 at http://rocket.local http://rocket.local/blog/jquery-ui-15-and-jquery-enchant-10-alpha-work-drupal-6#comments