## Making a Go Game for the Web

I’ve been feeling productive in the last few weeks. I just finished two Coursera classes, one in machine learning and one in Swift programming. I also finished my minimum viable go game: goga.me

## Visualizing the 'belongs to' relation in rails app models

When working on rails apps, I usually have to make a mental map of the models and how they interrelate. An Active Record model can belong to another, but when you have more than half a dozen models, k

## Fixed point in ruby hash function

A fixed point of a function $$f:S \to S$$ is an element $$x \in S$$ such that {% latex %} $f(x) = x$ {% endlatex %} That is, $$f$$ is a no-op on $$x$$. Some examples: The identity function on any

## Building command line utilities in Ruby that play well with Unix

The Unix pipeline is a beautiful thing, as long as Standard Input and Standard Output are handled correctly, programs can be kept small and predictable. Getting any sort of complex functionality is si

## Convention over configuration, unless those conventions don't make sense

Ruby on Rails is a so-called opinionated framework, this means that it bakes in a bunch of conventions for how applications should be built. By following these conventions, you can write less code, an