2015-11-05 Ruby provides several complex data structures out of the box; hash, array, set, and queue are all I need 99% of the time. However knowing about more advanced data structures means you know when to reach for something more esoteric. Here’s two examples I’ve used recently. ConnectionPool::TimedStack My connection_pool gem implements a thread-safe Stack with a time-limited pop operation. T