Tuesday, 7 April 2015

Last Impression (Final Week)

I now fully believe that computer science is not my path. After continually suffering each day from my inability to comprehend anything said in class, I have decided to switch out into astronomy and mathematics. To be honest, Astronomy was something that I always wanted to do from the beginning. It was my parents who were against it and would have probably provided me with no support if I were to switch out to it. The idea and the thinking behind computer science was fascinating. Every time I got a small function to work, I would be absolutely memorized. The only problem was that I was unable to keep with the workload. I have to admit it though, I had lots of fun and the teachers were very compassionate and helpful people. Other than the strike, everything flowed smoothly in the course and I wouldn't change much about it.

Sunday, 5 April 2015

Revisiting an old slog (Week 11)

Back in week 3 when I talked about the importance of being able to write, I mentioned that it is a life essential skill that everyone should have. I still genuinely believe that writing is one of the most important assets that a person can have. A person's ability to write represents more than what they merely scribble down: it represents their personality, attitude and philosophy. The grammar structure, the flow of the words and the vocabulary show what kind of person you are. That's why the first essay, a person's first impression, is so vital to those reading it. I feel as if most of classmates disagree with me. When I read other people's slogs, most are either incomplete or poorly written.

Thursday, 2 April 2015

Thoughts on Assignment 3 (Week 10)

Ever since the TA strike took place, I've been having trouble following along in class. I think I may have ADHD. Maybe that's why I'm unable to focus for more than 5 minutes. Truth is, I could never pay attention in class, and always relied on the tutorials to help me out. The one thing is CSC148 that I have to give a lot of recognition for is the tutorials. These tutorials are a blessing in disguise. Everything I didn't know or understand is clearly explained to me during these hours. I'm more of a hands on learning type of guy so I could never learn just by listening- I need to be doing something while learning. That's probably why I did so well on assignment 1 but completely bombed assignment 2. Now It's probably going to be the same for assignment 3. I have no idea on how to begin this assignment, nor do I understand what most of the functions do. Though we were given the tutorials sheets to complete ourselves, I still have no idea how to do any of them. Usually I had the TA or the guys sitting next to me explain what most of it did. I'm starting to feel as if computer science isn't my thing and maybe pursue another degree. Though I have been attending most classes, I'm unable to comprehend what the professor is explaining, It just goes in and out of my head like air. This week, we learned about assertion- which is supposed to be some sort of error detecting method. I understand what the method does, but have no clue on how to use it. Hopefully all goes well and I am able to hand in something for some marks on assignment 3.

Thoughts this Week (Week 9)

The second midterm took place this week on March 11, 2015. Funny thing was that I never knew of this test until after the test was completed; instead, I was at the varsity dome playing drop-in soccer since the morning of. It wasn't until around noon where a colleague of mine dropped by and asked me how well I had done. At first I was confused and worried, but it wasn't until after he had told me that the test was finished that I realized that I was actually screwed. Not wanting to fail the course, I went to Danny Heap during office hours to ask and write the test during the evening class. I was worried that he was going to say no, but he was really lenient and had no problem letting me do so. Though I was given a saving grace, I still had not studied for this upcoming test at all. I called my partner hoping that he can teach me what I need to know, but it turns out that he never knew about this test either. Together, we studied from noon until 6 in the evening that day and did surprisingly well. Other than a few casual mistakes, I think I got most of the answers- especially the coding.

Note to self: Get an agenda.

Wednesday, 1 April 2015

Thoughts this week (Week 8)

With all of the teaching assistants currently on strike, tutorials and some classes continue to be cancelled. Our slogs, assignments and midterms will not be marked due to the massive amounts of hours it requires to grade them. Though our classes for CSC148 continue to take place, I doubt many people actually show up. Many people see this as a chance that our assignments, midterms and quizzes will not be counted towards our final grade; hence they see little reason to attend class. There isn't much that I could review about this week other than the currently ongoing strike. My opinion is that the TAs should be given a slight increase in their earnings while allowing them to work at multiple jobs. After all, they come to school to earn a degree, not to earn money. Their tuition is reduced and they’re earning money while finishing their degree. On top of that, they barely work ten hours a week, for around forty five dollars an hour. If you ask me, that sounds like a pretty awesome job to me.  

Monday, 30 March 2015

Object Oriented Programming (Week 7)

Please refer to my Week 6 slog about Object Oriented Programming as my entry.

Wednesday, 4 March 2015

Object Oriented Programming Concept (Week 6)

Object Oriented programming is a type of programming language that is modeled around objects rather than actions and uses logic rather than memory. Each object can interact with one another, and can be modified while the program is running. This is extremely useful compared to a non Object Oriented programming such as BASIC. In basic, an element is static and cannot be modified outside of the code; hence, we cannot change the element directly. I started coding in grade 10 with BASIC. From grade 11 to 12, I transitioned into learning Java with the program Netbeans. Java was the first Object Oriented programming language that I ever learned and it's also the most useful for two reasons: simplicity and efficiency.

Though I used coded in both BASIC and JAVA, I find that Java is much more efficient and user-friendly. In a program that has repetitive code, it may take hundreds of line for it to be written in BASIC, whereas in Java, such a task could be completed with a maybe a dozen lines. Instances of objects created in Java could easily be modified with a simple method, whereas in BASIC, all instances of the object must be modified within the code itself; hence, if you have a 10000 lines of code for a program, you must go through each instance of the object and change it by hand.

Java is simple in a way where a non-programmer can sort of understand what a specific method or function does. The words used in coding for java can be traced with modern English.

while( x < 20 ) {
         System.out.print("value of x : " + x );
         x++;
         System.out.print("\n");
The above code is a simple while loop and can be translated into a sentence as "while x is less than 20, print the value of x."


Though I have coded in many different languages, I find that Object Oriented languages are  the more useful and efficient type of languages out there. C++, Python, Ruby, and PHP are other famous Object Oriented programming languages that are commonly used in today's society.