Absolutely No Machete Juggling

Rod Hilton's rants about stuff he cares about way too much...

My StrengthsFinder Results

At work, the BigWigs paid for a bunch of employees, including myself, to take the Gallup StrengthsFinder test. This test gives the taker a series of choices between two things that aren't exactly opposites, and you have to select which one you identify closer with. In the end, the test tells you which of 34 possible strengths are your top 5.

I enjoy taking personality tests for fun, but the way that the aforementioned BigWigs were attaching tremendous levels of importance to the results of the test made me a bit weary. Personality tests can often have a horoscope vibe, where they all say something so nice about the taker that everyone who reads it says "yep, that's me!".

So before the test, I took a look at the 34 possible strengths that the test would identify. I figured they'd all be things I liked, so that when the top 5 were output, the taker would like the results. To my surprise, there were a number of strengths, about 10 of the 34, that I would have been downright irritated if they appeared in my top 5. To an extent that, if the exercise told me any of those 10 were strengths of mine, I'd be able to instantly disqualify the test as bunk.

So I took the test with a skeptical eye toward it, but I was actually incredibly surprised by the results. I think the test absolutely nailed me, and I'm so impressed by the accuracy of my test results that I think it's worth sharing here. These strengths are ranked from strongest to less-strong (I don't say weakest because it's only the top 5 of all 34 strengths, so all 5 are very strong).

Read the rest of "My StrengthsFinder Results" »

Star Wars Machete Order: Update and FAQ

Wow, this Machete Order thing got big! After the post first "went viral" and got mentioned on Wired.com, I started getting around 2,000 visitors to it per day, which I thought was a lot. But then in the months before Star Wars Episode VII: The Force Awakens was released, it blew up like Alderaan, peaking at 50,000 visitors DAILY. This year, over 1.5 million unique users visited the page. It's been nuts.

So let me start out by thanking everyone for liking and spreading the original post - I'm truly floored by how well-received the post was. Considering I wrote a nearly 5,000-word essay on Star Wars, I'm pretty amazed that it was only a handful of times someone told me I was a loser neckbeard who needs to move out of my parents' basement and get a girlfriend (I'm married with a kid by the way). People only called for my public execution a couple times. On the internet, that's the equivalent of winning an Oscar, so thanks everyone!

Holy shit!

In all seriousness, I've had thousands of people tell me I "fixed" Star Wars and made the saga more enjoyable for them. I think this is an unnatural amount of praise - after all, I'm just a guy who watched some movies in the wrong order and skipped one, then wrote down why. I didn't create fanedits or anything truly difficult like that. But at the same time, the reason I published the post in the first place was that I felt Machete Order "fixed" Star Wars for me personally, allowing me to use the relevant parts of the Prequels to make Return of the Jedi a better movie, so it's really awesome that so many other people felt similarly. All joking aside, thank you.

Since it's been about 4 years since the original Machete Order post, and now that Episode VII is out, I thought I'd post a small update answering a lot of the questions I've been asked and responding to the most common criticisms of Machete Order. There will be no spoilers of Episode VII here, though I will be talking about it a bit and I can't predict what people will post in the comments, so if you haven't seen it yet, make like a Tauntaun and split.

Read the rest of "Star Wars Machete Order: Update and FAQ" »

PhD Status Report

It's been a long time since I posted about how school is going, and I figured the folks who read my blog (all two of you, hi Mom!) might be curious.

Since the end of my Spring 2013 semester, I've been in "Research Phase". This means I'm finished with classwork and have been working on my research project. It's been a little over two years now, so here's what has happened.

About two years ago, I started working with my advisor trying to figure out what area my research would be in. I've always had a fascination with Genetic Algorithms and Metaheuristics, so I knew I wanted to do something involving that subfield. Two of my projects at school utilized Genetic Algorithms, and I had a lot of experience in the area.

I went back to school to primarily focus on CS Theory & Algorithms, but I knew my biggest strength was Software Engineering. In other words, I like theory, but I'm not sure I'm a real theoretician, and I wanted to play to my strengths a bit. This meant I wanted to be writing real, working code, rather than proofs. If I wound up proving anything interesting, that'd be great, but I didn't want that to be part of my critical path to completing my PhD. Lots of CS PhD's go off with a white board and paper and output some amazing results, but I knew that wasn't going to be me.

Read the rest of "PhD Status Report" »

Testing Against Template Renders in Grails

I work with Grails a lot and while I really enjoy it for the most part, there are definitely some weird quirks of the framework.

