Web / HTML5, For Developers

VSW05 Applying JavaScript Patterns

12/12/2012

11:00am - 12:15pm

Level: Intermediate

John Papa

Principal Developer Advocate

Microsoft

JavaScript gets a bad rap sometimes for easily confused global variables, script files that are thousands of lines long, and mixing html with script code. But it doesn't have to be that way. This session will demonstrate common techniques to separate structure (HTML), behavior (JavaScript) and presentation (CSS) with modern Web development. I'll offer a few tips to make your JavaScript more maintainable, manage namespacing, and demonstrate how to implement various JavaScript patterns.

You will learn:
• About JavaScript Patterns such as the Revealing Module Pattern
• How to create clean separation of HTML, CSS and JavaScript
• How to apply the Single responsibility Principle (SRP) to JavaScript