Clean up your javascript act
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Clean up your javascript act

  • 1,821 views
Uploaded on

Slides from my JavaScript session at DDD North, 2011.

Slides from my JavaScript session at DDD North, 2011.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,821
On Slideshare
1,632
From Embeds
189
Number of Embeds
6

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 189

http://www.heartysoft.com 143
http://localhost 29
http://www.linkedin.com 8
http://heartysoft.com 6
https://www.linkedin.com 2
http://paper.li 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Clean Up Your JavaScript Act
    AshicMahtabhttp://www.heartysoft.com@ashic
  • 2. JavaScript
    Messy
    Dangerous
    Extremely flexible…too flexible?
  • 3. JavaScript
    Following a few simple patterns (“The Good Parts”) can make it manageable.
    Writing tests…need I even ask?
  • 4. JavaScript Testing
    QUnit
    Chutzpah
    Build Script
    TeamCity
    Demo
  • 5. QUnit
    test
    module
    ok
    equal
    stop
    start
  • 6. Objects
    var person = { ‘name’ : ‘john’, ‘yearOfBirth’ : 1912, ‘saying’ : function(){
    alert(“I was on board the Titanic!”); }};Good for simple data structures…attempt to do complicated stuff and you will suffer :@
  • 7. Functional Objects
    Demo
    Basics up to inheritance
  • 8. Gotcha
    Ruining this
  • 9. Knockout
    JavaScript MVVM framework
    Awesome
  • 10. Resources / Links
    Get Crockford’sbook (Javascript: The Good Parts)
    http://chutzpah.codeplex.com
    http://www.knockoutjs.com