CST 338 Week 4

During this week I have worked with Jerrick Wallace, Matthew Ross and Dakota Fouch. My strategy for most of this assignment or at least for 'Book', 'Shelf', and 'Reader' classes is starting by looking at the UML diagram to figure out all the fields each class needed. After listing these, I use auto-generation to create the setters and getters. Then, I check the prompt to make sure the constructors were correct and tweak them as needed. Next, I auto-generate the 'hashCode' and 'equals' methods, making sure they matched the requirements. The 'toString' methods are usually a bit different, so I write it manually to get the formatting right. Once all the basic methods are set up, I move on to the logic methods, following the prompt closely and writing them out. Finally, I use the test files to make sure everything works as expected.

My teammates strategy is also for the most part reading the prompt and then just starting to write code and very close to the way I would write the code as well. 

If there is something that I would want to change in my Strategy, it would be writing the test files first then write the code. Usually that's how I write my code at my job. 

For the most part my code does meet the Google Java Style Guide. However, I think I can make some improvements. 

Comments

Popular posts from this blog

CST 462S - Learning Journal (service learning)

CST 300 Week 7