Friday, February 27, 2015

Week 5 SLOG

This week there was only 1 lecture as the text occupied 1 lecture section so there is not a lot of material covered this week. However, something new that I learned is the important of parenthesization in computer science and it that python is really sensitive to have the perfect parenthesization for the program to work. Sometimes the code is too long and we might not be able to detect an error in parenthesization and the code wouldn’t run because of it, recursion codes can be helpful in these situations to help us detect and correct the parenthesization. Although we didn’t learn exactly how to write that recursion code but I did learn that this is a method to solve this common issue.
I really enjoyed doing the term test this week. I felt the test is really fair by testing the students the exact material covered in the lectures but they didn’t make it too difficult or easy. I felt like I was enjoying doing the test the whole time although this may be attributed to I personally felt like I did well.
I found the lab this week to be a quite challenging as the material covered this week did not go into detail so I was finding myself asking for help from TA a lot during the lab section, but after working on it for 2 hours I was able to complete the lab test with ease.
I am pretty confident in the material covered this week thanks simply not that much material that was covered. I feel like the lab helped cemented my understanding for the material.
I was very proud of my test and I considered it to be my biggest achievements in CSC148 this week. I felt like I didn’t encounter any major difficulty during the test and was able to complete the 3 questions without much hassle. Although I hope there was a little extra time for me to double check my work but overall I am happy and quite confident with how I did in this term test.
Ask, then answer, some questions you had about course content (Explain how you solve the question)

I originally had an issue of not knowing what to do with the queue_list in this week’s lab as I was having trouble understanding how ADT and all the helper functions work. This frustrated me for quite some time so I keep asking the lab TA for clarification and ultimately I am able to understand all of it and complete the lab.

Thursday, February 26, 2015

Week 7 - Thoughts on object-oriented programming

Throughout the course of CSC148, object-oriented programming has been the major theme. Most of codes showed in class or we need to write are based on object-oriented programming. This can be clearly seen in both assignment 1 and assignment 2 as object-oriented programming is a crucial requirement for those two tasks. The diversity of object-oriented programming is significant but the one type that this course is focusing on is class-based , creating new classes and it’s subclasses for different objects. I learned about this class-based coding a little bit in CSC108 but here in CSC148, I am able to fully understand why classes are so essential to coding.

At the first 2 weeks of the course, I was having trouble understanding why classes and subclasses are emphasize in the course as I feel it’s a waste of time by making more python files for different classes. However I now understand that classes are kind of like folders where it groups and organizes similar stuff together. Although I feel this is sort of irrelevant at this stage of my personal coding as my programs are not that sophisticated but I can definitely see how this type of object-oriented programming can be really helpful with a complex program. The way that there is a general parent class that can be really simple but its subclasses have detail coding that follow the parent class closely so all the subclasses are very similar. The inheritance feature of classes is the magic of object-oriented programing where all the subclasses can inherit all the functions from the parent class but it also let the user to override these inherited functions if needed,  this is essential as it still let subclasses to be grouped under its parent class without losing much flexibility when modifying the codes.


Although the organization and grouping that classed-based coding brings is really helpful but I still find that it could be tedious and time consuming to write all codes in this format. At least for the level of programs I am writing right now for this course, I feel like object-oriented programming is unnecessary as the codes do not need new instances or subclasses to make it neater. This means that at this point I feel like object-oriented programming is less efficient for me then regular programming or at least subclasses can be ignored but still be able to complete a program that works as intended. 

Wednesday, February 11, 2015

Week 4 SLOG

This week, I learned about tracing recursion in class. Recursion is a new concept to me and after learning about tracing recursion and learned that there’s a code that can solve recursion issues, I think recursion code can be monumental in my future coding as it solves a lot of complex problems like working equations for a list or any other class that the depth is not constant.
I really enjoyed doing the trace recursion worksheet in class with professor Heap leading the way to help simplify the questions. The step by step process in the worksheet is a very methodical way for me to learn recursion. With this recursion worksheet, I definitely speeded up the process of learning and comprehending recursion so this is something I really appreciate and hope professor Heap will keep doing in class.

I found that assignment 1 is pretty challenging as the instruction is not as clear as I hope to be as there are a lot of ambiguities that I am having trouble of like knowing if something is required or should be omitted in the assignment. I am able to solve this issue by going to office hours twice during the week and ask professor Heap for clarification. Although the meeting time was short, I still think I had a much better idea and concept about the assignment after the meeting which I think was monumental for me in completing this assignment.

I am pretty confident in the material covered this week thanks to the recursion tracing worksheet that did wonder in my ability to trace recursion. The methodical method really clicked with me so I feel like tracing recursion is not a chore for me and I am confident of completing this during the next week term test.

Recursion is a common issue in a lot of academic field especially math and statistics. We sometimes lack the knowledge of the depth of the question but we still have to have an equation to work on it. For example, if I want to do a summation of numbers in a nested list, a recursion can be the best solution to solve these kind of questions as it will deal with any nested list no matter what the depth of the list is.

I was very proud of my assignment 1 and I considered it to be my biggest achievements in CSC148 this week. I initially was having trouble to even understanding the assignment as I was not quite sure what the assignment really wanted, however through piazza discussion and office hours, I was able to understand the assignment and put in a lot of effort in completing it. I originally had an issue of not knowing what to do with the general strategy class for assignment 1 as I was having trouble to implement anything in that class. This frustrated me for quite some time but then I posted my question on the piazza forum and ask professor Heap for some ideas to solve this issue, I learned that I actually can have a general strategy class that is basically empty as long as I have comments to explain why I omitted most of my basic functions. 

The tutorial went pretty well as I had a lot more recursion tracing exercise, I feel like it's crucial for my understanding of recursion and it's going to help me quite a bit in writing recursion functions as well as for test next week. The tutorial's quiz is also pretty similar to the tutorial itself as it is just recursion tracing. I feel like this tutorial set a foundation for going deeper in understanding recursion and writing recursion functions as we go further into the course.