Another week has
come and gone with midterms fast approaching. No new concepts were introduced,
which was a relief. I am still feeling a little bit confused over the
difference between private and public attributes/methods. This makes me feel a
little anxious over the upcoming midterm next week. Professor Danny Heap
mentioned that the previous midterms will be the least helpful to us, but I
will still work through them because I found them very useful in CSC108. I am
also a little wary about inheritance so I will have to review that before the
midterm.
This week's quiz was
very simple. I appreciated how the question was based exactly on the list_queue
function we wrote in our lab. The lab this week involved writing client code
and unittests. I found it fairly straight forward, considering class Queue did
basically the same things as class Stack. The only thing I did not quite
understand was the part where we had to create unittests. Although I followed
what the testqueue file did for creating unittests, I did not completely
understand all the tests that were used. I created unittests in CSC108, but the
wording and functions created were very straight forward and were used to test
functions, not classes. For example, I did not know what "clean up"
meant for the testDown unittest. I hope we will learn more about
unittests in class, where we will be given guidelines as to how to create them.
I believe my biggest
struggle so far in CSC148 is deciding how to structure and format classes in an
efficient and cohesive way. I have trouble designing the classes under a time
limit and so I hope to become more quick with structuring them. I have a feeling
after I complete Assignment 1, I will become more adept in creating classes.
Speaking of which, I
finally started Assignment 1 this week. In my opinion, the most difficult part
of doing assignments is reading through the assignment outline because it is so
tedious. But after understanding the context of the assignment, things get much
more interesting. I have not gotten very far through the assignment, so nothing
too confusing has popped up yet.
Thanks for reading!
No comments:
Post a Comment