Decoupling methods, by reducing assumptions and minimizing interfaces.
Category: S5 Premium
Episode #441: Pluggable Conversion
What's a good way to open a conversion method to extension? Let's find out!
Episode #440: Detect Map
A tricky little functional programming puzzle, with an elegant solution.
Episode #438: Subscript Constructor
Eliminating astonishment with a special Ruby idiom for object creation.
Episode #436: Ruby 2.4 Destructuring Conditional
Ruby 2.4 eliminates an un-intuitive limitation of if-statements.
Episode #435: Date Math
Calculating dates in the past or future, without the assistance of ActiveSupport.
Episode #434: Scanf
Today we learn how to match patterns and parse out values all at once.