I finally got a chance to start working on PA2 today. I wanted to wait and start it after I had a chance to watch the entire lecture, but I'm realizing that it would be impossible to do so, since it has taken me three separate sittings so far to get through the first hour and a half. I really hate my workload at the moment, and my unreliable internet connection at home certainly doesn't help matters.
OK, enough whining. There's work to be done.
I loaded up PA2 and ran it, and as expected, one test passed and four failed. I added serialization code to the Dog class, and it passed the test. I added serialization to the Cat class, and it passed its test too. Then I optimized the Cat serialization by reordering the data members to make a smaller packet. It worked.
Then I started working on the Bird class, and noticed that the serialization will not be quite so straightforward since it contains a string. This will require some time and thought, neither of which I can spare any more this evening. So I will have to wait until Tuesday to try out my strategy for this one.
I only hope there's enough time on Tuesday, since it will be my one and only chance to work on it before it's due. This is where things get tense and exciting, eh?
No comments:
Post a Comment