Thursday, November 21, 2013

Passing a function as an argument

In class yesterday we learned about the reduce function. This function is a bit different from others that we've learned about because it takes a function as an argument. This is new, but I don't find it as intimidating as Danny said we might feel. I think it's actually pretty cool and it makes a lot of sense to me intuitively that a function name could be used as an argument. I think the reduce method is useful and after I use it a few times I'll be used to sending it a function.

Monday, November 11, 2013

Test #2

My approach for this test is going to be different from the first. My major weakness with the first test was that I focused too much on memorizing definitions that I already had a good handle on, and not focusing on practicing. I focused too much on the page of notes.

This time I will spend more time practicing the code by writing it out on paper and then typing it out. I will redo the lab questions and exercises by hand off memory to see where I am in terms of correctness and speed and then put work into areas that I don't perform well in.

However I do need to focus on the definitions and note taking when it comes to big O notation and sorting.

Monday, November 4, 2013

Assigment #2

I got the second assignment up and working yesterday. Personally I found it much easier than the first (well I'll see when I get my mark back for it).
Most of my time spent on the assignment came from me not understanding what I should be doing or what the problem was. If I had slowed down to fully plan out what was asked and how I should approach the problem with what I was given, I would've been much easier off. For example, I spend around half an hour trying to write the regex_match method by creating a tree instead of just using the tree that was given to me. That was a very silly mistake and I should've been more focused while I worked and before I started coding.