Thursday, November 15, 2007

What choices did you face in developing your solution, and how did you choose among them?
Like I have mentioned once before, which loop a programmer chooses is really critical. When I was making a Game today, I needed to use a loop in my program. I chose the while loop because the do while loop and the for loop were not really apropos for the program. I used a boolean to start up and I used the value of the boolean to state the control expression of the while loops. My loops were also nested, as that would take much lees coding than using loops that are not nested. Choosing nested while loops helped me keep my program limited and easily understandable.

No comments: