Best practice for small coding (Design Pattern)

Like Markus said, there really is not a best practice. There are approaches that work better in some circumstances than others. This is why the Design Patterns exist. Design Pattern: What is a Design Pattern and How Do I Use Them

The link at the bottom is to all of the published design patterns.

For something like this Assocaited Items and Encoding Values in Items might be useful.