Clean Up Your JavaScript ActAshicMahtabhttp://www.heartysoft.com@ashic
JavaScriptMessyDangerousExtremely flexible…too flexible?
JavaScriptFollowing a few simple patterns (“The Good Parts”) can make it manageable. Writing tests…need I even ask?
JavaScript TestingQUnitChutzpahBuild ScriptTeamCityDemo
QUnittestmodule okequalstopstart
Objectsvar 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 :@
Functional ObjectsDemoBasics up to inheritance
GotchaRuining this
KnockoutJavaScript MVVM frameworkAwesome
Resources / LinksGet Crockford’sbook (Javascript: The Good Parts)http://chutzpah.codeplex.comhttp://www.knockoutjs.com

Clean up your javascript act