Essential extensions for enterprise web and mobile application development with Ext JS and Sencha TouchDownload Source Code Documentation Google Group Follow @DeftJS
Deft JS enhances Ext JS and Sencha Touch’s APIs with additional building blocks that enable large development teams to rapidly build enterprise scale applications, leveraging best practices and proven patterns discovered by top RIA developers at some of the best consulting firms in the industry.
- Coordinates dynamic assembly of object dependencies based on a configurable IoC container.
- Builds on familiar Ext JS API syntax conventions for ‘pay-as-you-go’ complexity.
- Eliminates boilerplate code in favor of the simplest expression of developer intent.
- Promotes loose coupling through class annotation driven dependency injection.
- Leverages the advanced class system provided by Ext JS and Sencha Touch.
- Enables business layer code reuse between Ext JS and Sencha Touch applications.
- Provides class annotation-driven dependency injection.
- Maps dependencies by user-defined identifiers.
- Resolves dependencies by class instance, factory function or value.
- Supports singleton and prototype resolution of class instance and factory function dependencies.
- Offers eager and lazy instantiation of dependencies.
- Injects dependencies into Ext JS class configs and properties before the class constructor is executed.
MVC with ViewControllers
- Provides class annotation-driven association between a given view and its ViewController.
- Clarifies the role of the controller - i.e. controlling a view and delegating work to injected business services (service classes, Stores, etc.).
- Supports multiple independent instances of a given view, each with their own ViewController instance.
- Reduces memory usage by automatically creating and destroying view controllers in tandem with their associated views.
- Supports concise configuration for referencing view components and registering event listeners with view controller methods.
- Integrates with the view destruction lifecycle to allow the view controller to potentially cancel removal and destruction.
- Simplifies clean-up by automatically removing view and view component references and event listeners.
Promises and Deferreds
- Provides an elegant way to represent a ‘future value’ resulting from an asynchronous operation.
- Offers a consistent, readable API for registering success, failure, cancellation or progress callbacks.
- Allows chaining of transformation and processing of future values.
- Simplifies processing of a set of future values via utility functions including all(), any(), map() and reduce().
- Implements the CommonJS Promises/A specification.
Full documentation is available in the Deft JS Github Wiki.
- 0.9.1 - Promises and Deferreds rewritten to be Promises/A+ compliant; migrated from Jasmine to Mocha+Chai+Sinon; added Karma build configuration; automated build process with Travis CI; migrated project to Sencha Cmd; added test suites for Ext JS 4.2.1 and Touch 2.2.1.
- 0.8.0 - Moved from mixins to class preprocessors. Added: Promises API, ViewController Observer feature, Deft.Application class, hundreds of Jasmine tests, improved logging, JSDuck documentation, and numerous other improvements.
- 0.6.7 - Controllable now automatically adds a getController() accessor to view. Fixes reported issue with Deferreds completed with 'undefined' values.
- 0.6.6 - Fixes to improve error handling and reporting; especially those associated with nonexistent classes and classes that were not Ext.require()-ed.
- 0.6.5 - Enhanced IoC container to support classes defined as singletons using the Sencha class system.
- 0.6.4 - Hotfix for Sencha Touch Logger issue.
- 0.6.3 - Added memoization feature. Fixed reported Sencha Touch issues.
- 0.6.2 - Added support for View Controller event listener options. Ext JS 4.1rc3 compatibility fixes.
- 0.6.1 - Sencha Touch compatibility fixes.
- 0.6.0 - Introducing View Controller and Controllable. Preview release of Deferred and Promise.
- 0.1.1 - Preview release, added Jasmine test suite.
- 0.1.0 - Preview release, introducing an IoC container for dependency injection.
- Navigation - support for hierarchical views, route-aware
- AOP with an Ext JS-style API (i.e. JSON style configuration)
- Occasionally-Connected Store (simplifing online / offline capabilities)
- Inspiration drawn from other IoC frameworks:
- Special thanks to:
- Jason Barry for creating the Deft JS logo.
- Thomas Burleson for beta-testing and providing feedback on view controllers and promises.
- David Tucker for reviewing several iterations of the proposed syntax.
- Claude Gauthier for leading the 5-day ‘Fast Track to Ext JS’ training where this idea was born.
- Tim Marshall for parting with the twitter account and project name, which he’d previously used for a personal project.