Episode #504: Disposable Object

Have you ever pulled a plate out of the dishwasher and put it on the table, only to realize that there's still old food caked on it? Objects can be like that sometimes: mutable state can mean unpleasant surprises when old data leaves "stains" that you didn't expect. Learn how to get the benefits of OO while avoiding many of the state-based pitfalls, by treating your objects as disposable.

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