Setting a default proc on a ruby hash
You can use a pair of empty braces to initialise a hash. But, if you try to access a non-existant...
Monkey-patching ruby classes using refinements
A quick overview of how to use polymorphic associations in rails
You are the perfect interviewee. You are presented with a pen and a whiteboard and asked to design an...
Why you shouldn't use `||=` with booleans.
An introduction to value objects and how to create them.