For my final blog post this semester, I want to discuss my personal in class experience. During the last class, our Software Testing and Quality Assurance class did an in class code review that I found to be very interesting. Basically, were given some code for a solitaire game and were told to individually look through it and record our feedback. At the start of the class, the team leader put all of our issues we each found together into one sheet. We then all projected the code/issues on the wall and discussed our findings. It was very interesting to me how many different things we all found when looking at the same piece of code. For example, the problems with the code that I found mainly had to do with the visual display of the program. While, someone else in my code had issues with the programming style and suggested to use a Driver class.
As a developer, you will quickly learn that there is a million ways to do everything. Although one way might work, it doesn’t mean it’s the best way or the way it “should” be done. Practicing clean, elegant, efficient code is a huge part of programming. You need to not only make the program do what it’s supposed to, but also properly comment, come up with good names, have good spacing and much more. A messy program is much more prone to problems that will be unresolved or difficult to fix; especially in the real world where there will always be multiple developers working on the same stuff. I found this activity to be a great learning experience. I enjoyed being part of a code review and having some input into what I thought could be better about the program. I hope to do something like this again next semester before I’m off into the workplace for real!
From the blog CS@Worcester – Alex's Comp Sci Blog by alexsblog13 and used with permission of the author. All other rights reserved by the author.