{"id":117,"date":"2013-09-24T22:02:27","date_gmt":"2013-09-24T22:02:27","guid":{"rendered":"http:\/\/www.javascripttutorials.net\/?p=117"},"modified":"2013-09-24T22:02:27","modified_gmt":"2013-09-24T22:02:27","slug":"identifying-and-eliminating-smells-in-your-javascript-code","status":"publish","type":"post","link":"https:\/\/www.javascripttutorials.net\/identifying-and-eliminating-smells-in-your-javascript-code\/","title":{"rendered":"Identifying and Eliminating Smells in Your JavaScript Code"},"content":{"rendered":"<p>Maybe you&#8217;ve inherited some smelly JavaScript code, or maybe you&#8217;ve written some yourself, rushing to get a feature out the door knowing that you&#8217;re leaving yourself a mess to clean up later.<!--more--><\/p>\n<p>No matter how you end up with smelly code, eliminating smells is an important step toward making code easier to work with &#8211; for you and your fellow developers &#8211; 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&#8217;ll look at some common code smells and how to address them; along the way, we&#8217;ll take a peek at templates, deferreds, promises, and other techniques that can help you tidy up your JavaScript.<\/p>\n<p><iframe loading=\"lazy\" title=\"Rebecca Murphey | JS Minty Fresh: Identifying and Eliminating Smells in Your Code Base | Fronteers 2012\" src=\"https:\/\/player.vimeo.com\/video\/53416986?dnt=1&amp;app_id=122963\" width=\"730\" height=\"411\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\"><\/iframe><\/p>\n<p>Video producer: <a href=\"http:\/\/fronteers.nl\/\">http:\/\/fronteers.nl\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Maybe you&#8217;ve inherited some smelly JavaScript code, or maybe you&#8217;ve written some yourself, rushing to get a feature out the door knowing that you&#8217;re leaving yourself a mess to clean up later.<\/p>\n","protected":false},"author":1,"featured_media":274,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[24],"class_list":["post-117","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-refactoring"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/comments?post=117"}],"version-history":[{"count":0,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/posts\/117\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/media\/274"}],"wp:attachment":[{"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/media?parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/categories?post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/tags?post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}