-
Storing Arbitrary Model Attributes in Rails
Sometimes you might want to have access to an indefinite number of attributes on an object and persist these attributes to a database. Here's how I recently implemented this in Rails.
-
Inline Enumerator Messages in Ruby
A little-known trick to simplify iterating through enumerators.
-
My Fish Oil Experiment
I've spent the last 8 months running a sustained self-experiment on fish oil supplements. Here are the results.
-
Replacing Controller Mixins with Services
How to use Rails services to extract shared behaviors out of controllers. This helps to keep your controllers light on logic, self-documenting, and free of tangled dependencies.
-
What is Logic
I studied logic. Now I write software for a living. This confuses some people. What is logic? How is it related to computers? This is how I understand it.
-
Buying Ethereum on Coinbase
How to buy ether through Coinbase's GDAX digital currency exchange.
-
The Single Responsibility Principle, Part 1
How I fail to understand it and you can too.
-
Breakpoints in Ruby and Elixir
Knowing how to set and interact with breakpoints in a language is crucial to efficient debugging. Here's a side-by-side comparison of breakpoints in Ruby and Elixir.