Best practice to approach coding