A good practice is also to start coding with the last line of code written first and work you way up. That way you will know what the result of the operation will be right away and you don't need to write lengthy blocks of code to simply get the result of a operation.