Test Driven Development

More constructors and Pair programming


Today we continued working on test driven development. We also had our first introduction to pair programming. Pair programming is when two people work on the same program at the same time. One programmer writes the test (what the program should do) and the other programmer writes the code to make the test true.

I enjoyed my first session of pair programming. It helped that I was paired with someone who is excelling in the class and was able to help me understand what was going on. It helped a lot. I can see how pair programming can help when working on a project. Two heads are better than one, right!

We wrote a calculator program that made and tested different constructors. If you want to see the work my partner and I did click here. We took turns writing the code and writing the test code. We also ran Grunt while writing the calculator program so we really had three eyes on it! We have been told that we have learned all of the concepts of Javascript and from here on out we will be practicing and reviewing. Yay! No more new material added to the soup in my head that is writing code.