{"id":3133,"date":"2018-08-26T06:46:36","date_gmt":"2018-08-26T12:46:36","guid":{"rendered":"http:\/\/www.mooreds.com\/wordpress\/?p=3133"},"modified":"2018-08-26T06:46:58","modified_gmt":"2018-08-26T12:46:58","slug":"going-to-gophercon-and-thoughts-on-golang","status":"publish","type":"post","link":"https:\/\/www.mooreds.com\/wordpress\/archives\/3133","title":{"rendered":"Going to GopherCon and Thoughts on Golang"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-3134\" src=\"http:\/\/www.mooreds.com\/wordpress\/wp-content\/uploads\/2018\/08\/gopher-2196632_640-300x200.jpg\" alt=\"Gopher\" width=\"300\" height=\"200\" srcset=\"http:\/\/edit.mooreds.com\/wordpress\/wp-content\/uploads\/2018\/08\/gopher-2196632_640-300x200.jpg 300w, http:\/\/edit.mooreds.com\/wordpress\/wp-content\/uploads\/2018\/08\/gopher-2196632_640.jpg 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>I am excited to go to <a href=\"https:\/\/www.gophercon.com\/\">GopherCon<\/a> this year. I&#8217;ve been maintaining a couple of codebases written in Go\/golang. Some are smaller webhook and automation programs, but a couple are larger data processing systems&#8211;take this data from these two sources, munge it a bit, put it over here. (Unfortunately, this is all custom, not using an ETL toolkit like, say, <a href=\"https:\/\/github.com\/dailyburn\/ratchet\">ratchet<\/a>).<\/p>\n<p>I&#8217;ve found Go to be an interesting challenge. It&#8217;s C based, but there are a few wrinkles\/idioms that I&#8217;ve enjoyed figuring out (and more that I&#8217;m learning).<\/p>\n<p>Things that surprised me:<\/p>\n<ul>\n<li>GOPATH and the need for a domain name in paths.<\/li>\n<li>That you have to search on golang to find anything useful.<\/li>\n<li>The fact that any file in a package can add functions to any struct (I think I have the terms correct, please forgive me if I don&#8217;t)<\/li>\n<li>The lack of an editor that can do reference searching (&#8220;show me all places this function is called&#8221;). I think VS.Code can do this, but have downloaded it and the Golang extension and can&#8217;t seem to figure out it. (This is likely my failing, not golangs, but I was looking forward to coding in a static language for just this reason. Well, this and safe refactoring.)<\/li>\n<li>The strictness. I&#8217;m actually pleasantly surprised by it (no unused variables seems like such a no-brainer!) but golang is quite opinionated in terms of language syntax.<\/li>\n<\/ul>\n<p>I unfortunately haven&#8217;t had as much time to write golang as I planned when signing up for this conference, but I&#8217;m looking forward to meeting some other folks and the excitement that always happens when you attend a conference. In particular, I&#8217;m looking forward to &#8220;Go says WAT?&#8221; which is patterned after the <a href=\"https:\/\/www.destroyallsoftware.com\/talks\/wat\">famous WAT video <\/a>and &#8220;From prototype to production: Lessons from Reddit&#8217;s ad platform&#8221;. Hope to see you there.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am excited to go to GopherCon this year. I&#8217;ve been maintaining a couple of codebases written in Go\/golang. Some are smaller webhook and automation programs, but a couple are [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,87],"tags":[],"class_list":["post-3133","post","type-post","status-publish","format-standard","hentry","category-conferences","category-golang"],"_links":{"self":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/3133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3133"}],"version-history":[{"count":3,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/3133\/revisions"}],"predecessor-version":[{"id":3137,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/3133\/revisions\/3137"}],"wp:attachment":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}