The blog ofJonathan Pepin

Sandi Metz at Parisoma


If you're a Ruby developer and you havn't read Sandi Metz's book POOTR, shame on you. If you havn't heard of her... well shame on you, but trust me, now you know her, you're life is already happier! Whomever you...

Rails Elevator of Migrations


Migrations Elevator Psy In rails, modifications on the Database are made through migrations. Migrations are sort of like git, for databases’ schema. Every time you want to modify your database, you create a new migration file, allowing you to revert...

Playing with Hash#sort


Sorting a Hash I wanted to understand what happened under the hood when hash.sort is called; ruby hash.sort { |a, b| b[1] <=> a[1] } If you can't answer, you might want to read. *** First, let's begin...