{"id":436,"date":"2020-04-09T05:57:10","date_gmt":"2020-04-09T05:57:10","guid":{"rendered":"https:\/\/www.thecodehub.ie\/news\/?p=436"},"modified":"2020-04-09T05:57:16","modified_gmt":"2020-04-09T05:57:16","slug":"coding-at-home-april-9th","status":"publish","type":"post","link":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/","title":{"rendered":"Coding at Home: April 9th"},"content":{"rendered":"\n<p><strong>Live stream, today at 1pm Irish time<\/strong>: <a href=\"https:\/\/twitch.tv\/thecodehub\">https:\/\/twitch.tv\/thecodehub<\/a> or catch up on <a href=\"https:\/\/www.youtube.com\/playlist?list=PLc_MDphRrtdJhvBXZMn5lbddqW4F3kaPd\">the <code>kids.code()<\/code> playlist on YouTube<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">More Types<\/h2>\n\n\n\n<p>We&#8217;re going to go over types and initializers (chapter 6 of Everyone Can Code Puzzles) one last time today. It&#8217;s a deep subject, and a bit of a shift from our previous lessons, which is why we&#8217;re spending a few days on it.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"439\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/image-21-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?fit=2048%2C1536&amp;ssl=1\" data-orig-size=\"2048,1536\" 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-21\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?fit=840%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?fit=840%2C630&amp;ssl=1\" alt=\"\" class=\"wp-image-439\" width=\"377\" height=\"282\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?w=2048&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?resize=1024%2C768&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?resize=1536%2C1152&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?resize=1200%2C900&amp;ssl=1 1200w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?w=1680&amp;ssl=1 1680w\" sizes=\"auto, (max-width: 377px) 85vw, 377px\" \/><\/figure><\/div>\n\n\n\n<p>We saw one student use two turtles to draw the picture above, each <strong>instance<\/strong> of a turtle taking responsibility for drawing a different part of the picture. This is a nice use of instances to divide up tasks. A lot of what we&#8217;re covering these days is about organizing our code.<\/p>\n\n\n\n<p>If you practice your Types and Initialization playgrounds you&#8217;ll get a ton of work on organizing your code. I would recommend &#8220;Setting the Right Portal&#8221; for practice with setting properties on instances. For organizing your code, the &#8220;Train Your Expert&#8221; page is excellent.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"441\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/image-23-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-23.png?fit=640%2C1238&amp;ssl=1\" data-orig-size=\"640,1238\" 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-23\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-23.png?fit=529%2C1024&amp;ssl=1\" src=\"https:\/\/i1.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-23.png?fit=529%2C1024&amp;ssl=1\" alt=\"\" class=\"wp-image-441\" width=\"267\" height=\"517\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-23.png?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-23.png?resize=155%2C300&amp;ssl=1 155w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-23.png?resize=529%2C1024&amp;ssl=1 529w\" sizes=\"auto, (max-width: 267px) 85vw, 267px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">The Anatomy of a Type<\/h2>\n\n\n\n<p>Lastly,  we looked at <em>how<\/em> a type is constructed, just to have a look at the guts of what we were doing.<\/p>\n\n\n\n<p>For kicks, we designed a <code>Dog<\/code> type. This is something you might do if your code was part of an application that cataloged dogs&#8230; or trained them. We defined a <strong>property<\/strong>, called <code>name<\/code>, and a <strong>method<\/strong>, called <code>chaseStick()<\/code>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"444\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/image-26-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-26.png?fit=877%2C1079&amp;ssl=1\" data-orig-size=\"877,1079\" 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-26\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-26.png?fit=832%2C1024&amp;ssl=1\" src=\"https:\/\/i2.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-26.png?fit=832%2C1024&amp;ssl=1\" alt=\"\" class=\"wp-image-444\" width=\"373\" height=\"459\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-26.png?w=877&amp;ssl=1 877w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-26.png?resize=244%2C300&amp;ssl=1 244w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-26.png?resize=832%2C1024&amp;ssl=1 832w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-26.png?resize=768%2C945&amp;ssl=1 768w\" sizes=\"auto, (max-width: 373px) 85vw, 373px\" \/><\/figure><\/div>\n\n\n\n<p>The point of this exercise wasn&#8217;t for us to go off creating our own types now. It was just to give you an idea of <em>how<\/em> types are constructed to demystify the code you&#8217;ve been using so far.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Today&#8217;s Session<\/h2>\n\n\n\n<p>For today&#8217;s session we&#8217;re going to dive into <em>another<\/em> new playground, called Shapes.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"443\" data-permalink=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/image-25-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-25.png?fit=442%2C334&amp;ssl=1\" data-orig-size=\"442,334\" 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-25\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-25.png?fit=442%2C334&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-25.png?resize=231%2C175&#038;ssl=1\" alt=\"\" class=\"wp-image-443\" width=\"231\" height=\"175\" srcset=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-25.png?w=442&amp;ssl=1 442w, https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-25.png?resize=300%2C227&amp;ssl=1 300w\" sizes=\"auto, (max-width: 231px) 85vw, 231px\" \/><\/figure><\/div>\n\n\n\n<p>This will be our last stop in Chapter 6 of Everyone Can Code Puzzles. We&#8217;ll get to see a few new types, create some instances, and interact with those instances.<\/p>\n\n\n\n<p>See you at 1pm!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Live stream, today at 1pm Irish time: https:\/\/twitch.tv\/thecodehub or catch up on the kids.code() playlist on YouTube. More Types We&#8217;re going to go over types and initializers (chapter 6 of Everyone Can Code Puzzles) one last time today. It&#8217;s a deep subject, and a bit of a shift from our previous lessons, which is why &hellip; <a href=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Coding at Home: April 9th&#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 9th - The Last of the Types!\nhttps:\/\/twitch.tv.theocdehub 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":[],"class_list":["post-436","post","type-post","status-publish","format-standard","hentry","category-coding-at-home","category-events","category-learn-to-code-classes","category-programming","category-swift-playgrounds"],"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 9th &#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\/09\/coding-at-home-april-9th\/\" \/>\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 9th &#060; The Code Hub\" \/>\n<meta property=\"og:description\" content=\"Live stream, today at 1pm Irish time: https:\/\/twitch.tv\/thecodehub or catch up on the kids.code() playlist on YouTube. More Types We&#8217;re going to go over types and initializers (chapter 6 of Everyone Can Code Puzzles) one last time today. It&#8217;s a deep subject, and a bit of a shift from our previous lessons, which is why &hellip; Continue reading &quot;Coding at Home: April 9th&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/\" \/>\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-09T05:57:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-09T05:57:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?fit=840%2C630&amp;ssl=1\" \/>\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=\"2 minutes\" \/>\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\\\/09\\\/coding-at-home-april-9th\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/09\\\/coding-at-home-april-9th\\\/\"},\"author\":{\"name\":\"mhanlon\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#\\\/schema\\\/person\\\/5a4e2bec3c92667356dda979a9f61fcd\"},\"headline\":\"Coding at Home: April 9th\",\"datePublished\":\"2020-04-09T05:57:10+00:00\",\"dateModified\":\"2020-04-09T05:57:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/09\\\/coding-at-home-april-9th\\\/\"},\"wordCount\":321,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/09\\\/coding-at-home-april-9th\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/image-21.png?fit=840%2C630&amp;ssl=1\",\"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\\\/09\\\/coding-at-home-april-9th\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/09\\\/coding-at-home-april-9th\\\/\",\"url\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/09\\\/coding-at-home-april-9th\\\/\",\"name\":\"Coding at Home: April 9th &#060; The Code Hub\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/09\\\/coding-at-home-april-9th\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/09\\\/coding-at-home-april-9th\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/image-21.png?fit=840%2C630&amp;ssl=1\",\"datePublished\":\"2020-04-09T05:57:10+00:00\",\"dateModified\":\"2020-04-09T05:57:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/09\\\/coding-at-home-april-9th\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/09\\\/coding-at-home-april-9th\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/09\\\/coding-at-home-april-9th\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/image-21.png?fit=840%2C630&amp;ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.thecodehub.ie\\\/news\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/image-21.png?fit=840%2C630&amp;ssl=1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/2020\\\/04\\\/09\\\/coding-at-home-april-9th\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.thecodehub.ie\\\/news\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Coding at Home: April 9th\"}]},{\"@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 9th &#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\/09\/coding-at-home-april-9th\/","og_locale":"en_US","og_type":"article","og_title":"Coding at Home: April 9th &#060; The Code Hub","og_description":"Live stream, today at 1pm Irish time: https:\/\/twitch.tv\/thecodehub or catch up on the kids.code() playlist on YouTube. More Types We&#8217;re going to go over types and initializers (chapter 6 of Everyone Can Code Puzzles) one last time today. It&#8217;s a deep subject, and a bit of a shift from our previous lessons, which is why &hellip; Continue reading \"Coding at Home: April 9th\"","og_url":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/","og_site_name":"The Code Hub","article_publisher":"http:\/\/facebook.com\/thecodehub","article_published_time":"2020-04-09T05:57:10+00:00","article_modified_time":"2020-04-09T05:57:16+00:00","og_image":[{"url":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?fit=840%2C630&amp;ssl=1","type":"","width":"","height":""}],"author":"mhanlon","twitter_card":"summary_large_image","twitter_creator":"@thecodehubIE","twitter_site":"@thecodehubIE","twitter_misc":{"Written by":"mhanlon","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/#article","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/"},"author":{"name":"mhanlon","@id":"https:\/\/www.thecodehub.ie\/news\/#\/schema\/person\/5a4e2bec3c92667356dda979a9f61fcd"},"headline":"Coding at Home: April 9th","datePublished":"2020-04-09T05:57:10+00:00","dateModified":"2020-04-09T05:57:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/"},"wordCount":321,"commentCount":1,"publisher":{"@id":"https:\/\/www.thecodehub.ie\/news\/#organization"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?fit=840%2C630&amp;ssl=1","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\/09\/coding-at-home-april-9th\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/","url":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/","name":"Coding at Home: April 9th &#060; The Code Hub","isPartOf":{"@id":"https:\/\/www.thecodehub.ie\/news\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/#primaryimage"},"image":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?fit=840%2C630&amp;ssl=1","datePublished":"2020-04-09T05:57:10+00:00","dateModified":"2020-04-09T05:57:16+00:00","breadcrumb":{"@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/#primaryimage","url":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?fit=840%2C630&amp;ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.thecodehub.ie\/news\/wp-content\/uploads\/2020\/04\/image-21.png?fit=840%2C630&amp;ssl=1"},{"@type":"BreadcrumbList","@id":"https:\/\/www.thecodehub.ie\/news\/2020\/04\/09\/coding-at-home-april-9th\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thecodehub.ie\/news\/"},{"@type":"ListItem","position":2,"name":"Coding at Home: April 9th"}]},{"@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-72","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/436","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=436"}],"version-history":[{"count":1,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":445,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/posts\/436\/revisions\/445"}],"wp:attachment":[{"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/media?parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/categories?post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thecodehub.ie\/news\/wp-json\/wp\/v2\/tags?post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}