This talk was given at RubyConf 2016. It’s an updated version of the same talk from WindyCityRails 2016.
Here are the slides:
OpenStruct, part of Ruby’s standard library, is prized for its beautiful API. It provides dynamic data objects with automatically generated getters and setters. Unfortunately, OpenStruct also carries a hefty performance penalty.
Luckily, Rubyists have recently improved OpenStruct performance and provided some alternatives. We’ll study their approaches, learning to take advantage of the tools in our ecosystem while advancing the state our community.
Sometimes, we can have our cake and eat it too. But it takes creativity, hard work, and willingness to question why things are the way they are.