Thursday, 4 February 2016

Week 4
Stack, sack, stack, sack so its a stack, wait no its a sack?!!? Damn u got me :p Through if i were to explain my current state  and feelings it would definitely be a mix of concern, worry  and drive to do well. I feel like I understand but I worry that I will forget or miss something important, my concern lies in the possibility that I may not be ready for what this midterm may hold. Regardlessly I want to do well and pass this course!!!!

Last class (Wednesday February 3 2016) we went over inheritance, super classes < in form of a program called container. We discussed what methods should be in the super/parent class container and which should be in our subclasses sack/stack.  This involved a bit of class debating, which was fun. Finally we concluded that some of the code depends on the programers train of thought,  after all there are many ways to write a program that will give the same result.

Something very new that I learned was something called unit test. Which is a class that works as a test case class allowing the programmer to run and document different cases, without having to waste more time we writing the cases or go through other troubles. It has to main component methods setUp() and TearDown(), which can be understood from their names setUp - sets up your test cases TearDown - clears the test so you can start a new one. Straightforward. Very new to me since we didn't have this in java, but i think its a great idea and saves a bunch of time.

We also talked about parentheses, using a stack to solve a problem of balancing the number of parentheses in  a line of code. Simple and Elegant.

And we were introduced to linked lists, which was literally a list in a list.

We did a lot of work in the lecture, my mind was filled with the thoughts of this midterm and my 4 other upcoming ones. The only thing that I can do is study, give it my all and believe in myself. :) Lets do this!

No comments:

Post a Comment