Find out what your customer/client/user wants. Try and express it as a UnitTest. Write something that passes the unit test. Don't worry too much about how smart, stupid, complicated, simple or fast it is -- just MakeItWork. Then, if you and your customer/client/user need to, you can MakeItWorkBetter.