{"id":1454,"date":"2014-07-03T15:14:20","date_gmt":"2014-07-03T20:14:20","guid":{"rendered":"https:\/\/blogs.mathworks.com\/videos\/?p=1454"},"modified":"2014-06-23T15:19:48","modified_gmt":"2014-06-23T20:19:48","slug":"bad-coding-practices-to-avoid","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/videos\/2014\/07\/03\/bad-coding-practices-to-avoid\/","title":{"rendered":"Bad coding practices to avoid"},"content":{"rendered":"<p>I was revisiting older posts, and this is one of my <a href=\"https:\/\/blogs.mathworks.com\/videos\/2010\/03\/08\/top-10-matlab-code-practices-that-make-me-cry\/\">most frequently referenced posts<\/a>.<\/p>\n<p><p>\nI teach the MATLAB 101 class to every new hire at MathWorks.  Inevitably, someone will ask me how to make a global variable.  I then Google up: &#8220;How to make MATLAB Doug Cry&#8221; and find the above post.  I think this is a post I should bring up every now and then because these things should be avoided today just like they should have been when I first wrote it.<\/p>\n<p><p>\nI will be back from vacation soon with fresh content.<\/p>\n<p><p>\nThanks,<br \/>\nDoug<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was revisiting older posts, and this is one of my most frequently referenced posts.<\/p>\n<p>I teach the MATLAB 101 class to every new hire at MathWorks.  Inevitably, someone will ask me how to make a&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/videos\/2014\/07\/03\/bad-coding-practices-to-avoid\/\">read more >><\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[25],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts\/1454"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/comments?post=1454"}],"version-history":[{"count":3,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts\/1454\/revisions"}],"predecessor-version":[{"id":1457,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/posts\/1454\/revisions\/1457"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/media?parent=1454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/categories?post=1454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/videos\/wp-json\/wp\/v2\/tags?post=1454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}