A tricky little functional programming puzzle, with an elegant solution.
Eliminating astonishment with a special Ruby idiom for object creation.
A naming guideline to avoid confusion and latent bugs.
Ruby 2.4 eliminates an un-intuitive limitation of if-statements.
Calculating dates in the past or future, without the assistance of ActiveSupport.
Today we learn how to match patterns and parse out values all at once.
Some domain concepts are easier to spot than others. Today we deal with one of most slippery concepts of all.
Having model attributes at different levels of abstraction can quickly complicate an application. In this episode, we'll level the playing field.
In this sequel to #430, we apply a powerful pattern for encapsulating problem values.