HTML5 Zone is brought to you in partnership with:

Allen is a content curator at DZone. He enjoys writing in the third person and composing short biographies about himself. Allen is a DZone Zone Leader and has posted 282 posts at DZone. You can read more from them at their website. View Full User Profile

Video: Write cleaner, more efficient JavaScript with JS Minty Fresh

  • submit to reddit

In this presentation given at DZone HQ, Rebecca Murphey talks JS Minty Fresh: identifying and eliminating bad smells in JavaScript. No matter how you ended up with smelly code--whether you inherited it, or you wrote it in a rush--you have a mess to clean up. 

Eliminating smell is an important step to making code easier to work with, for you and for your fellow developers. This way, you reduce opportunities for introducing bugs, makes your code easier to test, and can even help you get a new job.

We'll look at some common code smells and how to address them, by using templates, deferreds, promises, and other techniques that can help you tidy up your JavaScript.