Why jQuery Needs JavaScriptMVC Part 2

by Justin Meyer

Why jQuery Needs JavaScriptMVC Part 2

Justin Meyer After writing my previous article on Why jQuery Needs JavaScript, I feel like I didn't communicate why JavaScriptMVC is important for jQuery developers. Here's a much more succinct way of saying it.

posted in Development on August 13, 2010 by Justin Meyer

After writing my previous article on Why jQuery Needs JavaScript, I feel
like I didn’t communicate why JavaScriptMVC is important for jQuery
developers. Here’s a much more succinct way of saying it.

JavaScriptMVC makes doing everything you should be doing as easy as
possible

Here’s some of the things you should be doing:

  • Testing (especially automatic and functional testing)
  • Documenting
  • Breaking up code into logically organized files
  • Compressing and concatenating your JavaScript files
  • Using and organizing client side templates
  • Making plugins that clean themselves up are internally organized,
    and extendable.
  • Error reporting

All of these things are hard or impossible to do right with jQuery
alone.

You can add your own automated testing library – Selenium or qUnit,
qUnit isn’t automated. Selenium is hard to write tests for.

You can add your own documentation engine – JSDoc, but make sure you
keep track of every file!

You can add your own way of loading and compressing scripts – RequireJS.

You can use other client side template libraries – jquery-tmpl, but you
won’t be able to compress them into your build or put them in external
files as easily.

You can be careful to structure your jQuery plugins so they can be
easily removed from an element, remove all event handlers, and provide
some mechanism for extending or overwriting your plugin.

You can devise your own way of doing error reporting.

Or

You can download JavaScriptMVC and run:

js steal/generate/app APPNAME 

and get all of these things for free.

This is why jQuery needs JavaScriptMVC – to make it easy to do the
things you should have been doing in the first place.

We’ve spent almost 3 years refining the same feature set to make it
crazy easy to do these things. If this doesn’t make sense to you, please
read why JavaScriptMVC is not too
Enterprisey
.

blog comments powered by Disqus

Using CanJS 2.2 with StealJS and NPM

David Lueckeposted in Development, Open Source on April 23, 2015 by David LueckeCanJS can be used in many different module formats like AMD and CommonJS and package managers like Bower and NPM. In this post we will talk about using CanJS with the new StealJS and NPM.

Set Algebra with can-set

Justin Meyerposted in Development, Open Source on April 22, 2015 by Justin Meyercan-set is a client and server side JavaScript utility that makes set algebra easy. This article talks about the design goals of can-set and introduces a few cases where you might find it useful.

CanJS 2.2 Release

Justin Meyerposted in Development, Open Source, Uncategorized on April 5, 2015 by Justin MeyerCanJS 2.2 is out. It's awesome. This article covers the top 10 enhancements added since 2.1. Some of the improvements include Browserify and StealJS support, can-EVENT arguments, observable promises, and in-page automatically rendered templates. The article includes a lot of good JSBins to learn from too.

Contact Us
(312) 620-0386 | contact@bitovi.com
 or cancel