Logic is far more important in programming than math. You need to have a solid understanding of how an application should flow, how to manage data (not getting the same data multiple times, or using multiple database calls to get data you could in one call) and reusing code. Don't have 5 functions that do the same thing with slightly different parameters. Write one function that will handle all 5 different scenarios.
And for the love of god, comment your code.







