in reply to best practice

In my experience, I generally follow these steps when approaching a "programming challenge": I wish you luck and wisdom.