{"id":13,"date":"2008-03-24T21:30:10","date_gmt":"2008-03-25T04:30:10","guid":{"rendered":"http:\/\/techclub.leopolus.com\/?p=13"},"modified":"2008-03-24T21:30:10","modified_gmt":"2008-03-25T04:30:10","slug":"the-art-of-code","status":"publish","type":"post","link":"https:\/\/www.mypctechs.com\/techclub\/the-art-of-code\/","title":{"rendered":"The art of code"},"content":{"rendered":"<p>I&#8217;m going to run down a list of things that you should never do and things that you should definitely do when writing code for a website application. These are based on real-life examples&#8230; Needless to say. Never DO is often the result of other peoples code that I&#8217;ve had to clean up while Aways DO is just common sense!<\/p>\n<p>Never DO:<br \/>\nNever create a form and leave fields open for users to type anything they want into them. Chances are very good that they will! Ever tried to clean up 200,000 bad database records?<\/p>\n<p>Never create a web page that bulk emails 2000 people as soon as you load the page into a browser, with no warning or confirmation message and a cryptic result message such as &#8220;Done&#8221; when it runs, so that people who accidentally stumble upon your page have no clue that they&#8217;ve just spammed 2000 people! &#8211; That is, until AFTER the angry responses come in!<\/p>\n<p>Always DO:<br \/>\nAlways use a loop for everything you can to save time.<\/p>\n<p>Always build an administrative page for every database\/application to simplify management and editing of submitted data.<\/p>\n<p>More to follow&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m going to run down a list of things that you should never do and things that you should definitely do when writing code for a website application. These are based on real-life examples&#8230; Needless to say. Never DO is often the result of other peoples code that I&#8217;ve had to clean up while Aways [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-tcg"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.mypctechs.com\/techclub\/wp-json\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mypctechs.com\/techclub\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mypctechs.com\/techclub\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mypctechs.com\/techclub\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mypctechs.com\/techclub\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":0,"href":"https:\/\/www.mypctechs.com\/techclub\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mypctechs.com\/techclub\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mypctechs.com\/techclub\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mypctechs.com\/techclub\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}