things to improve at coding
I was working on my assignment for this graphics course and realized throughout just how bad i was at coding.
One, i need to break the code in more modular aspects. I know this but when i mean modular i want to break the more "logic" and confused computations into their own separate functions. If we think about code there are different parts from deliver data, saving data, computing data, and so on.
Through the process of coding this i spent such an enmourous time going between the code with print statements like a monkey. I should of just broken the hard computations and ai generated test cases for edges cases given my knowledge. that way i can tell where the "logic" is wrong.
Another issue i face is the spread of effort in the code base. i keep focusing on the overall code way to much. In truth there are only few points in the code which issues can arise and i know that too. But, for some reasons I'm giving my effort equality throughout which is a waste of time. Data moving is easy to see issues but, the logic is tough.
Looking back I need to distribute effort better, break the logical/computation heavy parts down, and think about the differences in the code for each section.
If i can do this more effectively my coding should improve dramatically.