This is not the first "last lecture" I've attended to. However, I felt most depressed that this course was ending. Perhaps it's the professor or the adversity I've faced in the course that created a bond between me and this course that no other course had. I enjoyed this course the most out of all the courses I've taken. Despite being quite challenging, I've received a sense of success and accomplishment after overcoming the challenge. Especially after completing an assignment.
In this course I was introduced to a higher level of understanding and concepts in comparison to csc108. I've learned concepts beyond the fundamentals such as planning and efficiency. We were trained to be better problem solver and thinkers in general.
The introduction to classes allow me more freedom. Instead of relying on the already existing data types I can now make my own. Beyond that, the introduction to recursion allowed me to write more elegant and neat code instead of a big chunk. As new concept are continuously introduced to us. I was able to write better quality code each time. Looking at my assignments the ones written later in the course looked more "professional" than the previous ones. Too bad unlike the slogs I wish I could have seen other's codes so I can make a comparison while looking at other's improvement as well.
By the end of the course my professor lastly said "the journey of computer science is just beginning". As my professor said this I instantly felt slightly sad yet excited at the same time. I am looking forward to learn much much more things of computer science. Although I can slightly foresee the challenges and hardships ahead. But it's fascinating to me I'm ready to step up the game.
Friday, 3 April 2015
Friday, 27 March 2015
Week 11
I am amazed by how fast the school year has passed by. I can recall my first lecture in csc108 as if it was just last week. Looking back at my slogs, I was quite surprised that I've wrote so many. If we were not asked to reflect on our past slogs I would have thought I only had a few entries.
Looking at my slogs I can clearly see that slogs served the purpose to help me organize the course materials learned in class. After every lecture, my learning seemed very abstract. With the help of slogs I was able to reexamine the course material that I was unable to immediately understand in class. Slog allowed me to organize my learning and develop a deeper understanding of the material.
While looking back at my slogs was interesting. I found it fascinating to read others as well. Indeed two heads better than one. I noticed the smallest yet important information that I've missed when writing my slog. After reading some of my classmate's slogs. I especially liked this one (http://sosocompsci.blogspot.ca/). He often integrated example codes when explaining his learning experience. Overall I found that reading my classmate's slogs really help me with learning as well. I wish I had knew this earlier and benefit from the experience of others.
One of the most important thing I believe that I've learned in this class is the importance of planning. I've learned from a painful experience in the first assignment. Me and my partners were too used to the csc108 assignment and started to write as soon as we thought we got the "idea". Later, we had to restart everything because what we attempted to do was completely incorrect. In comparison, A2 and A3 were much better as this time we actually considered the concept of the code before blindly starting to write. Not that A2 or A3 was easier than A1, but due to efficient planning everything progressed much smoother. Not only did we save a lot of time also a lot of dispute and argument. Unlike in A1, after we finished the code we felt more like a team rather than individuals.
Looking at my slogs I can clearly see that slogs served the purpose to help me organize the course materials learned in class. After every lecture, my learning seemed very abstract. With the help of slogs I was able to reexamine the course material that I was unable to immediately understand in class. Slog allowed me to organize my learning and develop a deeper understanding of the material.
While looking back at my slogs was interesting. I found it fascinating to read others as well. Indeed two heads better than one. I noticed the smallest yet important information that I've missed when writing my slog. After reading some of my classmate's slogs. I especially liked this one (http://sosocompsci.blogspot.ca/). He often integrated example codes when explaining his learning experience. Overall I found that reading my classmate's slogs really help me with learning as well. I wish I had knew this earlier and benefit from the experience of others.
One of the most important thing I believe that I've learned in this class is the importance of planning. I've learned from a painful experience in the first assignment. Me and my partners were too used to the csc108 assignment and started to write as soon as we thought we got the "idea". Later, we had to restart everything because what we attempted to do was completely incorrect. In comparison, A2 and A3 were much better as this time we actually considered the concept of the code before blindly starting to write. Not that A2 or A3 was easier than A1, but due to efficient planning everything progressed much smoother. Not only did we save a lot of time also a lot of dispute and argument. Unlike in A1, after we finished the code we felt more like a team rather than individuals.
Friday, 20 March 2015
Week 10 - Impression of week 9
In-comparison to every other week, week 9 felt rather tedious due to the occurrence of the second mid-term. Despite having only 1 hour of lecture this week. We've covered some quite interesting yet complicated concept of insert and delete of binary search trees. At first it felt like a simple add on to the previous week lectures. However later, I found that this new concept is quite sophisticated, especially the delete algorithm. Luckily it was not part of the second mid-term coverage.
The mid-term wasn't favorable to me as I screwed the very first question. On the cheat sheet that I've prepared, I thought of the possible questions on the mid-term and adjusted the information with the reference to the past mid-terms. Ironically, it is the absolute fundamentals that I didn't well prepare for. As for the first question, instead of adding 1 I've decided to subtract 1 in order to obtain the height. So my answers are very likely 2 smaller than the correct answer. If I'd took the time and double checked my answer I would have realized how foolish of a mistake that I have made.
Monday, 16 March 2015
week 9 - impression of week8
In this week, we have learned a new concept called linked list. At first I thought it would be a new type of list judging from it's name.(like nested list) However it is nothing like what we've learned before for example a set of objects in square brackets. Rather, it looks more like an other type of tree. Perhaps in my mind at the time a "singular" tree with the reference to the binary tree that we've learned just recently.
To my understandings a linked list is a sequence of a group of nodes linked between their predecessor and successor. During the lecture, we were shown an example of linked list expressed by two separated classes called LinkedList class and LLNode class.
In comparison to the most original list, the linked list is extremely organized and well sorted. Seems to me that making changes in the middle could be quite troublesome calling upon the two classes. It is quite interesting and judging for previous experiences we are likely to be using this concept in our final assignment 3.
Thursday, 5 March 2015
Week 8 - impression of week 7
Our biggest challenge this week was the assignment two that was due Thursday. In-comparison to assignment one, the assignment two was much more "demanding" I would say. Especially the computer strategy. In the subtract square assignment, we were able to simply import random and use the randint function to help us achieve our objective. Where as this time we had to actually write our own function called minimax. Beyond that, assignment two tippy games was based on the concept of tic-tac-toe. However, much more complicated as the winning conditions had variations in-comparison to tic-tac-toe.
At first it wasn't hard to come up with a viable plan for the minimax function. However it was much more easier said than done. We had zero clue how to achieve such a complex algorithm of calculation. Due to stress, my group had a dispute over 2 ideas of whether to set the game board as a dictionary of ints where each integer represents each square on the game board. Or to perhaps set coordinates instead.(x-axis and y-axis) After hours of debate, we decided to go with the simpler method. To set the game board as a dictionary and have all the check on the game board represented by an integer as the key of the dictionary in order to keep track of the game state.
Moreover, just as we though we were about to finish. We've encountered an other problem and that is the rough outcome method in the game state. And that was how round two of the dispute begun. One of my teammate came up with a brilliant idea of comparing the amount of the potential winning conditions each player had.(counting the 3 connected pieces of similar chess, basically the conditions which only requires 1 more move to win) And the player with the most 3 connected pieces obviously has a higher chance of winning the game.
After experiencing this extremely difficult assignment, I can't wait to see what assignment three would be like. Hopefully I won't look like this.
At first it wasn't hard to come up with a viable plan for the minimax function. However it was much more easier said than done. We had zero clue how to achieve such a complex algorithm of calculation. Due to stress, my group had a dispute over 2 ideas of whether to set the game board as a dictionary of ints where each integer represents each square on the game board. Or to perhaps set coordinates instead.(x-axis and y-axis) After hours of debate, we decided to go with the simpler method. To set the game board as a dictionary and have all the check on the game board represented by an integer as the key of the dictionary in order to keep track of the game state.
Moreover, just as we though we were about to finish. We've encountered an other problem and that is the rough outcome method in the game state. And that was how round two of the dispute begun. One of my teammate came up with a brilliant idea of comparing the amount of the potential winning conditions each player had.(counting the 3 connected pieces of similar chess, basically the conditions which only requires 1 more move to win) And the player with the most 3 connected pieces obviously has a higher chance of winning the game.
After experiencing this extremely difficult assignment, I can't wait to see what assignment three would be like. Hopefully I won't look like this.
Monday, 23 February 2015
Week 7 - Recursion
Recursion, has established a very "troublesome" figure in my head since the first day it was introduced to me. Luckily it was not as I thought it would be initially as I eventually became familiar with this concept later on in the course. I very much liked the idea of the tracing exercise given in class which allowed me to actually developed a liking for this concept.
We were told by our professor that the purpose of recursion is not to make our code run faster nor does it allow code to use up less memory. The purpose of which, surprisingly is to make our code look simple and elegant.(lmao)
I never thought recursion was useful until assignment 2. When me and my teammates were doing the minimax functions we initially wrote our code in the most "expanded" method. Later we decided to try using recursion and substitute all the messy code that we wrote. We were amazed how much better and cleaner our code looked when we used recursion.
Further more, I've found that the tracing practices helped me improve my code tracing skill as well as writing codes. Overall I liked recursion a lot as it helped me improve my programming skill in general.
We were told by our professor that the purpose of recursion is not to make our code run faster nor does it allow code to use up less memory. The purpose of which, surprisingly is to make our code look simple and elegant.(lmao)
I never thought recursion was useful until assignment 2. When me and my teammates were doing the minimax functions we initially wrote our code in the most "expanded" method. Later we decided to try using recursion and substitute all the messy code that we wrote. We were amazed how much better and cleaner our code looked when we used recursion.
Further more, I've found that the tracing practices helped me improve my code tracing skill as well as writing codes. Overall I liked recursion a lot as it helped me improve my programming skill in general.
Thursday, 12 February 2015
Week 6 - Object-Oriented Programming concepts
So far in this course, we become more and more familiar with the concept of Object-Oriented Programming. To my understandings so far,(I might not be 100% correct) that Object-oriented programming (OOP) uses the concept of objects to design and program applications.
In other words, it is a type programming based on programming classes with instance called objects. This brought up a question, what exactly is the definition of an object? An object is a location in memory assigned a value and potentially referenced by an identifier. An object can be a variable, a data structure, or a function. In a class, object can be a combination of variables, functions, and data structures. For example in a class such a employee or perhaps school, the object in which might be the most basic element in the class. Where the salary implemented as an int and the student name implemented as a string would be classified as the objects in particular class.
To me, this is more easily said than done. During assignment 1, often I would create the class and later notice that I've missed certain elements most commonly objects. It is easy to picture the class as a whole yet easily lacking the consideration for the smaller but also important elements.
In other words, it is a type programming based on programming classes with instance called objects. This brought up a question, what exactly is the definition of an object? An object is a location in memory assigned a value and potentially referenced by an identifier. An object can be a variable, a data structure, or a function. In a class, object can be a combination of variables, functions, and data structures. For example in a class such a employee or perhaps school, the object in which might be the most basic element in the class. Where the salary implemented as an int and the student name implemented as a string would be classified as the objects in particular class.
To me, this is more easily said than done. During assignment 1, often I would create the class and later notice that I've missed certain elements most commonly objects. It is easy to picture the class as a whole yet easily lacking the consideration for the smaller but also important elements.
Friday, 6 February 2015
Week 5 slog
As our first term test took place last week we didn't cover much in class. The most recent topic we've covered is recursion. A recursive function is a function that calls itself, and substituting the functionality of loops while looking neat and elegant.
During lectures we worked on exercises tracing recursive functions. I like the idea of this exercise as it helped me developing a deeper understanding for recursion. In the future, hopefully we will have more exercises like this.
I was extremely excited when I was informed that we are allowed a "cheat sheet" during the test. I nearly spend one and half hour gathering information of the course and completing the cheat sheet. During the process of creating this cheat sheet, I found that it feels relatively like reviewing for the course. Interestingly, the second day I barely even looked at the cheat sheet during the test. Everything on my cheat sheet is clearly part of my knowledge and memory, making the cheat sheet was completely useless. I feel like I was well prepared for the test thanks to the cheat sheet. Maybe it's purpose is for us to better prepare rather than "helping" us on the test.
During lectures we worked on exercises tracing recursive functions. I like the idea of this exercise as it helped me developing a deeper understanding for recursion. In the future, hopefully we will have more exercises like this.
I was extremely excited when I was informed that we are allowed a "cheat sheet" during the test. I nearly spend one and half hour gathering information of the course and completing the cheat sheet. During the process of creating this cheat sheet, I found that it feels relatively like reviewing for the course. Interestingly, the second day I barely even looked at the cheat sheet during the test. Everything on my cheat sheet is clearly part of my knowledge and memory, making the cheat sheet was completely useless. I feel like I was well prepared for the test thanks to the cheat sheet. Maybe it's purpose is for us to better prepare rather than "helping" us on the test.
Friday, 30 January 2015
Week 4 slog
In comparison to csc108, the difficulty level of csc148 exceed my expectation in every single aspect. Despite having only 2 lectures per week, the information we cover over time is quite abundant. In csc108 we were introduced to the basic ideas of programming such as string, float, list, tuple, dictionary, and finally we ended with the introduction to simple classes. To me, class has never been a hard concept until the beginning to csc148.
Our first assignment was to develop a game class. When we were directed to the assignment hand out, I thought it was pretty cool to actually code a game. But little did I know, it was nothing like the 3 assignments given in csc108. This time, my head was absolutely blank. I was lost, I have no idea how to even start this assignment. Luckily for me, I had a smart and hardworking partner who came up with tons of brilliant ideas. Through countless number of attempts/trial and error. We finally managed to complete the assignment on time as required.
During the lectures, we were introduced to many new concepts including inheritance and recursion. They were extremely helpful in relation to the progress of our assignment. However, I wish we were familiar with these concept before we were introduced to this assignment. Because of this assignment, me and my partner both gained valuable knowledge and experience that can not be simply taught in class.
Nonetheless, there are still some concepts I am unclear of. For example the __str__, __repr__, and __eq__ method. I don't quite understand the application of such methods as well as their purpose in this assignment. Also, I don't understand the difference between __str__ and __repr__ very well.
Overall, I'm grateful for having such wonderful and smart partners. They are always so supportive and innovative throughout the assignment. I felt a sense of belonging as well as strong bonds of friendship while working with them. Hopefully, our hard work could result in a favorable mark in return.
★░░░░░░░░░░░████░░░░░░░░░░░░░░░░░░░░★ ★░░░░░░░░░███░██░░░░░░░░░░░░░░░░░░░░★ ★░░░░░░░░░██░░░█░░░░░░░░░░░░░░░░░░░░★ ★░░░░░░░░░██░░░██░░░░░░░░░░░░░░░░░░░★ ★░░░░░░░░░░██░░░███░░░░░░░░░░░░░░░░░★ ★░░░░░░░░░░░██░░░░██░░░░░░░░░░░░░░░░★ ★░░░░░░░░░░░██░░░░░███░░░░░░░░░░░░░░★ ★░░░░░░░░░░░░██░░░░░░██░░░░░░░░░░░░░★ ★░░░░░░░███████░░░░░░░██░░░░░░░░░░░░★ ★░░░░█████░░░░░░░░░░░░░░███░██░░░░░░★ ★░░░██░░░░░████░░░░░░░░░░██████░░░░░★ ★░░░██░░████░░███░░░░░░░░░░░░░██░░░░★ ★░░░██░░░░░░░░███░░░░░░░░░░░░░██░░░░★ ★░░░░██████████░███░░░░░░░░░░░██░░░░★ ★░░░░██░░░░░░░░████░░░░░░░░░░░██░░░░★ ★░░░░███████████░░██░░░░░░░░░░██░░░░★ ★░░░░░░██░░░░░░░████░░░░░██████░░░░░★ ★░░░░░░██████████░██░░░░███░██░░░░░░★ ★░░░░░░░░░██░░░░░████░███░░░░░░░░░░░★ ★░░░░░░░░░█████████████░░░░░░░░░░░░░★ ★░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░★
Our first assignment was to develop a game class. When we were directed to the assignment hand out, I thought it was pretty cool to actually code a game. But little did I know, it was nothing like the 3 assignments given in csc108. This time, my head was absolutely blank. I was lost, I have no idea how to even start this assignment. Luckily for me, I had a smart and hardworking partner who came up with tons of brilliant ideas. Through countless number of attempts/trial and error. We finally managed to complete the assignment on time as required.
During the lectures, we were introduced to many new concepts including inheritance and recursion. They were extremely helpful in relation to the progress of our assignment. However, I wish we were familiar with these concept before we were introduced to this assignment. Because of this assignment, me and my partner both gained valuable knowledge and experience that can not be simply taught in class.
Nonetheless, there are still some concepts I am unclear of. For example the __str__, __repr__, and __eq__ method. I don't quite understand the application of such methods as well as their purpose in this assignment. Also, I don't understand the difference between __str__ and __repr__ very well.
Overall, I'm grateful for having such wonderful and smart partners. They are always so supportive and innovative throughout the assignment. I felt a sense of belonging as well as strong bonds of friendship while working with them. Hopefully, our hard work could result in a favorable mark in return.
★░░░░░░░░░░░████░░░░░░░░░░░░░░░░░░░░★ ★░░░░░░░░░███░██░░░░░░░░░░░░░░░░░░░░★ ★░░░░░░░░░██░░░█░░░░░░░░░░░░░░░░░░░░★ ★░░░░░░░░░██░░░██░░░░░░░░░░░░░░░░░░░★ ★░░░░░░░░░░██░░░███░░░░░░░░░░░░░░░░░★ ★░░░░░░░░░░░██░░░░██░░░░░░░░░░░░░░░░★ ★░░░░░░░░░░░██░░░░░███░░░░░░░░░░░░░░★ ★░░░░░░░░░░░░██░░░░░░██░░░░░░░░░░░░░★ ★░░░░░░░███████░░░░░░░██░░░░░░░░░░░░★ ★░░░░█████░░░░░░░░░░░░░░███░██░░░░░░★ ★░░░██░░░░░████░░░░░░░░░░██████░░░░░★ ★░░░██░░████░░███░░░░░░░░░░░░░██░░░░★ ★░░░██░░░░░░░░███░░░░░░░░░░░░░██░░░░★ ★░░░░██████████░███░░░░░░░░░░░██░░░░★ ★░░░░██░░░░░░░░████░░░░░░░░░░░██░░░░★ ★░░░░███████████░░██░░░░░░░░░░██░░░░★ ★░░░░░░██░░░░░░░████░░░░░██████░░░░░★ ★░░░░░░██████████░██░░░░███░██░░░░░░★ ★░░░░░░░░░██░░░░░████░███░░░░░░░░░░░★ ★░░░░░░░░░█████████████░░░░░░░░░░░░░★ ★░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░★
Wednesday, 21 January 2015
Why geeks should write
“Geeks”. How strange for such a word to appear in the title of a blog yet, probably the most prominent word that makes this blog so unique from the rest. At this point I am still unclear of what this slog title meant when I am asked “why geeks should write?”. With the reference to modern stereotypes, I assume that “geeks” indicate to us. The software programmers, or rather anyone who’s passionate about computer/games in general. That got me thinking, what relationship does writing have with what we do, programming.
Everyone is entitled to their own ideas which is what separates us apart from each other. While writing is a way to express our thoughts, our ideas, feelings, experiences, and beliefs. It is a method to pass cognition to a reader allowing them to acquire knowledge and experience from the writer.
In modern society, writing just like talking is a way of communication. It is not simply important but essential. An easy example would be job interview. To the employer, the quality of the resume correspond to the competence of the candidate as well as it links to the first impression the employer set for the candidate. An other example that is closely related to me is the university applications. All the questions are asked for a specific reason, and it’s up to the student’s response to the questions that separates the accepted and denied students.
To me as a computer science student, writing in general is closely related to writing codes. Both are a method to express my unique ideas and thoughts. Moreover, the docstrings are best if expressed as concise and informative as possible. To do so, solid writing skill is necessary to produce high quality codes. Also frequent practice in writing is likely to reduce errors when writing code.
Subscribe to:
Posts (Atom)


