KEMBAR78
It's Primetime: A Javascript Story | PPTX
Its Primetime: a JavaScript story




            Power point template by
               Colin Eberhardt
Agenda



Modules

MVVM

Decoupling in the client

Testing JavaScript
Who am I




                 Einar Ingebrigtsen




       @einari           einar@dolittle.com


                      http_//www.dolittle.com
                        http://blog.dolittle.com
                 http://www.ingebrigtsen.info
Confession time..




I am a recovering JavaScript hater
Houston we have a….




There are only two problems with
           JavaScript
Java
  &
Script
… actually, there is a third problem…




              DDD
     DOM Driven Development
… and kinda, a fourth problem as well..




People thinking that we
 need to fix JavaScript
… it all begins with $
… it all begins with $



Polluted CSS selectors

Passive views

Hard to test

Heavy coupling

Couples JavaScript (business logic) to DOM
MVVM


Based on Presentation Model by Martin Fowler
 http://martinfowler.com/eaaDev/PresentationModel.html


Commonly used in the XAML stack
 WPF
 Silverlight
 WP7
 WP8
 Windows RT / Store Apps
MVVM


                  Model   Get from server




           View


Observes
                          Observable
             ViewModel
Decouple




Make many small applications

Compose together
EventAggregator


 ViewModel        ViewModel
JavaScript: The Good Parts
Summary
KnockoutJS
http://knockoutjs.com


RequireJS
http://requirejs.org

Forseti
http://github.com/dolittle/forseti


Bifrost
http://bifrost.dolittle.com

Please rate the talk at
http://tinyurl.com/JavaScriptStory




   http://blog.dolittle.com http://bifrost.dolittle.com
Thanks for your
   attention
It's Primetime: A Javascript Story

It's Primetime: A Javascript Story

Editor's Notes

  • #10 jQueryCoupling
  • #11 TypeScriptCoffeeScript
  • #12 Douglas Crawford / Yahoo - YUI
  • #13 Douglas Crawford / Yahoo - YUI
  • #20 Douglas Crawford / Yahoo - YUI