Computer Science BS Journal: Week 13
This week we are reviewing the Markov assignment with classmates. For the Markov review I worked with Neng Lao. He helped me get out of a tough spot with my failing tests and in the end I had all tests passing and got full marks. (I had a typo 😭)
- Who did you work with?
- I worked with Neng Lao
- What was your strategy for solving the Markov assignment?
- Did you start writing code right away? Did you plan it out on paper?
- I didn't plan anything out, but I initially read the coding prompt and took a look at the UML diagram to get an idea of what was to be included. After reading and becoming familiar with the prompt I had it opened on my other screen while I created my stubs. Then I simply went down the list of methods on the prompt and coded them in order.
- What was THEIR strategy for solving the Markov assignment.
- Neng said his strategy was "For the assignment my strategy was to write out all the stubs and worked through each function/method one by one making sure they pass the test. Some methods that calls on other methods required ensuring those methods were written out completely so I made sure those passed before doing any methods that calls other methods."
- How would you change your strategy having worked on the assignment?
- I think after finishing the assignment one thing I'd like to change in my strategy is to run my tests more frequently and correct my mistakes as I go, rather than arrogantly type out all of my code expecting it to work and then be lost at the end because I can't narrow down where my error is at. By doing that I can fix my code as I go rather than be lost at the end.
- According to your classmate(s): how well does your code follow the Google Java Style Guide?
- I didn't really catch any comments about my code from Neng so I'm going to assume I did a good job following the style guide.
- Did you know you can automate applying some of the style guide rules?
- I did not know that, this is going to be very helpful.
Comments
Post a Comment