JavaScriptMVC

A Promising JavaScript library … errr FRAMEWORK

Guess who’s honoring us now! - Stephen T. Colbert.

It’s always great being recognized.  The wonderful resource that is Six Revisions just gave us a little nod. Hopefully when 2.0 comes out that will turn into a round of applause.

JavaScriptMVC is the little (I mean big) library (I mean framework) that could.

Why you should be using JavaScriptMVC: part 2

The 2nd part in the 3 part series of why you should be using JavaScriptMVC.  This one is even more poorly written.  I’m just getting all my thoughts out.  I’m hoping to write a 100 reasons you should be using JavaScriptMVC.  If you have ideas, throw them out!

JavaScriptMVC is all about helping you develop beautiful, clean, and maintainable code.  Here’s how it’s done:

Core reason 2 : Maintainability

Logically organize and build your application with fewer choices

  • Separate, logically organized files with no cost.
  • Models that wrap your data elegantly.
  • Clean up your code with Views.
  • Controllers th.

Logically organized and separate files

Normally JavaScript code turns into gross spaghetti, but JavaScriptMVC changes that.

  • Include, and add files to be compressed with one step.
  • Include files recursively.
  • JavaScriptMVC provides a standard file structure.  You know where everything goes.

Models

  • Standard ActiveRecord style models.
  • Supports classical inheritance.
  • JSONP,  XMLRest, JSONRest, Cookie, Ajax models.
  • Easily integrate with REST based resources.
  • Comet  tools.
  • New ModelViewHelpers make creating forms for specific instances easy.

Views

  • Clean the HTML out of your source code.
  • Processed version is included in production for extra speed.
  • View helpers make building forms a snap.

Controller

  • Using event delegation, you don’t actually have to attach events, they get attached for you just by writing the function.
  • Dry actions that match CSS and event type to a function.
  • New architecture that allows you to create custom actions.
  • Back button / refresh history integration
  • DragDrop functions.
  • Fully inheritable.
  • Render views from controllers without even having to specify which view (it DRY-ly guesses).
  • CometController is used to dispatch comet events.
  • Fully inheritable which helps with repeated code.
  • Support scaffolds which remove boilerplate code.

JavaScript 1.5.0 released.

I just put up for download JavaScriptMVC 1.5.0.  This represents a huge accomplishment and I’m very proud of the core team for putting it together.  It’s a huge advancement in JavaScriptMVC and an even bigger advancement in JavaScript development.Here’s a quick list of what’s been done:

  • Rhino compression
  • Class Inheritance
  • Ajax, JSON, XML, Cookie models
  • Drag and Drop controller
  • Controller Scaffolds
  • Generators
  • Documentation

I’m tired so I’m not going to go into full details now.  I hope you download it.  You can find documentation here.  Let me know what you think and improvements you’d like to see in the beta.