Nell’iperspazio con Rocket: il Framework Web di Rust!
DojoConf: Building Large Apps
1. building large apps
rebecca murphey • dojoconf • @rmurphey
Saturday, September 17, 11
2. A content management system for
constructing content-rich mobile applications.
A content publishing system that uses Dojo
and PhoneGap to create a mobile app from the
output of the CMS.
Saturday, September 17, 11
4. Data
Page Controller
Component
URL Change Router Route Page Factory Component
Capability
Component
Device
Storage
Remote
UI
Browser
Page Container
Old Page Controller New Page Controller
Component Component
Component Component
Component Component
Saturday, September 17, 11
5. e secret to building large apps is
never build large apps. Break up your
applications into small pieces. en,
assemble those testable, bite-sized pieces
into your big application.
Justin Meyer
Saturday, September 17, 11
6. Data
Page Controller
Component
URL Change Router Route Page Factory Component
Capability
Component
Device
Storage
Remote
UI
Browser
Page Container
Old Page Controller New Page Controller
Component Component
Component Component
Component Component
Saturday, September 17, 11
7. Data
URL Change Router Route
Device
Storage
Remote
Saturday, September 17, 11
17. videoPlayer.set('mediaId', mediaId);
_setMediaIdAttr : function(mediaId) {
var media = this.media = this.mediasCache[mediaId];
if (this.useHtml5Player && !this.player) {
this._queuedMedia = media;
return;
}
this._queuedMedia = null;
if (this.player) {
this.player.src = media.url;
}
},
Saturday, September 17, 11
18. myComponent.set(key, val)
to change state
myComponent.on<Evt>(data)
to announce state changes
myComponent.subscribe(topic)
to react to published topics
dojo.publish(topic, data)
to announce occurrences of app-wide interest
myController.connect(component, evt, handler)
to listen for events & methods
Saturday, September 17, 11