Almost. I still have the exam to write, but I think we have been given quite enough material to prepare ourselves for the exam. Because of the strike, I have been ignoring the labs, but they will be the perfect stuff to do to study for the exam.
I thoroughly enjoyed this course and although because of my highschool programming background I didn't learn many completely new things, I feel like I have improved as a programmer. As for languages, I'm nervous for what the future holds for me. I have forgotten most of the Java I learned in highschool, and I'm afraid Python has made me lazy. The syntax is very much more simpler in Python than that of other languages like C and Java. In fact I would compare Python to Turing, which we used in grade 10 to introduce us to programming. It's simple and I'd love to use it more in the future, but I have heard much more about C and Javascript being used in the field than Python.
It has been a great semester, and I expect to further my knowledge in computer science next year.
KEYHAN'S SLOG!
RECURSION REVISITED
Earlier this year I wrote about both my comfort and discomfort with recursion, that the method is simple enough, that there are only two steps to follow, yet recursion is such a difficult concept to conceptualize. I will have to agree with my past self, that recursion at first seems incredible hard to work with, then after you learn the tools of the trade (check for base case, get to base case) it seems incredibly easy, until you have to apply this knowledge for the first few times, where when you run into a problem, you have no idea where to start. This latter part happened for me in the last assignment.
Many of my classmates find recursion easy, yet they also had trouble in pruning, for part A in assignment 3. I was one of those people. On the surface recursion is easy, but put recursion together with another concept that you're iffy about, like minimax, and you're in for a tough time. This is mainly because following variables through so many instances gets tough to do, and very hard to conceptualize, so diagrams and drawing are the only things that can really help you. Of course after hours of tinkering around with variables I was able to solve this pruning problem, but to be honest I'm not even sure that I completely understand what's going on in my code. I have a general idea of what's going on as a whole and in first and second instances, but once it gets down to the nitty-gritty of comparing state scores and returning a final value, I'm kind of lost, to be honest.
Many of my classmates find recursion easy, yet they also had trouble in pruning, for part A in assignment 3. I was one of those people. On the surface recursion is easy, but put recursion together with another concept that you're iffy about, like minimax, and you're in for a tough time. This is mainly because following variables through so many instances gets tough to do, and very hard to conceptualize, so diagrams and drawing are the only things that can really help you. Of course after hours of tinkering around with variables I was able to solve this pruning problem, but to be honest I'm not even sure that I completely understand what's going on in my code. I have a general idea of what's going on as a whole and in first and second instances, but once it gets down to the nitty-gritty of comparing state scores and returning a final value, I'm kind of lost, to be honest.
UNIT TESTS
I came from a highschool where although we were always required to have examples in our comments when making a method or function, but we didn't have unit testing, as far as I remember. During first semester, in my 108 class, I noticed at the bottom of our starter code there was a little if block which did 'unittesting'. At the time I didn't know what that was. Later I would learn that it would save me hours of time.
Back in the old day, before I knew about unit tests, I would manually run each of my programs, and even think myself clever for having all my lines pre-typed in an open Notepad file, ready to copy and paste one line at a time into Wing. I would honestly run each and every one of my examples manually, not knowing how to use unit test. It was during the second assignment in 108 when I learned what it did, and it really has saved me the most time. Unit tests are probably the highlight of my first year of university studying computer science, and it has definitely saved me the most time out of anything else this year.
To be able to run a program and test it's success all in one button press is an amazing feeling.
Back in the old day, before I knew about unit tests, I would manually run each of my programs, and even think myself clever for having all my lines pre-typed in an open Notepad file, ready to copy and paste one line at a time into Wing. I would honestly run each and every one of my examples manually, not knowing how to use unit test. It was during the second assignment in 108 when I learned what it did, and it really has saved me the most time. Unit tests are probably the highlight of my first year of university studying computer science, and it has definitely saved me the most time out of anything else this year.
To be able to run a program and test it's success all in one button press is an amazing feeling.
BINARY SEARCH TREES
These are something that interest me a lot, because of their ability to have everything placed non-linearly, yet completely sorted at the same time. I can only imagine how efficiency is improved when they are used. Still, Trees and even BinaryTrees aren't particularly well-moulded in my head, and every time a __repr__ or __str__ is used on a Tree, Binary or not, I'm not quite sure what's going on. But on a conceptual level on paper, I do see what's going on which simplifies matters. This is the main reason I believe we are encouraged to draw pictures and diagrams in problem-solving, to help us conceptualize not just the problem, but the entire premise of the problem, better.
LINKED LISTS
As a person who has dealt with lists for so long, it's hard to see the difference between Linked Lists and Lists at first. They both seem like lists of things. Especially because of the way we imagine Linked Lists, nodes connecting to other nodes, we may not realize what it is like to the computer. For example, a human could easily look at the drawing of a Linked List when asked to name the third element without traversing the list, whereas the computer can only name the third element by going through the list node by node. Only the front and back and their reference points are visible to the computer, otherwise a path must be followed.
Other than teaching us the concept of object oriented programming, including the concept of stacks, I don't see the real purpose of Linked Lists. From what I can tell, all operations take more time. However, I realize that even lists are a class, and perhaps the methods Python uses for them aren't very efficient either.
The concept is simple enough but its uses are unexplored by me.
Other than teaching us the concept of object oriented programming, including the concept of stacks, I don't see the real purpose of Linked Lists. From what I can tell, all operations take more time. However, I realize that even lists are a class, and perhaps the methods Python uses for them aren't very efficient either.
The concept is simple enough but its uses are unexplored by me.
OBJECT ORIENTED PROGRAMMING
Learning object oriented programming is one of the biggest steps in learning computer science for sure. I think this is what separates the very beginners from the next level, mostly because at first it's kind of a hard concept to grasp, for humans. It's very basic and probably one of the more heavily used tools in programming games, webpages, and complex softwares. It's so widely used because it's so key. In fact if I were to design the universe, I would definitely use classes to code objects.
Everything could be classified in terms of classes and defined as objects, which is one of the first things we are taught about object oriented programming when we start. Once you start to think about it, object oriented programming starts to make sense and really becomes quite a problem solver. Data encapsulation not only makes things tidier but also easier to understand and keep track of. As an object, everything has it's own set of data which we expect it to have.
Strings, lists, arrays, the list goes on. Objects are what propels us into the future! Before objects we would rely on numbers, an object on their own level, and before that boolean expressions which we use to relay data into computers.
Objects and classes, I think, are amongst the first layers of the programming pyramid. Most of what we program is made so much easier thanks to objects. Like my classmate (linked) explains, object oriented programming is useful not only because of the ability to organize large amounts of data (encapsulate) but also helps the computer's ability to reference the data.
Object oriented programming starts out as foreign but eventually becomes something we can even consider in real life, something that makes sense even in the abstract sense when consider any thing and even any real life methods that exist. It's the existence of object oriented programming that makes us wonder, sometimes, is the world we live in a computer simulation?
Everything could be classified in terms of classes and defined as objects, which is one of the first things we are taught about object oriented programming when we start. Once you start to think about it, object oriented programming starts to make sense and really becomes quite a problem solver. Data encapsulation not only makes things tidier but also easier to understand and keep track of. As an object, everything has it's own set of data which we expect it to have.
Strings, lists, arrays, the list goes on. Objects are what propels us into the future! Before objects we would rely on numbers, an object on their own level, and before that boolean expressions which we use to relay data into computers.
Objects and classes, I think, are amongst the first layers of the programming pyramid. Most of what we program is made so much easier thanks to objects. Like my classmate (linked) explains, object oriented programming is useful not only because of the ability to organize large amounts of data (encapsulate) but also helps the computer's ability to reference the data.
Object oriented programming starts out as foreign but eventually becomes something we can even consider in real life, something that makes sense even in the abstract sense when consider any thing and even any real life methods that exist. It's the existence of object oriented programming that makes us wonder, sometimes, is the world we live in a computer simulation?
WRITING RECURSION
Well I sort of went on about recursion last time that I went into writing recursion as well. After this lecture, however, I have a few new insights (I've got to write about something, haven't I?). For beginners, maybe it's because of the type of examples we've done, or maybe something about the nature of Trees in programming, but we've only ever had two conditions. 'if' and 'else'. I think it's likely that this is only because we are only just learning about recursion.
About Trees. Well, I like Trees but I don't like having to think about them. Something about their organization bothers me and I find lists much easier to follow. That being said they have many practical uses which I respect fully.
I'm pleased with my midterm test mark (the first one) but do think I could have easily done better. But I'm not too upset because these midterms (together) are only worth 16%. Sometimes I wish they were worth more, sometimes worth less, but all that this means is that I have to keep my marks consistent to get a nice final mark.
About Trees. Well, I like Trees but I don't like having to think about them. Something about their organization bothers me and I find lists much easier to follow. That being said they have many practical uses which I respect fully.
I'm pleased with my midterm test mark (the first one) but do think I could have easily done better. But I'm not too upset because these midterms (together) are only worth 16%. Sometimes I wish they were worth more, sometimes worth less, but all that this means is that I have to keep my marks consistent to get a nice final mark.
Subscribe to:
Posts (Atom)