{"id":105,"date":"2011-06-27T17:17:00","date_gmt":"2011-06-27T17:17:00","guid":{"rendered":"http:\/\/madprogrammer76.wordpress.com\/2011\/06\/27\/code-simplified"},"modified":"2013-12-02T14:31:12","modified_gmt":"2013-12-02T19:31:12","slug":"code-simplified","status":"publish","type":"post","link":"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/","title":{"rendered":"Code Simplified"},"content":{"rendered":"<p>Working with junior developers through out my years, I have seen some funky and fun ways of coding. \u00a0The three styles I have seen the most are the following. \u00a0 \u00a0I have come up with BEFORE and AFTER examples. \u00a0Now the AFTER is just my opinion on how the code should be rewritten, but is not necessary the only way.<\/p>\n<p><b>BEFORE<\/b><br \/><b><\/b><\/p>\n<div style=\"margin:0;\"><b>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/b>\u00a0<span class=\"Apple-style-span\" style=\"color:blue;\">String strDelim = &#8220;;,&#8221;;<\/span><\/div>\n<div style=\"margin:0;\"><span class=\"Apple-style-span\" style=\"color:blue;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Char[] delimiter = strDelim.ToCharArray();<\/span><\/div>\n<p><span class=\"Apple-style-span\" style=\"color:blue;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0String[] emails = to.Split(delimiter);<\/span><\/p>\n<p><b>AFTER<\/b><br \/><b><\/b><br \/><b>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/b><span class=\"Apple-style-span\" style=\"color:blue;\">Char[] delimiter = new[] { &#8216;;&#8217;, &#8216;,&#8217; };<\/span><br \/><span class=\"Apple-style-span\" style=\"color:blue;\"><\/p>\n<div style=\"display:inline!important;margin:0;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/div>\n<p><\/span><span class=\"Apple-style-span\" style=\"color:blue;\"><\/p>\n<div style=\"display:inline!important;\">String[] emails = to.Split(delimiter);<\/div>\n<p><\/span><\/p>\n<div><span class=\"Apple-style-span\" style=\"color:blue;\"><br \/><\/span><\/div>\n<div><b>EXPLANATION<\/b><\/div>\n<div><span class=\"Apple-style-span\" style=\"color:#38761d;\">I prefer this rewrite because it is smaller in number of lines and it is less instructions to the compiler. \u00a0Although this example was 3 lines rewritten as two and seems small; in a large program, it adds up if done enough.\u00a0<\/span><\/p>\n<div>\n<div style=\"display:inline!important;\"><\/div>\n<\/div>\n<div>\n<div style=\"display:inline!important;\"><b>BEFORE<\/b><\/div>\n<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span class=\"Apple-style-span\" style=\"color:blue;\">String answer = &#8220;&#8221;;<\/span><\/div>\n<div><span class=\"Apple-style-span\" style=\"color:blue;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0if(rdButton.Checked == true)<\/span><\/div>\n<div><span class=\"Apple-style-span\" style=\"color:blue;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0{<\/span><\/div>\n<div><span class=\"Apple-style-span\" style=\"color:blue;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0answer = &#8220;Test 1&#8221;;<\/span><\/div>\n<div><span class=\"Apple-style-span\" style=\"color:blue;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0}<\/span><\/div>\n<div><span class=\"Apple-style-span\" style=\"color:blue;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0else<\/span><\/div>\n<div><span class=\"Apple-style-span\" style=\"color:blue;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0{<\/span><\/div>\n<div><span class=\"Apple-style-span\" style=\"color:blue;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0answer = &#8220;Test 2&#8221;;<\/span><\/div>\n<div><span class=\"Apple-style-span\" style=\"color:blue;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0}<\/span><\/div>\n<div>\n<div style=\"display:inline!important;\"><b><br \/><\/b><\/div>\n<\/div>\n<div>\n<div style=\"display:inline!important;\"><b>AFTER<\/b><\/div>\n<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span class=\"Apple-style-span\" style=\"color:blue;\">String answer = rdButton.Checked ? &#8220;Test 1&#8221; : &#8220;Test 2&#8221;;<\/span><\/div>\n<div>\n<div><b><br \/><\/b><\/div>\n<div><b>EXPLANATION<\/b><\/div>\n<div><span class=\"Apple-style-span\" style=\"color:#38761d;\">This rewrite uses an old C style called Immediate IF. \u00a0 This takes your simple if block statement and breaks it down to one line. \u00a0The other change is the <\/span><span class=\"Apple-style-span\" style=\"color:blue;\">== true <\/span><span class=\"Apple-style-span\" style=\"color:#38761d;\">was removed. Since the\u00a0<\/span><span class=\"Apple-style-span\" style=\"color:blue;\">rdButton.Checked <\/span><span class=\"Apple-style-span\" style=\"color:#38761d;\">already returns <\/span><span class=\"Apple-style-span\" style=\"color:blue;\">true \/ false<\/span><span class=\"Apple-style-span\" style=\"color:#38761d;\">, it is not required to conduct an additional check.<\/span><\/div>\n<\/div>\n<div><b><span class=\"Apple-style-span\" style=\"color:#38761d;\"><br \/><\/span><\/b><\/div>\n<div>\n<div>\n<div style=\"display:inline!important;margin:0;\"><b>BEFORE<\/b><\/div>\n<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span class=\"Apple-style-span\" style=\"color:blue;\">String rpt = &#8220;Error at Line: &#8221; + lineNumber + &#8220;n&#8221; + &#8220;Description: &#8221; +\u00a0<\/span><\/div>\n<div><span class=\"Apple-style-span\" style=\"color:blue;\"><br \/><\/span><\/div>\n<div>\n<div style=\"display:inline!important;margin:0;\"><b>AFTER<\/b><\/div>\n<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<span class=\"Apple-style-span\" style=\"color:blue;\">String rpt = String.Format(&#8220;Error at Line: {0}nDescription: {1}&#8221;, lineNumber, Description);<\/span><\/div>\n<\/div>\n<div>\n<div><b><br \/><\/b><\/div>\n<div><b>EXPLANATION<\/b><\/div>\n<div><span class=\"Apple-style-span\" style=\"color:#38761d;\">This change uses the <\/span><span class=\"Apple-style-span\" style=\"color:blue;\">String.Forma<\/span><span class=\"Apple-style-span\" style=\"color:#38761d;\">t command to take a pre-written string and inject the variables into their appropriate position within the string. \u00a0This is probably more of a preference of mine, but I think it looks cleaner. \u00a0 The code does run faster when you are not adding string after string together, but with today&#8217;s processors and memory capabilities the savings is probably not much. \u00a0The main\u00a0benefit\u00a0is you can define these pre-written strings once and used them in this manner multiple times throughout the same piece of code. It will look cleaner overall.<\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"blogger-post-footer\"><img width='1' height='1' src='' alt='' \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Working with junior developers through out my years, I have seen some funky and fun ways of coding. \u00a0The three styles I have seen the most are the following. \u00a0 \u00a0I have come up with BEFORE and AFTER examples. \u00a0Now the AFTER is just my opinion on how the code should be rewritten, but is &hellip; <a href=\"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Code Simplified<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,24,73],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>Code Simplified - LDNDeveloper<\/title>\r\n<meta name=\"description\" content=\"Working with junior developers through out my years, I have seen some funky and fun ways of coding. Here are some ways to simplify your code.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Code Simplified - LDNDeveloper\" \/>\r\n<meta property=\"og:description\" content=\"Working with junior developers through out my years, I have seen some funky and fun ways of coding. Here are some ways to simplify your code.\" \/>\r\n<meta property=\"og:url\" content=\"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/\" \/>\r\n<meta property=\"og:site_name\" content=\"LDNDeveloper\" \/>\r\n<meta property=\"article:published_time\" content=\"2011-06-27T17:17:00+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2013-12-02T19:31:12+00:00\" \/>\r\n<meta name=\"author\" content=\"andrewpallant\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:creator\" content=\"@ldnDeveloper\" \/>\r\n<meta name=\"twitter:site\" content=\"@LdnDeveloper\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"andrewpallant\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/\"},\"author\":{\"name\":\"andrewpallant\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/0e7b5e71751000e8f66b17b69ef4ab97\"},\"headline\":\"Code Simplified\",\"datePublished\":\"2011-06-27T17:17:00+00:00\",\"dateModified\":\"2013-12-02T19:31:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/\"},\"wordCount\":311,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84\"},\"articleSection\":[\"Better Coding\",\"Developer\",\"self-improvement\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/\",\"url\":\"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/\",\"name\":\"Code Simplified - LDNDeveloper\",\"isPartOf\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#website\"},\"datePublished\":\"2011-06-27T17:17:00+00:00\",\"dateModified\":\"2013-12-02T19:31:12+00:00\",\"description\":\"Working with junior developers through out my years, I have seen some funky and fun ways of coding. Here are some ways to simplify your code.\",\"breadcrumb\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/andrewpallant.ca\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Code Simplified\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#website\",\"url\":\"http:\/\/andrewpallant.ca\/wordpress\/\",\"name\":\"LDNDeveloper\",\"description\":\"Learning, Growing and Sharing.\",\"publisher\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/andrewpallant.ca\/wordpress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84\",\"name\":\"ldnDeveloper\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/andrewpallant.ca\/wordpress\/wp-content\/uploads\/2017\/05\/cropped-AAEAAQAAAAAAAAXQAAAAJDQxMGRlMzFjLWM4ODctNDk1NC05M2EyLWE1NDNhNTRiZjVlYw-2.jpg\",\"contentUrl\":\"https:\/\/andrewpallant.ca\/wordpress\/wp-content\/uploads\/2017\/05\/cropped-AAEAAQAAAAAAAAXQAAAAJDQxMGRlMzFjLWM4ODctNDk1NC05M2EyLWE1NDNhNTRiZjVlYw-2.jpg\",\"width\":512,\"height\":512,\"caption\":\"ldnDeveloper\"},\"logo\":{\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/\"},\"description\":\"Andrew Pallant (@LdnDeveloper) has been a web, database and desktop developer for over 16 years. Andrew has worked on projects that ranged from factory automation to writing business applications. Most recently he has been heavily involved in various forms for ecommerce projects. Over the years Andrew has worn many hats: Project Manager, IT Manager, Lead Developer, Supervisor of Developers and many more - See more at: http:\/\/www.unlatched.com\/#sthash.8DiTkpKy.dpuf\",\"sameAs\":[\"http:\/\/www.andrewpallant.ca\",\"https:\/\/x.com\/LdnDeveloper\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/0e7b5e71751000e8f66b17b69ef4ab97\",\"name\":\"andrewpallant\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"andrewpallant\"},\"url\":\"http:\/\/andrewpallant.ca\/wordpress\/author\/andrewpallant\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Code Simplified - LDNDeveloper","description":"Working with junior developers through out my years, I have seen some funky and fun ways of coding. Here are some ways to simplify your code.","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":"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/","og_locale":"en_US","og_type":"article","og_title":"Code Simplified - LDNDeveloper","og_description":"Working with junior developers through out my years, I have seen some funky and fun ways of coding. Here are some ways to simplify your code.","og_url":"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/","og_site_name":"LDNDeveloper","article_published_time":"2011-06-27T17:17:00+00:00","article_modified_time":"2013-12-02T19:31:12+00:00","author":"andrewpallant","twitter_card":"summary_large_image","twitter_creator":"@ldnDeveloper","twitter_site":"@LdnDeveloper","twitter_misc":{"Written by":"andrewpallant","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/#article","isPartOf":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/"},"author":{"name":"andrewpallant","@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/0e7b5e71751000e8f66b17b69ef4ab97"},"headline":"Code Simplified","datePublished":"2011-06-27T17:17:00+00:00","dateModified":"2013-12-02T19:31:12+00:00","mainEntityOfPage":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/"},"wordCount":311,"commentCount":0,"publisher":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84"},"articleSection":["Better Coding","Developer","self-improvement"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/","url":"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/","name":"Code Simplified - LDNDeveloper","isPartOf":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/#website"},"datePublished":"2011-06-27T17:17:00+00:00","dateModified":"2013-12-02T19:31:12+00:00","description":"Working with junior developers through out my years, I have seen some funky and fun ways of coding. Here are some ways to simplify your code.","breadcrumb":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/andrewpallant.ca\/wordpress\/code-simplified\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/andrewpallant.ca\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Code Simplified"}]},{"@type":"WebSite","@id":"http:\/\/andrewpallant.ca\/wordpress\/#website","url":"http:\/\/andrewpallant.ca\/wordpress\/","name":"LDNDeveloper","description":"Learning, Growing and Sharing.","publisher":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/andrewpallant.ca\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/f6f5bb1ac3e0c5a54a8b5ce35fd67b84","name":"ldnDeveloper","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/andrewpallant.ca\/wordpress\/wp-content\/uploads\/2017\/05\/cropped-AAEAAQAAAAAAAAXQAAAAJDQxMGRlMzFjLWM4ODctNDk1NC05M2EyLWE1NDNhNTRiZjVlYw-2.jpg","contentUrl":"https:\/\/andrewpallant.ca\/wordpress\/wp-content\/uploads\/2017\/05\/cropped-AAEAAQAAAAAAAAXQAAAAJDQxMGRlMzFjLWM4ODctNDk1NC05M2EyLWE1NDNhNTRiZjVlYw-2.jpg","width":512,"height":512,"caption":"ldnDeveloper"},"logo":{"@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/"},"description":"Andrew Pallant (@LdnDeveloper) has been a web, database and desktop developer for over 16 years. Andrew has worked on projects that ranged from factory automation to writing business applications. Most recently he has been heavily involved in various forms for ecommerce projects. Over the years Andrew has worn many hats: Project Manager, IT Manager, Lead Developer, Supervisor of Developers and many more - See more at: http:\/\/www.unlatched.com\/#sthash.8DiTkpKy.dpuf","sameAs":["http:\/\/www.andrewpallant.ca","https:\/\/x.com\/LdnDeveloper"]},{"@type":"Person","@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/0e7b5e71751000e8f66b17b69ef4ab97","name":"andrewpallant","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/andrewpallant.ca\/wordpress\/#\/schema\/person\/image\/","url":"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"andrewpallant"},"url":"http:\/\/andrewpallant.ca\/wordpress\/author\/andrewpallant\/"}]}},"_links":{"self":[{"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/posts\/105"}],"collection":[{"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":1,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":1125,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/posts\/105\/revisions\/1125"}],"wp:attachment":[{"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/andrewpallant.ca\/wordpress\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}