{"id":548,"date":"2012-01-25T14:40:18","date_gmt":"2012-01-25T14:40:18","guid":{"rendered":"http:\/\/blogs.kent.ac.uk\/mik\/?p=548"},"modified":"2020-05-15T15:46:58","modified_gmt":"2020-05-15T15:46:58","slug":"joc-14","status":"publish","type":"post","link":"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/01\/25\/joc-14\/","title":{"rendered":"JoC #14: A first look at variables"},"content":{"rendered":"<p><em>\u00a0 \u00a0 \u00a0 I&#8217;m a great believer in luck, and I find the harder I work the more I have of it.<\/em><br \/>\n<em>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2014 Thomas Jefferson<\/em><\/p>\n<p>Let&#8217;s move on to another important concept: variables.<\/p>\n<p>There&#8217;s a lot to say about variables, so we start with oner example: An <em>int<\/em> variable as a counter.<\/p>\n<p><iframe loading=\"lazy\" title=\"The Joy of Code #14: A first look at variables\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/apFNNMVK6u4?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-14.mov\">Download video<\/a><\/p>\n<p><strong>Concepts discussed<\/strong>:\u00a0<em>variable, field, int, ++<\/em><\/p>\n<div><em><br \/>\n<\/em><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 \u00a0 I&#8217;m a great believer in luck, and I find the harder I work the more I have of it. \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2014 Thomas Jefferson Let&#8217;s move on to another important concept: variables. There&#8217;s &hellip; <a href=\"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/01\/25\/joc-14\/\">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":[49,114],"class_list":["post-548","post","type-post","status-publish","format-standard","hentry","category-greenfoot-software-tools","category-joy-of-code","tag-field","tag-variable"],"_links":{"self":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/548","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=548"}],"version-history":[{"count":1,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/548\/revisions"}],"predecessor-version":[{"id":1101,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/548\/revisions\/1101"}],"wp:attachment":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/media?parent=548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/categories?post=548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/tags?post=548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}