Sunday, 5 April 2015
Slog 10
This course had a lot of ups and downs throughout the semester. At the beginning I felt confident about the material. Taking CSC108 before this course was a major help in understanding the first concepts that we did and to get through the first test. Once the basic things were out of the way things definitely started to pick up with recursion and trees/linked lists. These concepts were obviously new to me and understanding them was a challenge. This course helped me to gain more confidence in myself in not just computer science but in my life. The extra work I had to do to understand some concepts as well as further revision of previous work really helped me gain better study habits. The teachers were always there for help whenever anyone needed it and the fact that they stayed after class to answer questions everyday was a major help to everyone. The assignments were a good way to practice teamwork and I especially loved having three people in a group to divide the work out more evenly and take some pressure off everyone. I feel like my group worked really well together and we became closer during the semester. The tests were very balanced in terms of the difficulty of the questions. They were all fair and there was never a time in which I felt like the questions were not a good way of testing the knowledge of the certain subject. With the TA strike happening the professors really stepped up in keeping the course going and trying to make things easier for us. When there were tutorials the time spent in them was very helpful and really made life a little easier. Overall this course prepared me very well for upcoming courses and I have a positive attitude to everything that we have done and the amazing job the TA's and professors did for all of us.
Saturday, 28 March 2015
Slog 9
The second last week of classes is here and this week we covered some review of assignment 2 and went over some of the classes to discuss the proper implementation as well as talking about assertions. What I really enjoy about this class is all the review that happens at the beginning of each class. We review certain concept covered in previous weeks in order to supply a full understanding of the concept. This was much needed when talking about the assignment 2 functions, especially minimax. We covered an implementation of minimax as well as discussed the different test cases that prove useful at giving useful information about the class and its functions. We learned that the validity and quality of the test cases is vital at making sure you have covered everything that could occur in the code and making sure you have suitable code that runs and does what it is supposed to do. This week we also learned about assertions. Assertions are things that we know are true within the code and what we assume is true at the start of a function or method. There are different types of assertions such as assertions that state what we know and assertions to check a type contract. Assertions prove useful in many ways. Assertions help with finding bugs, they can point out the existence of of a bug even when there are no symptoms as well as locating the actual bug within the code. Assertions also communicate important things about your code. When writing down what must be true at certain points and what you expect to happen, this can point out errors or bugs within the code. Assertions prove to be very useful when designing and implementing code.
Slog 8
This week's topic was testing, but more specifically implementing and understanding minimax. As many of my fellow peers would agree, minimax was a very tough subject and ultimately I was not able to fully implement it in assignment 2. We struggled with the whole concept and writing the code so this week was really helpful when it came to fully understanding the code for minimax. With the tutorials still over it was still a struggle at to get all the extra help with understanding the concepts, but ultimately I still feel like I needed this to improve my learning habits outside of school. The term test also happened this week which I feel like I was pretty prepared for. Some of the functions for linked lists were tricky and I feel like i could have done a lot better with more studying but that is another lesson learned for the future. Since the test happened this week there was not much to cover in one lecture. We went over the methods for BST (binary search trees). A binary search tree relies on the property of the keys that are smaller than the parent are in the left subtree and the larger ones are on the right. This image gives an example of a binary search tree:

Slog 7
Throughout the entire talk of data structures we have used Python lists to implement the data types presented. A list is a simple, yet useful way of to provide the programmer with a large variety of options at presenting data types. Not all programming languages have a list collection so the programmer must implement the list manually using an un-ordered list or linked list. Linked lists to me was a somewhat easier concept to comprehend than trees. I learned a linked list is made up of nodes, where each node makes reference to the next one in the list. A node has a value and a next which takes the value of the next node in the list. A linked list can be one of two things:
1. An empty list which is represented by None
2. A node that contains a value object and a reference to a linked list
The node class can be written as follows:

