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

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Clean up your javascript act

1,434
views

Published on

Slides from my JavaScript session at DDD North, 2011.

Slides from my JavaScript session at DDD North, 2011.

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,434
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

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