This presentation provides a quick glance at a number of tools that make development with JavaScript easy, quick & bug free. Loads of tools & ideas in it :)
7. Unit Testing
qUnit
Needs just a JS, CSS & HTML file
Simple syntax
Chutzpah
JS Unit Test runner
Can run headless, i.e. no HTML
8. YUI Compressor
From Yahoo (home of Crockford)
Uses a lot of tricks and smarts to shrink & obfuscate
JavaScript
Local & hosted versions exist
9. Trend: Stop thinking in
JavaScriptJavaScript is assembly language for the web
Scott Hanselman, 6 July 2011
JS is the x86 of the web
Brenden Eich, a couple of years ago
JavaScript is the VM of the web
Douglas Crockford, 19 July 2011
The JavaScript we've got now is the assembly language of
the client-side. We can't easily change it, but we have to
start building better tools on top of it.
Jonnycat, Hacker News, 2010
10. CoffeeScript
A more enforced language
Uses current trends in programming language design
Can stop you from shooting yourself in the foot
11. Is CoffeeScript good?
Rather write CoffeeScript than bad JavaScript
Why write bad JavaScript in the first place?
Learn good JavaScript
Realise that it is a prototype language & not an OO language
Use static analysis tooling to learn & improve your JavaScript
12. Other interesting libraries
• Backbone.js – MVVM for JavaScript
• Require.js – Makes sure the JavaScript is loaded &
only loaded when needed
• Underscore.js – Poly fill for backbone & jQuery
• SignalR – A library for the communication between
client, client & service.
• Modernizr – Library for the poly filling of HTML 5 &
CSS