cst 388: week 4
1. I worked with Joe and Martin from my group.
2. My strategy for this assignment was to first write out all of the methods using pseudo code. This way, I'm forcing myself to understand the errors, the outputs, and the behaviors that Book, Reader, and Shelf are supposed to do. If I try to jump into the code right away, then I am not able to figure out how everything works together. I didn't use paper, but I used a notepad software.
3. Joe's strategies included reading through the prompt first, then working through the methods in order of the instructions. If there was another method that was needed before implementation, he would write the code as if the method already existed, and then debugged.
Martin's strategies included reading the prompt, and then working on the methods that he understood. To go through the rest, he re-read them in more detail as needed, and continued revising until it was all correct.
4. I personally would have spent more time on the pseudo-code aspect. I felt like I rushed this part, so it was tricky to go back once I started coding.
5. Some areas that I could do better include better indentation, making sure that there's one statement per line, and making sure all of my braces are formatted the same. I did not know you could automate a lot of the style guide rules, but I will make sure I start doing that from now on.
Comments
Post a Comment