{"id":477,"date":"2012-01-14T11:47:40","date_gmt":"2012-01-14T11:47:40","guid":{"rendered":"http:\/\/blogs.kent.ac.uk\/mik\/?p=477"},"modified":"2022-09-14T14:59:38","modified_gmt":"2022-09-14T14:59:38","slug":"joc-8","status":"publish","type":"post","link":"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/01\/14\/joc-8\/","title":{"rendered":"JoC #8: Keeping your code clean"},"content":{"rendered":"<p><em>\u00a0 \u00a0 \u00a0 Always code as if the guy who ends up maintaining your code will <\/em><br \/>\n<em>\u00a0 \u00a0 \u00a0 be a violent psychopath who knows where you live. <\/em><br \/>\n<em>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2014 John F. Woods<\/em><\/p>\n<p>Here it is: The Joy of Code, Episode 8.<\/p>\n<p>This time: housekeeping. No new functionality, but good coding practice. Enjoy.<\/p>\n<p><iframe loading=\"lazy\" title=\"The Joy of Code #8: Keeping your n\u0336o\u0336s\u0336e\u0336 code clean\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/Ep6Z7oxM7V8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p style=\"text-align: right\"><a href=\"http:\/\/www.greenfoot.org\/static\/joc\/mov\/JOC-8.mov\">Download video<\/a><\/p>\n<p>Below is a version of the scenario to download as it is so far (at the end of this episode). If you haven&#8217;t been coding along with the previous episodes, but want to start here, use this version.<\/p>\n<p><strong>Concepts discussed<\/strong>:\u00a0<em>defining methods, code quality<\/em><\/p>\n<p>Scenario download:\u00a0\u00a0<a href=\"http:\/\/www.greenfoot.org\/download\/files\/joc\/trick-the-turtle-v2.zip\">trick-the-turtle-v2.zip<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 \u00a0 Always code as if the guy who ends up maintaining your code will \u00a0 \u00a0 \u00a0 be a violent psychopath who knows where you live. \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2014 John F. Woods Here it is: &hellip; <a href=\"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/01\/14\/joc-8\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":179,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,6],"tags":[72,103],"class_list":["post-477","post","type-post","status-publish","format-standard","hentry","category-greenfoot-software-tools","category-joy-of-code","tag-method-definition","tag-style"],"_links":{"self":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/users\/179"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/comments?post=477"}],"version-history":[{"count":2,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/477\/revisions"}],"predecessor-version":[{"id":1114,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/477\/revisions\/1114"}],"wp:attachment":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/media?parent=477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/categories?post=477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/tags?post=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}