Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  PureMVC Manifold / Multicore Version / Top JavaScript MVC frameworks on: March 19, 2013, 08:18:43
I just found this posting today on InfoQ: Top JavaScript MVC Frameworks

As more and more logic ends up being executed in the browser, JavaScript front-end codebases grow larger and more difficult to maintain. As a way to solve this issue developers have been turning to MVC frameworks which promise increased productivity and maintainable code. As part of the new community-driven research initiative, InfoQ is examining the adoption of such frameworks and libraries by developers.

  • Backbone.js: Provides models with key-value binding and custom events, collections, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS: A toolset based on extending the HTML vocabulary for your application.
  • Ember.js: Provides template written in the Handlebars templating language, views, controllers, models and a router.
  • Knockout: Aims to simplify JavaScript UIs by applying the Model-View-View Model (MVVM) pattern.
  • Agility.js: Aims to let developers write maintainable and reusable browser code without the verbose or infrastructural overhead found in other MVC libraries.
  • CanJS: Focuses on striking a balance between size, ease of use, safety, speed and flexibility.
  • Spine: A lightweight framework that strives to have the most friendly documentation for any JavaScript framework available.
  • Maria: Based on the original MVC flavor as it was used in Smalltalk - aka "the Gang of Four MVC".
  • ExtJS: Amongst other things offers plugin-free charting, and modern UI widgets.
  • Sammy.js: A small JavaScript framework developed to provide a basic structure for developing JavaScript applications.
  • Stapes.js: A tiny framework that aims to be easy to fit in an existing codebase, and because of its size it's suitable for mobile development.
  • Epitome: Epitome is a MVC* (MVP) framework for MooTools.
  • soma.js: Tries help developers to write loosely-coupled applications to increase scalability and maintainability.
  • PlastronJS: MVC framework for Closure Library and Closure Compiler.
  • rAppid.js: Lets you encapsulate complexity into components which can be easy used like HTML elements in your application.
  • Serenade.js: Tries to follow the ideas of classical MVC than competing frameworks.
  • Kendo UI: Combines jQuery-based widgets, an MVVM framework, themes, templates, and more.

Unfortunately, PureMVC wasn't included in the poll.   ???
2  Announcements and General Discussion / Fabrication / Question regarding using Fabrication and PureMVC Console together on: March 30, 2009, 05:12:26

I'd like to use Kap Lab Pure MVC console as a tool to debug my Fabrication application.  To utilize PureMVC Console, one has to create a class that overrides fr.kapit.puremvc.as3.patterns.facade.DebugFacade.  (See http://lab.kapit.fr/display/puremvcconsole/Integration+Guide)

However, Fabrication already overrides the org.puremvc.as3.multicore.patterns.facade.Facade class.

What is the best way to deal with this inheritance issue so that I can use PureMVC console to debug my Fabrication application?

Thanks in advance.
3  Announcements and General Discussion / Fabrication / Need help with Flex ModuleManager and fabrication FlexModules on: March 04, 2009, 09:42:11
I'm still a newbie when it comes to PureMVC and fabrication, but I feel that I'm up to the challenge of being productive with these useful frameworks. 

What I would like to know is how to properly use Flex's ModuleManager class with classes that inherit from the fabrication FlexModule class.

The Fabrication Wiki details the basics of how to load Flex modules with the Flex ModuleManager class:

Using Module Manager for Flex Modules
Flex modules can also be loaded using the ModuleManager. The ModuleManager only loads the module swf. It does not instantiate the loaded swf. That needs to be done manually after the loading has completed by invoking create on the module's factory.

Loads the module, my_module.swf using ModuleManager.

var module:IModuleInfo = ModuleManager.getModule("my_module.swf");
module.addEventListener(ModuleEvent.READY, moduleReadyListener);

private function moduleReadyListener(event:ModuleEvent):void
  var moduleInstance:Object = event.module.factory.create();

My fabrication application essentially follows the above example.  I must be doing something wrong because the xStartupCommand command class for my module is not being called, even though my modules main class specifies the xStartupCommand class in its getStartupCommand() method.

To ensure the same functionality as if the fabrication FlexLoader class had been used, are some extra configuration steps needed for using Flex's ModuleManager class to load the FlexModules?

I was able to get something working using code to the effect of the following:

var moduleInstance:FlexModule = event.module.factory.create() as FlexModule;
moduleInstance.router = (this.fabFacade.getApplication() as FlexApplication).router;

Is this essentially the right way to go about it, or is there a better way?
Pages: [1]