Tag: ruby
18
Dec
5 Ways to Deal with Nil Headaches in Ruby
by Josh Saint Jacque
16 Comments
Ruby is so much fun in many respects. Everything is an object and all our code are just objects passing messages to one another. We...
24
Oct
Algorithms Exercise: Find the First Duplicate in an Array
by Josh Saint Jacque
No Comments
Today’s algorithm comes from code fights. It’s a challenge called firstDuplicate and it goes like this: Given an array a that contains only numbers in the range from...
24
Oct
Ruby & The Strategy Pattern
by Josh Saint Jacque
No Comments
The Strategy pattern is the next in our examination of design patterns and how they can be leveraged in Ruby. This pattern is useful for...