{"id":592,"date":"2012-03-13T16:16:38","date_gmt":"2012-03-13T16:16:38","guid":{"rendered":"http:\/\/blogs.kent.ac.uk\/mik\/?p=592"},"modified":"2020-05-15T15:46:56","modified_gmt":"2020-05-15T15:46:56","slug":"joc-19","status":"publish","type":"post","link":"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/03\/13\/joc-19\/","title":{"rendered":"JoC #19: Class methods vs instance methods"},"content":{"rendered":"<p><em>\u00a0 \u00a0 \u00a0 If can keep your head when all about you are losing theirs it&#8217;s just possible <\/em><br \/>\n<em>\u00a0 \u00a0 \u00a0 you haven&#8217;t grasped the situation.<\/em><br \/>\n<em>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2014 Jean Kerr<\/em><\/p>\n<p>Today, we&#8217;ve got some background stuff to discuss. Not much happening in terms of new functionality to our project, but important (and, no doubt, incredibly interesting) conceptual information.<\/p>\n<p>Why is there sometimes a classname before a method call and sometimes a variable?<\/p>\n<p>I&#8217;m sure all of us have had sleepless nights where we&#8217;ve been lying awake pondering this question. Today, it shall be answered!<\/p>\n<p><iframe loading=\"lazy\" title=\"The Joy of Code #19: Class methods vs instance methods\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/GC2cpgJWtA8?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-19.mov\">Download video<\/a><\/p>\n<div>Even if you&#8217;re not that interested in discussion of underlying concepts, but just want to GET STUFF DONE \u2014 still, watch this video. You can only become a good programmer (and get stuff done) if you understand what you&#8217;re doing.<\/div>\n<p>I really want you not only to copy what I&#8217;m showing you, but become able to invent and create your own programs. For this, it&#8217;s important to get the concepts.<\/p>\n<p>So, hit start, sit back for a few minutes, and learn something!<\/p>\n<p style=\"text-align: left\"><strong>Concepts discussed<\/strong>: <em>internal method calls, external method calls,\u00a0static methods, instance methods\u00a0<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 \u00a0 If can keep your head when all about you are losing theirs it&#8217;s just possible \u00a0 \u00a0 \u00a0 you haven&#8217;t grasped the situation. \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2014 Jean Kerr Today, we&#8217;ve got some background &hellip; <a href=\"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/03\/13\/joc-19\/\">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":[70,71],"class_list":["post-592","post","type-post","status-publish","format-standard","hentry","category-greenfoot-software-tools","category-joy-of-code","tag-method","tag-method-call"],"_links":{"self":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/592","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=592"}],"version-history":[{"count":1,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/592\/revisions"}],"predecessor-version":[{"id":1093,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/592\/revisions\/1093"}],"wp:attachment":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/media?parent=592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/categories?post=592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/tags?post=592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}