The Moderately Enthusiastic Programmer

I feel like I’m practically the poster child for the “passionate programmer”. I code for fun, always have. I’m like the stereotype of the guy who’d be programming even if it didn’t pay. I play with new programming languages for … Continue reading

Posted in Rants | 77 Comments

Dotenv for multiple environments

Lately I’ve been handling configuration entirely through environment variables for my apps, as the 12 Factor App recommends, and I can’t recommend this approach enough. As a constraint it helps me think about what parts of a given app¬†actually¬†need to … Continue reading

Posted in Howto, Ruby | Tagged , | 6 Comments

Faster! More Intense!

Some notes on screencasting. Continue reading

Posted in Howto, Screencasts | 4 Comments

The Hybrid Kangaroo Desk

A few people have asked me how I feel about my Hybrid Kangaroo Desk. The short version is that I love it. The slightly longer version: so, I’d known I wanted an adjustable standing desk for quite some time. I’d … Continue reading

Posted in Stuff Worth Buying | Tagged , , , | 2 Comments

Equals is an Assertion, not an Assignment

Understanding assignment in pattern-matching functional languages. Continue reading

Posted in Elixir | Tagged , , , | 4 Comments

Lost in a World of Data

A reflection on programming in OO languages versus dynamic functional languages such as Elixir and Clojure. Continue reading

Posted in Rants | 13 Comments

Debugging an HTTP Client Library

I’ve been trying to use Benoit Chesneau’s hackney library to hit the Wistia API from an Elixir program. Between the fact that hackney is still under rapid development, and the fact that I’m not great at reading Erlang code, it’s … Continue reading

Posted in Howto | Tagged , | 4 Comments

Exception Causes in Ruby 2.1

Sometimes when rescuing an exception in Ruby, it’s useful to handle the error scenario by raising another, different exception. As an example, we may want to add domain-specific failure information before passing the error on to client code. begin # … Continue reading

Posted in Ruby | Tagged | 5 Comments

FPOO Ch. 9: Functions That Make Functions

Unlike Clojure, as far as I know Elixir does not have a library of foundational higher-order functions such as like lift or complement. So I’ll have to build them myself. Before I do anything else, I need a helper function … Continue reading

Posted in Elixir | Tagged , | Leave a comment

FPOO Chapter 7: Programming with Dataflow

This is where FPOO starts to get interesting. I have to say I find the choice of the term “dataflow” confusing due to its other associations in programming. But this section introduces a style of working with data–first annotating it, … Continue reading

Posted in Elixir | Tagged , | Leave a comment