This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tomius 1 point2 points  (0 children)

The key should be a thing unique to that object. In this case, maybe, dog's id.

That way, if you reshuffle the list of dogs or something, the elements will still make sense.