Programming

Serializable Service Objects

I have to admit, I really like using Service Objects when I'm working in Rails. By which I mean, a tableless object that has domain knowledge for a particula...

Malachite: Go inside Rails

A couple of weeks ago, I was fiddling around with using FFI to call code written in Go.

Refactoring

Refactoring by Martin Fowler should be required reading for every developer that's been professionally coding for at least a year

How I Review Code

Ok, I've had a few beers, and I've got my favorite record playing (2112 by Rush, of course) so now I can write about code reviews.

The New Turing Omnibus

The New Turing Omnibus is a collection of 66 essays in Computer Science, written by A.K. Dewdney. Just as the title would suggest, it's meant to evoke the i...

Reading List Update

A long time ago I brought up the matter of reading Computer Science books to backfill my education on the matter.

Why I'm excited about React.js

Even after a bad experience with client-side MVC, I'm excited to try React (it's totally different). The Flux pattern detangles client-side spaghetti and ma...

Co-Controllers in Rails

Four months ago, I started work on a new product. My coworker and I were talking about strategies we wanted to take on this green field project, and we came...

Setting Up Go

Having helped a couple dozen people get going with Go

Introduction to Go (golang), Part 1

If you read this blog for any amount of time you’ll know that I really like technology, specifically web development technologies. I’ve written about my ...

Solving a Hard Problem for Ruby with Go

About a year ago, I was tasked with solving a hard problem (a tricky resource reservation problem with arbitrary quantities and spans). As with all problems...

ActiveModel: Model

I started reading ahead into ActiveRecord…whoa…that’s some crazy stuff right there. Mind was blown with the sprawling nature of it…so many avenues and by...

ActiveSupport::Concern Digression

It happened again. While reading through ActiveModel I realized that I had skipped over something cool in ActiveSupport, so I’m going to circle back and ...

ActiveModel: Autoloading Digression

Having just returned from vacation I now continue my read through of the Ruby on Rails source code by looking at Active Model.

ActiveSupport: Testing and Stringy Booleans

One of the things that I really like about the Ruby community is the serious focus on testing. When you’ve really got your testing dialed in, there’s a t...

ActiveSupport: thanks, try, tap

The more time I spend with the Rails source, the more I appreciate it. I’ve always appreciated it for what it could do, but now I’m appreciating it direc...

ActiveSupport: Hash Extensions

At RailsConf this year, Aaron Patterson talked a bit about “aggressively trimming negativity” from his life and focusing on the positive things. I’m work...

ActiveSupport: Humor, Defaults, Security

Reading the source of Rails gives insight into the minds of the contributors over the years. It lets you know how they like to write code (of course), bu...

ActiveSupport: Array Extensions

It seems like such a simple thing, but I’m really enjoying reading the source of Rails. I’m finding all sorts of hidden gems (ouch).

Reading the Source of Ruby on Rails

I have decided to read the whole source of Ruby on Rails and make notes as I work my way through it. I have used the framework for far too long without d...