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

Read More…

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

Read More…

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

Read More…

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

Read More…

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

Read More…

Switching to a static blog platform

I have been looking for an alternative to WordPress for a while, one that I can understand at the code level. I found XavierShay’s enki blog platform and I like it a lot, it is made in rails and

Read More…

All Posts by Category or Tags.