Matt Butcher's Blog, page 6

September 26, 2015

Quick Go Hack - Renaming Structs

Today I found myself needing to rename a struct throughout the codebase of a project. In many languages, doing this would either require some perl/sed kung-fu or an IDE tool like you'd find in IntelliJ. Go, however, comes with a handly tool for doing this: gofmt. That's right, it does more than just fix your whitespace.

Here's the command I issued to re-name my struct:

gofmt -r 'GlobalAttributes -> HTML' -w ./

In a nutshell, this looks for the name GlobalAttributes and...

 •  0 comments  •  flag
Share on Twitter
Published on September 26, 2015 11:47

September 19, 2015

How Elixir Does Project and Dependency Management

I am going to come right out and say it: In less than an hour, Elixir's Mix tool won me over. Elixir seems to have done project and dependency management right.

Elixir is a Ruby-like functional language that runs in the Erlang VM. One of Elixir's more interesting features is its built-in project and package management tool, mix. Over the last several weeks, I have been in many discussions throughout the Go langauge community about what a good package or project manager should look li...

 •  0 comments  •  flag
Share on Twitter
Published on September 19, 2015 09:37

September 14, 2015

The Snooty Developer's Visual Guide to Kubernetes

With its own vocabulary and architecture, Kubernetes can seem downright scary. To tame the beast, I give you a simple visual (and snarky) guide to Kubernetes concepts.

Don't look here for nitty gritty implementation details. For that is not the way of the Kubernaut. We are platonists, concerned not with the ways of the imperfect world, but in the contemplation of the celestial spheres. So we will set about charting the way of the Kubernetes application developer.

And Lo, There Was An App...
 •  0 comments  •  flag
Share on Twitter
Published on September 14, 2015 18:55

September 12, 2015

Software is a Sugarmill

About a year ago, Google acquired Revolv, where I led the Cloud team. I coined the code names for several of Revolv's projects, including our primary cloud platform. I named it Sugarmill.

But I never told anyone the reason. It was long-running joke that I wouldn't say why I named it. Frankly, I never wanted to say because the reason was more melancholic than jovial. It was not intended to be full of whimsy, but rather was to serve as a stark reminder of what we, as software developer...

 •  0 comments  •  flag
Share on Twitter
Published on September 12, 2015 16:18