{"id":244,"date":"2008-12-06T23:32:29","date_gmt":"2008-12-06T15:32:29","guid":{"rendered":"http:\/\/www.jhouseconsulting.com\/?p=244"},"modified":"2008-12-06T23:32:29","modified_gmt":"2008-12-06T15:32:29","slug":"vbscript-best-practices","status":"publish","type":"post","link":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/2008\/12\/06\/vbscript-best-practices-244","title":{"rendered":"VBScript best practices"},"content":{"rendered":"<p>If you can&#8217;t tell by now, I love scripting and coding \ud83d\ude42 There is nothing you can&#8217;t achieve, and no problem that cannot be resolved. But there is an art to doing it right. I start by drawing up an <a href=\"http:\/\/en.wikipedia.org\/wiki\/Nassi-Shneiderman_diagram\" target=\"_blank\">N-S (Nassi-Shneiderman) diagram<\/a> or flow chart, and then writing it up in <a href=\"http:\/\/en.wikipedia.org\/wiki\/Pseudocode\" target=\"_blank\">pseudocode<\/a>, which allows me to focus on the logic of the\u00a0program without being distracted by details of language syntax. I choose to write VBScript because then it can then be maintained by colleagues and customers. Although now I&#8217;m starting to get into PowerShell, which is fast becoming the defacto standard. When I write a script I try and abide by several golden rules. <a href=\"http:\/\/robhaupt.blogspot.com\/\" target=\"_blank\">Rob Haupt<\/a> has explained them perfectly in his blog titled <a href=\"http:\/\/robhaupt.blogspot.com\/2008\/07\/my-five-vbscript-best-practices.html\" target=\"_blank\">My five VBScript &#8216;best practices&#8217;<\/a>. I believe that there is no point doing things half hearted. So do it properly or don&#8217;t do it at all!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you can&#8217;t tell by now, I love scripting and coding \ud83d\ude42 There is nothing you can&#8217;t achieve, and no problem that cannot be resolved. But there is an art to doing it right. I start by drawing up an N-S (Nassi-Shneiderman) diagram or flow chart, and then writing it up in pseudocode, which allows &#8230; <a title=\"VBScript best practices\" class=\"read-more\" href=\"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/2008\/12\/06\/vbscript-best-practices-244\" aria-label=\"Read more about VBScript best practices\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[5],"tags":[116,62,115],"class_list":["post-244","post","type-post","status-publish","format-standard","hentry","category-scripting","tag-best-practice","tag-vbscript","tag-vbscript-best-practices"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/comments?post=244"}],"version-history":[{"count":1,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/244\/revisions"}],"predecessor-version":[{"id":245,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/244\/revisions\/245"}],"wp:attachment":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/media?parent=244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/categories?post=244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/tags?post=244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}