{"id":669,"date":"2012-05-03T12:52:16","date_gmt":"2012-05-03T11:52:16","guid":{"rendered":"http:\/\/blogs.kent.ac.uk\/mik\/?p=669"},"modified":"2022-09-14T15:22:12","modified_gmt":"2022-09-14T15:22:12","slug":"joc-30","status":"publish","type":"post","link":"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/05\/03\/joc-30\/","title":{"rendered":"JoC #30: Introduction to loops"},"content":{"rendered":"<p><em>\u00a0 \u00a0 \u00a0 Whatever begins, also ends.<\/em><br \/>\n<em><span style=\"text-align: left\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2014 Seneca<br \/>\n<\/span><\/em><em><span style=\"text-align: left\">\u00a0 \u00a0 \u00a0 (Seneca obviously didn&#8217;t know about getting your loop condition wrong &#8230; \u00a0\u2014 mik)<\/span><\/em><\/p>\n<p>Today, we are introducing a new concept: loops. Or, if you want to know more precisely: the <em>while loop<\/em>.<\/p>\n<p>But, as always, we&#8217;re not doing this by just talking about the theory in a vacuum \u2013 we actually need it to progress with one of our projects, the Breakout game that we have <a href=\"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/03\/26\/joc-24\/\">seen before<\/a>.<\/p>\n<p>Loops are a concept fundamental to all programming, so if you are a learner, pay close attention. You will need this again later!<\/p>\n<p><iframe loading=\"lazy\" title=\"The Joy of Code #30: Introduction to loops\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/hf0-xhwnYMY?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-30.mov\">Download video<\/a><\/p>\n<p><strong>Concepts discussed<\/strong>:\u00a0<em>loops, while loop<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 \u00a0 Whatever begins, also ends. \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u2014 Seneca \u00a0 \u00a0 \u00a0 (Seneca obviously didn&#8217;t know about getting your loop condition wrong &#8230; \u00a0\u2014 mik) Today, we are introducing a new concept: loops. Or, &hellip; <a href=\"https:\/\/blogs.kcl.ac.uk\/proged\/2012\/05\/03\/joc-30\/\">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":[69,119],"class_list":["post-669","post","type-post","status-publish","format-standard","hentry","category-greenfoot-software-tools","category-joy-of-code","tag-loop","tag-while-loop"],"_links":{"self":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/669","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=669"}],"version-history":[{"count":3,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/669\/revisions"}],"predecessor-version":[{"id":1123,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/669\/revisions\/1123"}],"wp:attachment":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/media?parent=669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/categories?post=669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/tags?post=669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}