switch to dark mode switch to light mode

CJ Horton

I write words about code sometimes

DRY Up Your Phoenix Controllers With Function Plugs

Jun 21st, 2019

Plugs are a really powerful construct. They show up all over the place in Phoenix, from setting up pipelines in a router to enabling action_fallback error handling — the composable, flexible nature of the plug spec means that it’s at the heart of many Phoenix features.

Even Easier Dark Mode for Slack

May 3rd, 2019

This post is out of date now that Slack offically has an actual dark mode for desktop. But I’m keeping it around so I don’t forget that time I wrote an entire bash CLI because I was tired of copying and pasting a code snippet.

Spacecraft Driven Development: Taking Computers to The Moon

Feb 15th, 2019

At the dawn of the space program, computers were enormous, bulky, delicate things, with extremely limited processing capability. Today, we have unmanned spacecraft exploring the outer reaches of the solar system.

Advanced Pair Programming

May 29th, 2018

The research is in – pair programming is awesome. At the cost of about a 15% increase in development time, pairing produces code with fewer errors, and even makes us happier at work. I’m here to help you take your pair programming skills to the next level.

Rails HTML Email Development That Doesn't Suck

Nov 3rd, 2017

If you’ve worked with HTML emails, you know that they pose their own special challenges. Best practices for CSS in emails are different from best practices for modern web CSS. It’s tricky to preview changes, and testing on different email clients gets time consuming quickly.

Asking Bad Questions

Aug 30th, 2017

Like many people, I have a certain fear of being That Person – you know, the one asking a ton of annoying or obvious “bad questions”. Julia Evans’ awesome comic & blog post on asking good questions is one I return to over and over.

Poetry for Developers

Jun 6th, 2017

With apologies to Emily Dickinson, Robert Frost, and Edgar Allen Poe.