‘Best practice’ is to understand what are you trying to achieve with your code. The rest is just practice.