Work with your fellow classmates and go through your solutions to the Markov assignment.
Who did you work with?
I worked with Valentina Waltman and Brandon Evans.
What was your strategy for solving the Markov assignment?
I started with reading the direction on the assignment document. I went line by line and started coding right away. I will admit, however, that this method did prevent me from seeing the full picture and how all the codes were initially connected/related to each other.
What was THEIR strategy for solving the Markov assignment
Similarly to me, Brandon basically coded right away as well (or at least that's how me made it sound like). I know that Valentina is more methodical and is the type to watch every relevant video before starting the assignment.
If by strategy, you mean the actual code methodology we used, the assignment was very straight forward in what was required so therefore we all used pretty much the same general tactic. However, the only thing different, was my purposeful decision to not use the PUNCTUATION_MARKS variable. I decided to use a for loop and typed "if (word.charAt(i) == '.' || word.charAt(i) == '!' || word.charAt(i) == '?' || word.charAt(i) == '$'){ return true;} to look for indications of punctuation. I chose to go this route simply because I wanted to see if the same type of method that I used in the past on a CodingBat question worked on this scope of the problem. It was more out of curiosity of "would this work?"
How would you change your strategy having worked on the assignment?
I probably would have had created a flowchart map of how all of the methods are connected to each other (who's calling who). This way I would have gotten a bigger picture of what's going on when the Markov file is called.
According to your classmate(s): how well does your code follow the Google Java Style GuideLinks to an external site.?
Brandon believed it followed the style guide pretty well, and Valentina thought my comments were extremely detailed.
Did you know you can automate applying some of the style guide rulesLinks to an external site?
I am now aware of this, yes.
No comments:
Post a Comment