Identifying Objects
Here’s a hint if you’re developing an application that needs to save any data: don’t use the name you display as the key to your object! What if you want to rename this object? In simple systems it’s not that big a deal, but when your system gets bigger, you’ll run into all sorts of headaches, trust me.
Instead, just use a numeric ID to keep track of your object. This numeric ID never needs to change, even if you change the name of your object, and even if you start using an entirely different storage mechanism.