+ All Categories
Home > Technology > A Different View: Building a Scalable Javascript View Architecture

A Different View: Building a Scalable Javascript View Architecture

Date post: 18-Dec-2014
Category:
Upload: jason-anderson
View: 3,861 times
Download: 1 times
Share this document with a friend
Description:
A recent wave of excitement has generated an immense amount of javascript frameworks or libraries. However, none of these libraries really make a lot of headway in addressing how to do highly-scalable Javascript UI development. This talk proposes some different paradigms for programming interfaces on the client, leveraging time-tested design patterns used in enterprise software for years. For more, see http://diurnal.st
10
A Different View Thursday, March 29, 12
Transcript
Page 1: A Different View: Building a Scalable Javascript View Architecture

A Different View

Thursday, March 29, 12

Page 2: A Different View: Building a Scalable Javascript View Architecture

Backbone.ViewGood• Loose $ dependency

• Simple event delegation system

• Trim API (initialize/render)

...But• Setup code inflexible

• Classical inheritance model

• No nesting support

Thursday, March 29, 12

Page 3: A Different View: Building a Scalable Javascript View Architecture

D R Y

Thursday, March 29, 12

Page 4: A Different View: Building a Scalable Javascript View Architecture

Breaking it downModel creation

Views auto-assembled

Views auto-created

Thursday, March 29, 12

Page 5: A Different View: Building a Scalable Javascript View Architecture

Model creation

Thursday, March 29, 12

Page 6: A Different View: Building a Scalable Javascript View Architecture

Views auto-createdView.js

BackBreaker.js

Thursday, March 29, 12

Page 7: A Different View: Building a Scalable Javascript View Architecture

Views auto-assembled

View.js

Thursday, March 29, 12

Page 8: A Different View: Building a Scalable Javascript View Architecture

Demoslashhashbang.com/demos/viewframework

Thursday, March 29, 12

Page 9: A Different View: Building a Scalable Javascript View Architecture

Code SharingFunctionality Mixins• FlexGrid, States, Themable, Skeleton

Base Definitions• StandardCarouselLayout, ShareButton

Future: Dynamic Runtime Behaviors• AMD, Mobile-optimization, other environment-specific

Thursday, March 29, 12

Page 10: A Different View: Building a Scalable Javascript View Architecture

Questions?Answers.

Thursday, March 29, 12


Recommended