One such quirk is something I encounter whenever I want to write unit tests against grails controller methods that render out templates directly. This isn't something I do very often - generally I prefer rendering out JSON and parsing it with client-JS - but in some cases when there's a lot of markup for a page element that you want to be updateable via ajax, it makes sense to render out a template like render(template: 'somePartial') directly from a controller method.

Unfortunately, these kinds of methods are very difficult to write tests against. While a normal render exposes a model and view variable that you can test against, for some reason using a render with a template doesn't seem to do this.

I've seen lots of solutions where you stuff a fake string matching the name of the template using some metaclass wizardry, but then you're stuck dealing with some semi-view stuff in what you might want to simply be a unit test about the model values placed by the controller method.

Read the rest of "Testing Against Template Renders in Grails" »

QCon New York 2015: A Review

My default yearly conference, for many years, has been UberConf. I really enjoy UberConf because it's packed full of lots of great sessions, and it's conveniently local. However, because I go to various local user groups and attend so often, I find that, if I go two years in a row there are too many sessions I've seen before, and I wind up disappointed. So for the past few years, I've been alternating between UberConf and something new. Two years ago, it was OSCON, and this year it was QCon New York.

I chose QCon for a few reasons. One, the sessions seemed very focused on architecture and higher-level concepts, with very few language/technology talks. This was right up my alley because, while there are some languages and tools I'd like to go deeper on, I think a more significant area for improvement for me is architecture and scalability. We get tons of traffic at my job - more than any other place I've ever worked - so I've had to learn a lot about scalability, and the nature of the work has forced me to really see broad system design differently.

I went to QCon specifically wanting to improve some areas where I was weak, namely containerization, microservices, and reactive programming. I hear a lot of buzz about these things, and they pop up on recent ThoughtWorks Technology Radars, and QCon seemed to have a lot of sessions to offer in these areas. It took a LOT of convincing to get my employer to agree to send me to a conference location as expensive as New York, but eventually they approved it. Here I will detail some of my thoughts about the experience, in case it may be of use to others considering QCon.

Read the rest of "QCon New York 2015: A Review" »

Uploading a Jekyll Site to Rackspace Cloudfiles

This blog was never intended to be popular by any stretch of the imagination. Largely I started it simply to have a place to gather solutions to technical problems I've encountered, so that I could easily look those solutions up if I needed them again. The blog has always run on my own shared hosting server, on a self-installed version of Wordpress.

To my great surprise, a few of my posts have found their way to the front page of reddit. My post about Star Wars has been mentioned on King of the Nerds and The Big Bang Theory, and even landed me an Interview on NPR.

Needless to say, the traffic to my blog has been both extremely unexpected and unpredictable. The Star Wars post had been online for months with virtually no traffic before Wired suddenly linked to it, instantly decimating my web server. I've fought and fought with various configurations for Wordpress, used as much caching as possible, and even had my web host temporarily upgrade my service, all trying to keep a web site that makes no money online even when traffic increases by a factor of 100 overnight. When my site goes down, it's embarrassing, because even though it's just a personal blog on a shared host, it gives the impression that I, as a software developer, don't know how to make a web site scale.

Switching to Jekyll

So after the most recent pummeling I took due to a Hacker News link, I decided it was time to bite the bullet and convert the entire site to Jekyll. I've messed around with the technology before to build another, smaller, blog, so I was somewhat familiar with the constructs and idioms. A lot of work and ten custom plugins later, the entire site was converted, with very little loss of functionality.

Read the rest of "Uploading a Jekyll Site to Rackspace Cloudfiles" »

The Worst Programming Interview Question

Years ago, I wrote about a particular type of interview question that I despise. Today I'd like to discuss a much more specific question, rather than a type. I've never been asked this question myself, but I have seen it asked in an actual interview, and I officially nominate it as the worst question I've ever heard in an interview.

A co-worker at a previous company used to ask this question, and it was the first time I'd ever heard it in an interview setting. This company did pair interviews, two engineers with one candidate. One day he and I were the two engineers interviewing some poor candidate. The candidate had actually done pretty well as far as I was concerned, and then my co-worker busted this question out. The candidate stumbled over the answer, visibly frustrated with himself. In the post-interview pow-wow, all of the engineers who'd interviewed him gave him the thumbs up, except my interview partner, who refused to hire him on the grounds that he completely flubbed this question, and "any engineer worth his salt should be able to answer it." He actually said that if we hired this individual, he would be unwilling to work on a team with the candidate. For what it's worth, the story has a happy ending, in that we hired the candidate in spite of his protests, fired the co-worker within a few months, and the candidate is still at that company, doing quite well.

