Thursday, March 3, 2016

Hey what’s going on y’all? Ready for my week 7 SLOG post? Of course you are! And so am I! To start off, I guess I will do a little recap of this week’s events. This week we had more work on recursion, but this time in terms of trees. Trees I’m just going to assume that you already know, just so I don’t have explain it. Anyways, the subject of trees, or at least how it is being taught, I though was interesting. Particularly on the grounds that you can use them to create fractals (or at least what looked like a fractal), which is something that I had adored since I was introduced to them all the way back in grade 6 or 7. However, grades 6-8 just seem to have merged together for me so I could be wrong about when I had been introduced to them. But it is nice to be actually taught trees which is one of the concepts that I have always known in something like a flow chart, but never in a computer science way. So far we were taught to be able to determine characteristics of a tree such as depth and leaf count, but I hope we further explore them.

Enough of the diddle daddle, let’s get into the required content for this SLOG post. Although all three topics are of interest, I will talk about my view on Object-Orientated-Programming (OOP). This is a concept that always seems to pop up, either in practice or conversation. I’m sure that I have mentioned this before, but I do appreciate the whole idea of OOP, particularly when we take multiple different classes and use them all together. It’s just like taking multiple pieces and making them all fit together and form one large puzzle. However above all, I feel that when creating a program, it is more rewarding to have multiple classes, including abstract data types, all coming together and working together vs just having one file with a single class or a small collection of classes. It is also worth mentioning that it is interesting that we can literally create our own classes and make them do tasks not implemented within python natively which also further peaks my interest because we get to use them as attributes or objects within other classes.

Besides my opinion on the concept, I feel strongly that it is necessary to have the material taught in such a way as to when we finish the course, it is solidified in our minds, and have it continue to thrive in the work that we eventually accomplish. This course I feel does that very well. Although not explicitly stated, we are learning about it none the less. Over the course of the term, we had created and used many different classes, some of which may have appeared trivial, such as linked lists, and the whole thing about shapes. But the further we progress, the more everything becomes interconnected and concepts strengthened. For instance, starting with something like Stack, it moves into something such as PriorityQueue that we have used in our assignment by implementing it in such a way as to have it as an object within another class. Additionally, another great example of OOP is with the concept of Shape that we had programmed. Not only do we have a superclass and subclasses, but we also use classes such as turtle, and point. All of which are prevalent within the superclass Shape, touching on inheritance and composition. Teaching by building up to the larger picture I feel allows us to understand that we have the power to do whatever we want and understand how we can truly make everything very interconnected and work together.


 In conclusion that is my little collection of opinions related to OOP. I hope that I had covered the necessary areas of interest and kept you even the slightest bit interested as you read. And if I didn’t, I just hope that you were at least not bored out of your mind.

No comments:

Post a Comment