Articles

each_with_object vs. reduce/inject

calendar_today 

At first glance, each _ with _ object and reduce/inject may appear somewhat redundant, but once you embrace the difference, you'll condense and clean up your code. While reduce and inject are literally aliases for the same function, each _ with…

CONTINUE READING

Pry-ing open Ruby

calendar_today 

Pry is an excellent Ruby REPL and debugger and is my go-to tool for both purposes. In this article, I'll go through how to get Pry going in a Ruby project and hit the highlight reel of its most useful methods and features. Installing Pry for REPL and…

CONTINUE READING