The Journey of a New Computer Programmer

A longtime computer-literate who wants to learn "real" programming language(s).

Thursday, May 10, 2007

The 10-day deadline...

...Last nigh, er, earlier this morning, I finished up on a major coding run, done in anticipation of my 10-day materials-to-committee deadline. (Fortunately, my parents had fallen asleep while watching TV, sabving me some of the grief for being up late)...And a couple cans of Mountain Dew saved me the grief of having a drowsy headache at about 7 this morning. :)

I took a couple "wrong turns" when working on code: the first involved a scan I set up to check for one type of improper input. I'm not sure if Lee or Ken told me this, but I was told to not worry too much about merely checking the inputs, and to worry more about making the function do something (a lot), assuming proper inputs. So that avenue I easily departed.

The second involves using the ship statistics and the inputs to calculate what ships are destroyed. That is a very essential part of the program, so I was quite chagrined when that was giving me trouble...That brought me back to the bad days of working on RomanNumeralConverter.

After several modifications, I wasn't getting anywhere, so I decided to delete that section of code, rather than twiddle with it. (and of course, take another approach at the problem)

0 Comments:

Post a Comment

<< Home