Wednesday, March 28, 2012

Gilded Rose Kata

Today, I have completed the Gilded Rose Kata. Below are my notes:

  • I had an instance of not following do not repeat yourself (DRY) principles through copy-pasting because I wanted to see where to add functionality for degrading quality of "Conjured"items. I ended up pulling the duplicate code out into a function.
  • I saw a lot of duplicate code within the kata and was wondering whether to refactor or rewrite from scratch. Because I was burned out from using test-driven development (TDD), I decided that I will simply make minor corrections and use DRY for any changes that I make.
  • I performed a lot of copy-pasting during TDD, but learned that it is ok to do so: "DAMP not DRY" is the rule for test cases. DAMP stands for "Descriptive And Meaningful Phrases".

The First Leak

I am currently a student at Carnegie Mellon University, Silicon Valley, who is looking forward to obtaining his Master's degree in software engineering. My goal is to extend my knowledge within the field. One way that I am working toward this goal is by taking a seminar course on software craftsmanship in order to get rid of a particular weakness - my inability to follow the "Do not Repeat Yourself" (DRY) principle when writing code.

This blog's purpose is for me to log my progress within the software craftsmanship course, as well as to communicate other topics related to software engineering. I feel that "A Leaky Memory" is an appropriate title for the blog, as my journey will be told, or leaked, from, well, my memory.

If you are interested in learning more about CMU-SV's program, please visit this link.