This previous week was that of a typical Computer Science student for me. There was a lot of looking at code for hours, figuring out a strategy to write a program which worked efficiently, and most of all, spending considerable time trying to understand why said program was giving errors. In the end, I was able to prevail and finish A2 on time, getting running times that were very reasonable.
For the majority of the assignment, the hardest part was figuring out where to start and how to progress efficiently. Sometimes I would finish a method or function which worked as desired, but redundant and duplicate code was rather noticeable, so a new approach had to be taken. This was especially true for the peg solitaire and mn puzzles, whose extensions had code which were very similar but differed by indexes and the like. For these, helper functions proved to be extremely helpful.
As previously mentioned, errors were very much present in the early stages of code implementation. By far the most frustrating part was when the program would run and give an error that was nearly impossible to track down even after debugging. In the end, after over an hour of searching and much frustration, I was able to pinpoint the error to a misplaced "+1" which was resulting in an index error for certain puzzle configurations. Despite the apparent futility of the initial error-tracking efforts, the feeling that you get once the mistake is found and fixed is indescribable, truly a realization that this why I chose this career path.
The semester winds down and the final exam approaches, thus begins the most stressful time of the year.
No comments:
Post a Comment