Articles by Albert Yi

Black computer keyboard
Albert Yi

Albert Yi

Take Command of Your Ruby Code with the Command Pattern

It’s no secret that Ruby trivializes many classic design patterns. What might take 30 lines in Java can often be a one-liner in Ruby. But there’s more to learning a design pattern than reading some pseudo code about Widgets and AbstractFlyweightDecoratorFactory classes. The Command pattern is an abstraction that will be familiar to most experienced