Maybe you’ve inherited some smelly code, or maybe you’ve written some yourself, rushing to get a feature out the door knowing that you’re leaving yourself a mess to clean up later.
No matter how you end up with smelly code, eliminating smells is an important step toward making code easier to work with, for you and your fellow developers, reducing opportunities for introducing bugs, and making your code easier to test. Heck, it can even help you get a new job. In this talk, we’ll look at some common code smells and how to address them; along the way, we’ll take a peek at templates, deferreds, promises and other techniques that can help you tidy up your JavaScript.