Sunday, 28 February 2016

Week 6


This week I finally finished Assignment #1. Yay! I found the most difficult part of this assignment was fully understanding what the instructors wanted and to analyze the client code to see what the final output should be. The more I went on Piazza, the more confused I would get. I don't think I was the only one, because a lot of people were asking the same questions over and over again and it seemed a lot of misunderstandings were created. The thing most people were confused over was in regards to which functions/methods we had to write examples for. Some people answered that it was only for the functions/methods that we had to write the docstrings for, while others answered it was for any function/method that did not return None. I ended up just writing for all the functions/methods that did not return None, but even now I am unsure as to what is really required.

I believe through this assignment I really got a taste as to what it is like to design your own classes based on reading through docstrings and client code. I think it was a good exercise for all of us to think more like computer scientists. I believe my code (at least most of it) is correct, as I got the correct output for the output_small.txt we received. I can only hope that my style was good. I am really praying that my mark will be good for Assignment #1 because I really want to boost my mark after a very disappointing midterm. The only thing I am worried about for the assignment is that I had almost no helper functions/methods at all, which I found peculiar. I just never saw the need for them but I remember when I did assignments in CSC108, I always wrote helper functions, so it felt strange this time.

The lab this week was very easy. I finished it very quickly and it was very straight forward unlike the last one, which got me really confused. We were introduced to recursion this week. I have always heard that recursion is very difficult, so I feel a little anxious for what's to come. So far things are straight forward and I am understanding what is going on during lectures. But I have not practised writing my own recursive functions, which is probably where things will get difficult. It is one thing to understand something when going over the solutions, and another when implementing your own recursive functions. However, I believe with practise things will get easier, and I will perform much better on the next midterm.

See you next week!

Sunday, 14 February 2016

Week 5


This week was the week everyone was dreading -- the week of midterms!! I was very nervous because it was my very first midterm this semester. Unfortunately, I did not do as well as I had hoped, mainly because I did not manage my time very wisely. I spent too much time on the docstrings, and I did not map out my time very well. The thing that happens every time I write a test is that I think too much, which makes me confused and I start to panic. But I learned my lesson this week, and hopefully the next midterm will go more smoothly. I am also worried about the people who could not write their test because of the false fire alarm. Hopefully things will be resolved in a fair manner.

I felt extremely stressed this week because I had so many things due at once, and because of that, I did not have a chance to do the lab beforehand. I always finish the lab beforehand because I usually take more than 2 hours to make sense of it. I was confused with the insert_before method for this week's lab, as I did not know how to set the next node with a new value and append the remaining nodes. It was only after the quiz that I realized I just needed to create a LinkedListNode, because it allows for you to set the next nodes. As a result, I did not finish the lab and I messed up on the quiz. Next time I will definitely do the lab before the day of the quiz.

Fingers crossed that I will actually make use of this reading week to catch up and get ahead in all my homework and studying! I still have quite a bit to do for Assignment 1. I am still confused with how all the classes tie in with each other but I'm sure I will sort things out by the deadline. Professor Danny Heap said to look at the client code to figure out how we should format our str methods for our classes, but I was still unsure when I looked at it.

See you after the break!

Saturday, 6 February 2016

Week 4


Another week has come and gone with midterms fast approaching. No new concepts were introduced, which was a relief. I am still feeling a little bit confused over the difference between private and public attributes/methods. This makes me feel a little anxious over the upcoming midterm next week. Professor Danny Heap mentioned that the previous midterms will be the least helpful to us, but I will still work through them because I found them very useful in CSC108. I am also a little wary about inheritance so I will have to review that before the midterm.

This week's quiz was very simple. I appreciated how the question was based exactly on the list_queue function we wrote in our lab. The lab this week involved writing client code and unittests. I found it fairly straight forward, considering class Queue did basically the same things as class Stack. The only thing I did not quite understand was the part where we had to create unittests. Although I followed what the testqueue file did for creating unittests, I did not completely understand all the tests that were used. I created unittests in CSC108, but the wording and functions created were very straight forward and were used to test functions, not classes. For example, I did not know what "clean up" meant for the testDown unittest. I hope we will learn more about unittests in class, where we will be given guidelines as to how to create them.

I believe my biggest struggle so far in CSC148 is deciding how to structure and format classes in an efficient and cohesive way. I have trouble designing the classes under a time limit and so I hope to become more quick with structuring them. I have a feeling after I complete Assignment 1, I will become more adept in creating classes.

Speaking of which, I finally started Assignment 1 this week. In my opinion, the most difficult part of doing assignments is reading through the assignment outline because it is so tedious. But after understanding the context of the assignment, things get much more interesting. I have not gotten very far through the assignment, so nothing too confusing has popped up yet.

Thanks for reading!