Friday, 30 January 2015

Week 4

The past few weeks of the course have been interesting. The main concepts we have covered in the course at this point are classes and inheritance. We talked about what classes are, when and how they are used, some essential methods that we should include, and we talked about inheritance.

Inheritance is a powerful topic that has been covered, because it can save a lot of time. When a class inherits methods of a another class, the inherited class can be referred to as a subclass, and the class that has been inherited can be referred to as the parent class. Inheritance can be used to save a lot of code writing that would be redundant, thus saving time. This is what makes inheritance very convenient. For example, if I want to create multiple games, many game classes would have methods that are the same, such as a method to determine whose turn it is. We can create a general game class that has a method to check and display whose turn it is, and we can have specific game classes inherit the methods of the general game class. this way, we wouldn't have to rewrite the method that checks/displays whose turn it is, saving us time.

One thing I can do to improve my performance and understanding of the course is to go to labs on time. I have been late to the last few labs, and I think that being late has prevented me from finishing the exercises in the lab handout. This has resulted in me not fully mastering the material I am expected to know, which is reflected in my poor performance in the quizzes. I believe that by going to the labs on time, I will have sufficient time to complete the lab handout, and I will do better on the quizzes, and I will gain a mastery of the weeks' material.

In addition, I can also improve my performance in the course by going to all of the lectures. After the first week of classes, I thought that going to lectures is not essential because the professor always posts his slides on the webpage. Therefore, I skipped a lecture in week 3 and week 4. I tried to go back to the lecture slides and the code done in class to learn the material by myself, but without the explanations, it was harder to catch up on the material and learn what had been taught. I wasted a lot of time figuring out what had been taught. I learned that it is essential to go to lectures because the explanations of the professors are very good, and without those explanations, it is difficult to understand the purpose of the code written and posted in the course website. Thereby, I believe that by attending all lectures, my performance in the course will drastically improve.

My experiences in the course are similar to that of the blogger with the link in brackets: (http://aktrancsc148.blogspot.ca/2015/02/week-4.html). I agree with the blogger when he/she says that so far, the material isn't too difficult to learn and I also agree with the blogger when he/she says the first assignment is difficult to plan out because there is no starter code provided. I haven't performed well in the quizzes due to my procrastination in reading lecture slides and attending labs late, but once I finished the lab exercises after the lab, I found the material not too difficult to grasp. Additionally, I have been used to getting starter code in CSC108 in my assignments. Thereby, without starter code, it was difficult for me to think of how to implement the game using classes, and to plan out the assignment. This is something that I will have to get used to in CSC148, because I am assuming that we are now expected to become independent and write programs on our own, without getting starter code to point us in the right direction. This is good, because it helps us become more independent.

I am looking forward for a fantastic week.

Wednesday, 21 January 2015

SLOG 1 - Why Geeks Should Write

In the modern world, there seems to be nothing more important than being able to write. Effective writing gives us the ability to communicate our ideas clearly to the reader, helps us to better understand a topic, and gives us means to review particular concepts or adventures that we have gone through in the past that may be useful to us in the future.

One reason why geeks should write is because writing gives us the ability to communicate a message or a lesson across to the reader in a clear and fashionable way. Whether it is writing about a war in history, explaining how to build your own model rocket in an instuction manual, or explaining what a particular line of code does in a computer program, writing can get our message across to the reader, who can use our message or instructions to learn something new, understand something that she could not comprehend before, or simply follow instructions. Clarity is very important, and effective and clear writing comes with practice. The more clear a piece of written work is, the easier it is for the reader to comprehend and make use of the written work. For computer scientists, writing is particularly important, because being able to explain what each line of code does in computer programs can be very useful when debugging code, or when working to make algorithms more efficient.

In addition, geeks should write is because writing can help us to better understand a topic that we may have had difficulty with. Sometimes we learn about complicated things in science, math, or any other subject area where we don't understand exactly what is going on or why something works in a particular way. When we finally understand something, writing down what we learned in our own words can help us to develop an understanding of that particular topic. Using examples and describing something in detail can help us to better understand a topic that we are trying to learn about and it can help us to retain what we are writing about in our long term memory. In particular, when reading mathematical proofs, sometimes it can be difficult to decode all the mathematical symbols, making it difficult to go through and understand the proof, especially to individuals like me who are new to proofs. Translating these proofs in clear and concise sentences, and writing some proofs in our own words can help us to better understand why a particular theorem or statement is true, and where and how each line of the proof comes from.

Furthermore, geeks should write about their past experiences, and how they overcame problems and obstacles in their lives. This can be very useful, because when we are faced with some of the same obstacles again, we can go back to our journal, or wherever we may have written about our past experiences, and look at how we have dealt with our problems in the past. We can take a look to see what worked and what didn't work, so when tackling a particular problem again, we can tackle it with greater efficiency. One example can be keeping a log on tracking down bugs. It can be very useful to always write a journal about what bugs we may have had to track down throughout our career, and what approach we used to track them down. When faced with a similar challenge in the future, we can go back to our journal to see what worked and what didn't, and we can use a more efficient approach using our past experiences to track down a bug. Referring to a past journal on how we may have successfully fixed/tracked down a bug in the past can be particularly useful when we are stumped and don't even know where to begin!