* Since last week I
talked about recursion (which is supposed to be this week's topic), I am going
to discuss last week's topic in this entry.
In the first few
weeks, we learned about classes. Despite having learned about classes in
csc108, most of the content, such as subclasses, abstract data types, property,
and list comprehension, were new. In lectures, I feel like I "sort
of" understand the material, but can’t really tell because of the lack of
actually solving problems. While Danny's lecture style is identical to that of
csc165, a class I genuinely enjoyed, I found it harder to follow up in the
first few weeks. However, I found the tutorials and assignment1 very
helpful, since those are the times when we actually do hands on programming. I
think for the first two weeks, I was still trying to get used to this new style
of lectures (in contrast to csc108, where we had in class worksheets), but now
I think it’s a nice balance with the tutorials and assignments. That's mostly
my impressions pf the lectures and labs, and for the rest of the entry I'm
going to briefly talk about my impressions of each new topic we touched upon.
Classes and Subclasses
CSC148 started with classes, right where we left out in csc108. The only
new stuff we learned that I remember is the __repr__ method. The first two
lessons on this subject felt like a review session of last semester's material,
which was a good transition into a new class. As for subclasses, it was easy to
understand
ADT
We were introduced to a new class Stack. We talked about common ADTs
that we already know, such as list and dictionary. There may be more about ADT,
since our most recent lab was on this subject.
Property
Property is a new
concept that we learned about classes. This was not touched upon in tutorials,
and therefore I don’t think I fully understand its implementation.
List Comprehension
This is an easy and useful trick
that we learned to use instead of writing loops for a list. We learned this in
the first lesson, and it was brought up again later on.
No comments:
Post a Comment