You Should Blog

I created this blog to reflect on my code and development as a programmer. In that spirit, I’d like to make a pitch to anybody reading: you should blog. ...

February 11, 2017 · 3 min · Jake Worth

Reset an Ecto Heroku Postgres Database

We introduced some breaking database changes to our Phoenix port of Today I Learned on Friday; today I deployed them to staging. Resetting an Ecto Heroku database, with new seed data, turned out to be a little tricky, and I wanted to document what I learned. ...

January 7, 2017 · 2 min · Jake Worth

Vim Nonrecursive Mappings

My first PR to a new Vim plugin was merged this week, check it out, adding non-recursive Vim mappings to vim-termbux. ...

December 17, 2016 · 1 min · Jake Worth

Porting TIL from Rails to Phoenix: Initial Commits

Last week, I started a new project: porting Today I Learned from Ruby on Rails to Phoenix (Elixir). ...

November 29, 2016 · 2 min · Jake Worth

Learn to Test

What is a skill one could learn to set themselves apart from other entry-level programmers? Testing. ...

July 15, 2016 · 2 min · Jake Worth

Why Elixir?

I’ve been learning and using Elixir lately, and loving it. More than once, I’ve been asked some version of the question: why are you learning Elixir? What makes this language unique? I thought I’d take a moment and try to distill my rationale. ...

July 6, 2016 · 2 min · Jake Worth

Writing Elixir Sigils

Sigils are a mechanism for working with textual representations in Elixir. If you’ve ever made an array of Strings in Ruby with %w(), the API is similar. A neat feature of sigils is that we can make custom variants, or override existing Kernel variants. The latter is generally discouraged. ...

July 4, 2016 · 2 min · Jake Worth

How and Why to Squash Your Pull Request

Many pull requests go through a cycle: programmer opens pull request, maintainer gives feedback, programmer makes changes, repeat until ready to merge, maintainer merges. Prior to the merge, the pull request can be messy, full of reverts, fixups, and WIP commits. In the end, those commits are noise. We can tell a better story by squashing the branch. ...

July 3, 2016 · 6 min · Jake Worth

Recreating Elixir's Enum.sum

I’m learning Elixir, and today as an exercise, I was challenged to recreate Enum.sum using recursion. Here’s my solution. ...

June 30, 2016 · 2 min · Jake Worth

Server Side Sorting in Ruby

Recently a friend asked me this question about server-side sorting in Rails. Here’s the question and my answer. ...

June 28, 2016 · 2 min · Jake Worth