There are many different implementations for a linked list and many different uses for them.
1. An empty list which is represented by None
2. A node that contains a value object and a reference to a linked list
The node class can be written as follows:
class Node: def __init__(self, value=None, next=None): self.value = value self.next = next def __str__(self): return str(self.value)
with the __init__ class initializing the value within the node and next that takes on the value of the following node. The next image helps to really represent what is going on in during a linked list. As you traverse down the list you obtain a new current value for each node with the next value refereeing to the following node's value. 
There are many different implementations for a linked list and many different uses for them.
Sunday, 8 March 2015
Slog 6
Week 7 was definitely an eye-opener in this course. With the introduction of trees and linked lists I quickly began to realize that things have gotten a lot harder. It took me a while to really understand the concept of a tree and to understand the basis of coding one. The recursion and multiple steps was a little confusing but I was ultimately able to understand a large portion of what was being introduced. Assignment 2 was definitely another eye-opener since it was much more challenging then assignment 1. The implementation of the MiniMax strategy was definitively stretching my capabilities in this course. My group and I had spent hours upon hours trying to decipher and work around certain parts in order to make the code work. I enjoyed creating the actual tippy game though because it was an interesting twist from regular tic tac toe. On another note, not having the tutorial due to the strike really caused me to have to step up in the amount of work I do outside of class. I usually look forward to going to the tutorials and having the TA there to answer questions, but since there wasn't one I had to resort to a lot more individual learning. This past week has been tough but I feel like it has helped me gain better habits and be able to expect more challenging concepts that will come ahead.
Monday, 2 March 2015
Slog 5
OOP (Object Oriented Programming) is type of programming that relies upon the use of data structures that contain data, also referred to as objects, and upon methods that is just a series of code that perform different tasks or procedures. The break down of the basic concepts in OOP is illustrated below:
class( data type definition )
-field (data member)
-method (function member)
object/instance (piece of data)
When defining a class we define a data type composed of a bunch of other pieces of data. Those pieces of data, those fields, can be any type of data that exists in the language. When creating a class, the class itself is just a blueprint for creating different pieces of data. The actual pieces of data themselves are called instances, or more commonly, are called objects. The other type of data associated with the class are methods. These methods are the operations for acting upon the data. When we instantiate a class, the instance gets its own fields that are different from all the other fields of different instances from the same class. These instances have their own distinct fields, but they share the same methods from the class.
Classes can inherit from other classes in order to create objects with similar characteristics from all the inherited classes. Using an OOP approach to programming forces the programmer to place data in an area that can not be easily accessed by the rest of the system. The data is stored within the methods and must be called in order to retrieve or modify the data stored in them. With OOP code can easily be reused again and again in different scenarios to solve problems.
class( data type definition )
-field (data member)
-method (function member)
object/instance (piece of data)
When defining a class we define a data type composed of a bunch of other pieces of data. Those pieces of data, those fields, can be any type of data that exists in the language. When creating a class, the class itself is just a blueprint for creating different pieces of data. The actual pieces of data themselves are called instances, or more commonly, are called objects. The other type of data associated with the class are methods. These methods are the operations for acting upon the data. When we instantiate a class, the instance gets its own fields that are different from all the other fields of different instances from the same class. These instances have their own distinct fields, but they share the same methods from the class.
Classes can inherit from other classes in order to create objects with similar characteristics from all the inherited classes. Using an OOP approach to programming forces the programmer to place data in an area that can not be easily accessed by the rest of the system. The data is stored within the methods and must be called in order to retrieve or modify the data stored in them. With OOP code can easily be reused again and again in different scenarios to solve problems.
Tuesday, 24 February 2015
Slog 4
OOP (Object Oriented Programming) is type of programming that relies upon the use of data structures that contain data, also referred to as objects, and upon methods that is just a series of code that perform different tasks or procedures. A major part of OOP is creating different objects that interact with each other and are comparable based on the similar characteristics obtained from methods. Objects are instances of classes that are assigned their properties from methods and can easily be compared to other similar objects from similar classes. Classes can inherit from other classes in order to create objects with similar characteristics from all the inherited classes. Using an OOP approach to programming forces the programmer to place data in an area that can not be easily accessed by the rest of the system. The data is stored within the methods and must be called in order to retrieve or modify the data stored in them. With OOP code can easily be reused again and again in different scenarios to solve problems.
Friday, 6 February 2015
Slog 3
When I first heard that we were going to begin recursion I have to admit I was not very excited. Recursion has always been a tough concept for me and I never really could quite wrap my head around it. To my surprise, recursion was not as tough as I initially thought it was going to be. The examples and practice done in class was very beneficial and was a big step in my overall understanding of this somewhat complicated concept. I realize that it is only beginning and that it will likely get tougher and tougher, but as of now I feel pretty confident with tracing recursion code. I started to realize that the labs have become more beneficial as well because of all the extra practice that we get when we are sitting in a classroom for a couple hours with someone very capable of assisting us and with not very ,any distractions. I like the arrangement of the labs as to the fact that it gives a more personal way of learning. Listening to a professor talk and trying to understand it through that is beneficial to a certain point, but then it becomes necessary to have to go and do the work on your own. These labs are an excellent way of doing that. The only thing that I would add is an example sheet that shows some quick and easy examples of something related to what is asked of us in the labs. It could be a good reference as to what is expected and would be more convenient than having to search through the course notes or looking something up online. Now I want to turn my attention to the first test. My overall opinion on the difficulty of it was that it was a very fair test. It was not insanely hard or too easy. It covered everything we learned in class and there were no surprises. I currently have no suggestions as to what should be added or taken off the test but it was really well thought out.
Thursday, 29 January 2015
Slog 2
CSC 148 has been a unique learning experience so far when compared to the previous class of CSC 108. The change from the "flipped classroom" way of learning in CSC 108 to the more basic, learn everything in class and do homework at home, way of learning in CSC 148 allowed me to explore more types of learning. Learning the concepts in class is helpful because it allows you to ask questions right away and it prevents putting off watching the videos and teaches you the concepts right there in class. What I found most challenging so far in this course is wrapping my head around the differences between the __str__ and __repr__ functions. The examples done in class were really helpful and showed distinct ways of differentiating these two functions. I would suggest maybe providing some more practice sheets or practice questions in addition to the examples done in class and in the notes online. Another change that I found interesting is the addition of another group member to the assignment groups. Another group member really spreads the work out more and makes it a less stressful process overall. The freedom given with this first assignment was another eye opener because it is not layed out for you and allows groups to be more creative with their assignments. I think this helps in preparation for real-life scenarios because later on everything won't be layed out step-by-step for you and there will be more opportunities to be creative. I am looking forward to continuing on with this course!
Wednesday, 21 January 2015
Slog 1
We all know that "geeks" spend most of their time playing computer games like League of Legends or other sorts of video entertainment. What most of them don't know is that it is important to begin to write about various topics. Writing is important no matter who you are. I personally don't like to write all that much but when I finish writing an essay or research project or some other piece of writing I get a sense of accomplishment. Remembering that feeling helps me to write better and keep me focused on the writing that I am doing. So why should "geeks" write? When writing, you get your thoughts down on paper and it helps you to organize all the thoughts that are strolling around in that head of yours. Writing is also another key element in communication that everyone should strive to improve. Writing is just as important as verbal communication and allows you to communicate your thoughts more clearly and concisely. All us "geeks" may think that typing on the computer is a viable option instead of simple pen and paper. This is not the case. I know for a fact that everyone that has attempted to write an essay has gotten distracted at some point because of some notification on Twitter or Facebook, and lets not forget about good old League of Legends. You guys know what I mean. Close the computer and start writing. It's a whole other world out there.
Subscribe to:
Posts (Atom)