Work Small
Write programs that do one thing and do it well. –The Unix Philosophy
I believe in working small.
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.
Binary to Decimal Conversion in Ruby
This week I wrote an algorithm in Ruby to convert binary numbers into decimal numbers. Here’s the problem description, from Exercism:
“Convert a binary number, represented as a string (e.g. ‘101010’), to its decimal equivalent using first principles. Implement binary to decimal conversion. Given a binary input string, your program should produce a decimal output. The program should handle invalid inputs.”
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.
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.
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.
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).
Hamming Distance in Elixir
Today I solved the Exercism Hamming Distance problem in Elixir. Here’s my solution.
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.