Autoformat Your Code

Auto-formatting code is good, and you should be doing it all the time. Why? It helps you write better code in real-time, preempt trivial discussions, and maybe even democratize programming. ...

March 10, 2022 · Jake Worth

Tilex Progress

Tilex, our Phoenix port of Today I Learned, is coming really well. After a personal hiatus for RailsConf prep, I’m back full-swing. My coworkers have really been bringing quality commits as well, and I feel we are very close to a successful port. ...

June 5, 2017 · 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 · 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 · Jake Worth

Hamming Distance in Elixir

Today I solved the Exercism Hamming Distance problem in Elixir. Here’s my solution. ...

September 11, 2016 · Jake Worth

Exercism's Sum of Multiples in Elixir

Today I solved Exercism’s Sum of Multiples problem in Elixir. In this post, I’ll show my work solving this problem. ...

August 26, 2016 · Jake Worth

Run Length Encoding in Elixir

I’ve been working through the Elixir challenges on Exercism.io. Yesterday’s assignment was to implement a Run Length encoder and decoder in Elixir. Here’s my implementation. ...

July 31, 2016 · 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 · 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 · 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 · Jake Worth

Don’t miss my next essay

Hear from me immediately when I post: no ads, unsubscribe anytime.