Week 5: Markov
I worked with Cody Hopkins, Mariah Stinson, and Justin Martlock in reviewing our Markov solutions
We all approached the assignment the same way. Mariah had mentioned that she normally likes to plan everything out before she starts to write code but that the prompt basically did that for us. We all agreed that the prompt well prepared us for what to do for each method.
I wish I would have thought of something better to add to the getSentence() method to pass the addBadLine unit test. I knew that I wanted to read a sentence and omit that extraneous white space but everything I came up with didn't work. I don't know if maybe I was thinking too hard because I ended up thinking "Okay, there is a \n in this test, maybe it is only reading the first line which has nothing in it" so I added and if statement that said if the sentence was empty, return false. It helped me pass the test, for sure, I just think a better solution is out there.
All of our codes followed the Java Style Guide well.
Comments
Post a Comment