{"id":504,"date":"2020-04-22T05:47:49","date_gmt":"2020-04-22T05:47:49","guid":{"rendered":"https:\/\/www.thecodehub.ie\/news\/?p=504"},"modified":"2020-04-22T05:47:55","modified_gmt":"2020-04-22T05:47:55","slug":"coding-at-home-april-22nd-while-loops","status":"publish","type":"post","link":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/","title":{"rendered":"Coding at Home: April 22nd, while loops"},"content":{"rendered":"\n<p><a href=\"https:\/\/twitch.tv\/thecodehub\">Catch us today at 1pm, Irish time, for some more live coding<\/a>!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Recap<\/h2>\n\n\n\n<p>We finished up logical operators yesterday with a little BuzzFeed-style quiz. Our code looked a little something like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show(\"What is your name?\")\nlet name = ask(\"Name\")\nshow(\"Hi \" + name)\nshow(\"Answer some questions and I'll tell you what type of animal you are.\") \n\nshow(\"Are you house-trained?\")\nvar isHouseTrained = askForBool()\n\nshow(\"If I threw a ball would you chase it?\")\nvar wouldChaseBall = askForBool()\n\n\/\/\ud83e\udd81\ud83d\udc31\ud83d\udc36\ud83d\udc3a\nif isHouseTrained &amp;&amp; wouldChaseBall {\n    print(\"You're a \ud83d\udc36!\")\n} else if !isHouseTrained &amp;&amp; wouldChaseBall {\n    print(\"You're a \ud83d\udc3a!\")\n} else if isHouseTrained &amp;&amp; !wouldChaseBall {\n    print(\"You're a \ud83d\udc31!\")\n} else if !isHouseTrained &amp;&amp; !wouldChaseBall {\n    print(\"You're a \ud83e\udd81!\")\n}<\/code><\/pre>\n\n\n\n<p>Paste that into a Swift Playground on your iPad and try it out!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Today&#8217;s Session<\/h2>\n\n\n\n<p>Today we&#8217;re back with <code>while<\/code> loops.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-medium\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"278\" data-attachment-id=\"505\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/image-49\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-49.png?fit=842%2C780&amp;ssl=1\" data-orig-size=\"842,780\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-49\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-49.png?fit=840%2C778&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-49.png?resize=300%2C278&#038;ssl=1\" alt=\"\" class=\"wp-image-505\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-49.png?resize=300%2C278&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-49.png?resize=768%2C711&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-49.png?w=842&amp;ssl=1 842w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/figure><\/div>\n\n\n\n<p>They require a little more design thinking, and <em>especially<\/em> today&#8217;s playground, where we <em>nest<\/em> loops! This just means we&#8217;ll be running a loop inside of a loop.<\/p>\n\n\n\n<p>Because this is a little bit of a leap, conceptually, we&#8217;re going to take our time and come up with some strategies for reading code that might help you. Not only will they make reading code someone else has written easier, they&#8217;ll make reading and explaining your own code <em>later<\/em> easier. And the tips will help you design your code better, before you even start writing a single line.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-medium\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"166\" data-attachment-id=\"506\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/image-50\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-50.png?fit=1234%2C682&amp;ssl=1\" data-orig-size=\"1234,682\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-50\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-50.png?fit=840%2C464&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-50.png?resize=300%2C166&#038;ssl=1\" alt=\"\" class=\"wp-image-506\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-50.png?resize=300%2C166&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-50.png?resize=1024%2C566&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-50.png?resize=768%2C424&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-50.png?resize=1200%2C663&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-50.png?w=1234&amp;ssl=1 1234w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/figure><\/div>\n\n\n\n<p>If you need to catch up on <code>while<\/code> loops, feel free to <a href=\"https:\/\/youtu.be\/UQTVv4Jgy_4\">watch (or re-watch) yesterday&#8217;s session<\/a>.<\/p>\n\n\n\n<p><a href=\"https:\/\/twitch.tv\/thecodehub\">We&#8217;ll see you at 1pm!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Catch us today at 1pm, Irish time, for some more live coding! Recap We finished up logical operators yesterday with a little BuzzFeed-style quiz. Our code looked a little something like this: Paste that into a Swift Playground on your iPad and try it out! Today&#8217;s Session Today we&#8217;re back with while loops. They require &hellip; <a href=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Coding at Home: April 22nd, while loops&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Coding at Home: April 22nd, while loops, part two!\n\nhttps:\/\/twitch.tv\/thecodehub at 1pm, Irish time","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[9,6,7,4,8],"tags":[14,12,13],"class_list":["post-504","post","type-post","status-publish","format-standard","hentry","category-coding-at-home","category-events","category-learn-to-code-classes","category-programming","category-swift-playgrounds","tag-codingathome","tag-everyonecancode","tag-swiftplaygrounds"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Coding at Home: April 22nd, while loops &#060; The Code Hub<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Coding at Home: April 22nd, while loops &#060; The Code Hub\" \/>\n<meta property=\"og:description\" content=\"Catch us today at 1pm, Irish time, for some more live coding! Recap We finished up logical operators yesterday with a little BuzzFeed-style quiz. Our code looked a little something like this: Paste that into a Swift Playground on your iPad and try it out! Today&#8217;s Session Today we&#8217;re back with while loops. They require &hellip; Continue reading &quot;Coding at Home: April 22nd, while loops&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/\" \/>\n<meta property=\"og:site_name\" content=\"The Code Hub\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/thecodehub\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-22T05:47:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-22T05:47:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-49-300x278.png\" \/>\n<meta name=\"author\" content=\"mhanlon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@thecodehubIE\" \/>\n<meta name=\"twitter:site\" content=\"@thecodehubIE\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"mhanlon\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/22\\\/coding-at-home-april-22nd-while-loops\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/22\\\/coding-at-home-april-22nd-while-loops\\\/\"},\"author\":{\"name\":\"mhanlon\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/person\\\/5a4e2bec3c92667356dda979a9f61fcd\"},\"headline\":\"Coding at Home: April 22nd, while loops\",\"datePublished\":\"2020-04-22T05:47:49+00:00\",\"dateModified\":\"2020-04-22T05:47:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/22\\\/coding-at-home-april-22nd-while-loops\\\/\"},\"wordCount\":184,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/22\\\/coding-at-home-april-22nd-while-loops\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/image-49-300x278.png\",\"keywords\":[\"codingathome\",\"everyonecancode\",\"swiftplaygrounds\"],\"articleSection\":[\"Coding at Home\",\"Events\",\"Learn to Code Classes\",\"Programming\",\"Swift Playgrounds\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/22\\\/coding-at-home-april-22nd-while-loops\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/22\\\/coding-at-home-april-22nd-while-loops\\\/\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/22\\\/coding-at-home-april-22nd-while-loops\\\/\",\"name\":\"Coding at Home: April 22nd, while loops &#060; The Code Hub\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/22\\\/coding-at-home-april-22nd-while-loops\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/22\\\/coding-at-home-april-22nd-while-loops\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/image-49-300x278.png\",\"datePublished\":\"2020-04-22T05:47:49+00:00\",\"dateModified\":\"2020-04-22T05:47:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/22\\\/coding-at-home-april-22nd-while-loops\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/22\\\/coding-at-home-april-22nd-while-loops\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/22\\\/coding-at-home-april-22nd-while-loops\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/image-49.png?fit=842%2C780&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/image-49.png?fit=842%2C780&ssl=1\",\"width\":842,\"height\":780},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/22\\\/coding-at-home-april-22nd-while-loops\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Coding at Home: April 22nd, while loops\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#website\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\",\"name\":\"The Code Hub\",\"description\":\"News from the Code Hub\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\",\"name\":\"The Code Hub\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1\",\"width\":226,\"height\":264,\"caption\":\"The Code Hub\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/facebook.com\\\/thecodehub\",\"https:\\\/\\\/x.com\\\/thecodehubIE\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCx4bznoGDfjJRPfTa4LF9dA\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/person\\\/5a4e2bec3c92667356dda979a9f61fcd\",\"name\":\"mhanlon\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g\",\"caption\":\"mhanlon\"},\"sameAs\":[\"https:\\\/\\\/www.thecodehub.ie\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Coding at Home: April 22nd, while loops &#060; The Code Hub","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/","og_locale":"en_US","og_type":"article","og_title":"Coding at Home: April 22nd, while loops &#060; The Code Hub","og_description":"Catch us today at 1pm, Irish time, for some more live coding! Recap We finished up logical operators yesterday with a little BuzzFeed-style quiz. Our code looked a little something like this: Paste that into a Swift Playground on your iPad and try it out! Today&#8217;s Session Today we&#8217;re back with while loops. They require &hellip; Continue reading \"Coding at Home: April 22nd, while loops\"","og_url":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/","og_site_name":"The Code Hub","article_publisher":"http:\/\/facebook.com\/thecodehub","article_published_time":"2020-04-22T05:47:49+00:00","article_modified_time":"2020-04-22T05:47:55+00:00","og_image":[{"url":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-49-300x278.png","type":"","width":"","height":""}],"author":"mhanlon","twitter_card":"summary_large_image","twitter_creator":"@thecodehubIE","twitter_site":"@thecodehubIE","twitter_misc":{"Written by":"mhanlon","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/#article","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/"},"author":{"name":"mhanlon","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/person\/5a4e2bec3c92667356dda979a9f61fcd"},"headline":"Coding at Home: April 22nd, while loops","datePublished":"2020-04-22T05:47:49+00:00","dateModified":"2020-04-22T05:47:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/"},"wordCount":184,"commentCount":0,"publisher":{"@id":"https:\/\/www.thecodehub.ie\/news\/#organization"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-49-300x278.png","keywords":["codingathome","everyonecancode","swiftplaygrounds"],"articleSection":["Coding at Home","Events","Learn to Code Classes","Programming","Swift Playgrounds"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/","url":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/","name":"Coding at Home: April 22nd, while loops &#060; The Code Hub","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/#primaryimage"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-49-300x278.png","datePublished":"2020-04-22T05:47:49+00:00","dateModified":"2020-04-22T05:47:55+00:00","breadcrumb":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/#primaryimage","url":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-49.png?fit=842%2C780&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-49.png?fit=842%2C780&ssl=1","width":842,"height":780},{"@type":"BreadcrumbList","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/22\/coding-at-home-april-22nd-while-loops\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thecodehub.ie\/news\/"},{"@type":"ListItem","position":2,"name":"Coding at Home: April 22nd, while loops"}]},{"@type":"WebSite","@id":"https:\/\/www.thecodehub.ie\/news\/#website","url":"https:\/\/www.thecodehub.ie\/news\/","name":"The Code Hub","description":"News from the Code Hub","publisher":{"@id":"https:\/\/www.thecodehub.ie\/news\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thecodehub.ie\/news\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.thecodehub.ie\/news\/#organization","name":"The Code Hub","url":"https:\/\/www.thecodehub.ie\/news\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2018\/02\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2018\/02\/TheCodeHubLogo.001-copy.png?fit=226%2C264&ssl=1","width":226,"height":264,"caption":"The Code Hub"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/facebook.com\/thecodehub","https:\/\/x.com\/thecodehubIE","https:\/\/www.youtube.com\/channel\/UCx4bznoGDfjJRPfTa4LF9dA"]},{"@type":"Person","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/person\/5a4e2bec3c92667356dda979a9f61fcd","name":"mhanlon","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b9c657ee2e998340415a9b0faf3625ca2ae609c77433fb6c67b3e7f547e5ba1b?s=96&d=mm&r=g","caption":"mhanlon"},"sameAs":["https:\/\/www.thecodehub.ie"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9ABLU-88","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/comments?post=504"}],"version-history":[{"count":1,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/504\/revisions"}],"predecessor-version":[{"id":507,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/504\/revisions\/507"}],"wp:attachment":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/media?parent=504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/categories?post=504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/tags?post=504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}