Anyway, I think this question perfectly represents everything that can go wrong with an interview question, so I'd like to discuss it here to explain why it's almost hilariously awful as an interview question:

Write a function that can detect a cycle in a linked list.

Seems like your basic algorithm coding question at first, right? Hop up and write the function on the white board; totally reasonable, right? Except it's not, it's brain-meltingly terrible. Let's break it down.

Read the rest of "The Worst Programming Interview Question" »

Top 10 Career-Changing Programming Books

When I graduated with a Computer Science degree ten years ago, I was excited to dive into the world of professional programming. I had done well in school, and I thought I was completely ready to be employed doing my dream job: writing code. What I discovered in my very first interview, however, was that I was massively underprepared to be an actual professional programmer. I knew all about data structures and algorithms, but nothing about how actual professional, "enterprise" software was written. I was lucky to find a job at a place willing to take a chance on me, and proceeded to learn as much as I could as quickly as I could to make up for my deficiencies. This involved reading a LOT of books.

Here I reflect on my 10-year experience programming professionally and all of the books I've read in that time, and offer up the ten that had the most profound impact on my career. Note that these are not the "10 best" programming books. I do feel all of these books are very good, but that's not the only reason I'm selecting them here; I'm mentioning them because I felt that I was a profoundly different person after reading each than I was beforehand. Each of these books forced me to think differently about my profession, and I believe they helped mold me into the programmer I am today.

None of these books are language books. I may feel like learning to program in, say, Scala, had a profound impact on how I work professionally, but the enlightening thing was Scala itself, not the book I used to help me learn it. Similarly, I'd say that learning to use Git had a significant impact on how I view version control, but it was Git that had the impact on me, not the book that I used to teach myself the tool. The books on this list are about the the content they dumped into my brain, not just a particular technology they taught me, even if a technology had a profound impact on me.

So, without further ado...

Read the rest of "Top 10 Career-Changing Programming Books" »

CenturyLink: Traps and Caps

TL;DR: After a decade of service, CenturyLink decided I wasn't worth keeping as a customer, so I switched to Comcast Business Internet. Even if CenturyLink tells you that you have no data caps, you do.

When I first moved to Colorado nearly a decade ago, I signed up for Comcast's Residential high-speed internet service, and I hated it. I had to reset my cable modem once every week because it would stop working properly, and my internet noticeably slowed down when people would get home from school/work in my apartment complex.

I did some research and determined that, for the kinds of internet speeds being offered at the time (around 1-5Mbps down), Qwest's DSL had similar prices to Comcast. Additionally, because it was DSL, I could use my own Netgear router that had a DSL modem built in, and I wouldn't have to mess with company equipment. Also, DSL's speed varies based on your distance to a hub, not based on how many people are currently using it. I thought I could avoid both of my major problems by switching to DSL for about the same price, so I did, paying for the maximum possible speed at the time, 5Mbps.

For many years, Qwest was the only monthly bill I never had any trouble with. Sometimes my cable would go out or look pixelated, sometimes my heating bill would be surprisingly massive, I was always having annoying issues with my cell phone service, but month after month, I never even noticed I had Qwest. It was just there, it worked, it never went down, it never slowed down. It was great.

Read the rest of "CenturyLink: Traps and Caps" »

Diving Into Android

I've finally written my first real Android app. I dabbled a bit with Android development in the very early days, writing an app that interacted with the web services of the company I was working for at the time. This app was ugly, written for Froyo, and frankly barely worked at all. It was a 20% time project at my then-employer, but I never went back and worked on it after the initial effort, and never even bothered getting it packaged into the Android Market, largely out of embarrassment.

I've been wanting to get into Android development more seriously since that effort, because I overall liked the idea, and as a big Android user myself, I felt that it was essential I be able to develop applications for my own device, as being unable to do so was a lot like using Linux without the ability to write shell scripts.

I've taken two all-day training sessions on Android before as part of larger development conferences, and while I was able to suss out some basics about the lifecycle and other Android fundamentals from them, neither left me with any sense of real understanding of how I could develop something for Android that people might actually use. But at OSCON 2013, I took an excellent half-day Android class taught by Marko Garenta. Among other things, he showed me, for the first time, how to write a modern-looking Holo app, how to use asynchronous background tasks, how to transition between multiple activities, and how to handle fragmentation issues. These were never touched on in my all-day sessions, and they're all large barriers to writing real applications.

Once I left the class I had a sense that I actually now knew enough that, with some help from web searches, I could actually write an Android app. I just needed a good idea, so I tried to take notice of various itches in my life to see if I could scratch any with a phone app.

Read the rest of "Diving Into Android" »