Friday, 9 November 2012

My enduring battle with assignment 1

Assignment 1 has been a great challenge for me. Upon opening the initial clock.rkt, I had very little idea of what to do. In fact, it took me several moments to figure out what the program was even supposed to accomplish. Safe to say I felt an insurmountable task ahead to me.

I began chipping away little by little. I made the easy corrections first and in doing so, I gained a better understanding of the program and also the confidence to rectify this cacophony of words, symbols, and functions.

I started tackling the more difficult check-expects and definitions. My corrections were mostly futile as the program still encountered many errors. But the more you work at something, the clearer it becomes.

My friend was also willing to give me hints here and there, I'm really grateful for that.

My T.A. Omar was also tremendously helpful in helping me figure out clarify-image.

I worked away at it some more. I could finally get the program to run but it passed only a few of the check-expects. This frustrated me and gave me the urge to throw things across the room. I didn't though :)

Finally, I went to office hours for more help. With the help of T.A. Khaled, I realized what I was doing wrong. A common mistake I made was trying to force c into the check-expect by using a number, when in fact I had to create a color myself using the appropriate function. Same with clocktime, I kept on trying to input a number when the program expected a clocktime in the format of hours minutes seconds stop/go.

When you understand the meaning behind the code (that is, what a specific line is supposed to accomplish), it becomes a lot easier to fix it. In the beginning, I was trying to fix the program without an actual understanding of the program itself. We all know how that turned out. But as soon as I tried to see the program for its purpose rather than its mistakes, I gained the clarity and understanding I needed to perfect the lovely clock. I also couldn't have done it without my friend and my T.A.s, you guys are great.

Consider this a battle won! Wikipedia, you are next.

No comments:

Post a Comment