Episode #497: Deep Dup

Copying objects can be surprisingly prone to error in Ruby. With the language only providing shallow copying semantics out of the box, copied objects can often share more state than you intended them to. In this episode, you'll learn a few techniques for reliably making deep copies of complex object trees.

This page is just for members. Sign in or subscribe to gain access!