Monday, February 15, 2016

Week #5 (My thoughts on this week)

This week in class, we talked about the concept of linked lists and how to operate and implement the coding. The idea of a linked list is that there are several nodes that are connected in a singular and linear path starting from the front to the end.  Each node is an instance of special node class while all the nodes refers to one single linked list class. The idea that an object can refer to two classes without inheritance from one or the either is what confused me the most and made me spend a long time trying to figure out how to operate with this idea. It wasn't until my tutorial where I fully grasped and understood how to work with linked lists. To be honest, I find that I learn the concept and how to implement the code best in my tutorial rather than attending my morning classes. The problem with the lectures is that all we do is look at some block of code, talk about what method we will be implementing and then the teacher simply shows us how its done. In my opinion, this is one of the worst methods of teaching coding in general because coding is best learned in an interactive environment.

Week #4 (My thoughts on this week)

For this week's classes, we learned mostly about stack classes and how to use it. A stack refers to any object that stores information; such as lists, dictionaries and tuples. However, when working with stacks, we are only allowed to code it using three general methods: .add(), .remove(), and .isempty(). The reason for this is that we try to prevent the user from worrying about what type of object the stack is; hence, he/she can focus on simply typing the code out. I found it hard to understand this concept in class because my professor kept referring to the stack as a list, which influenced me to code the stack by referring to list methods and creating instances of a list. I fully understood it once my tutorial supervisor explained the whole concepts of stacks step by step to me.