Don't Try This at Home
Carpenters will always tell you to measure twice, cut once. In programming, the equivalent advice is to think twice, code once. Always make sure that you know exactly why you are doing something a certain way before you do it.
If you're implementing something a certain way because it made sense in another context, then stop, think, and make certain that it really does make sense in this one.