Wk05 Learning Journal Markov

 Sami Hobson

Drew Clinkenbeard

Wk05 Learning Journal


  1. Who did you work with?

I worked with Faith Thomas and Luis Valadez!


  1. What was your strategy for solving the Markov assignment?

My strategy: I started by reviewing the UML diagram and the assignment prompt to get a clear idea of how the class was supposed to be structured. I didn’t jump straight into coding, instead, I made a rough plan of the main methods and their purpose. I began by setting up the class structure and adding the fields and constructors so everything was laid out. Then, I focused on one section at a time, starting with the simpler methods that didn’t depend on others. As I added methods, I tested them with the provided files to make sure everything was working before moving on. This step-by-step process helped keep things organized and made it easier to debug when something didn’t work as expected.


  1. What was their strategy for solving the assignment?

Luis’s strategy: I watched the videos provided first then read through the prompt. I split what methods would fall under the dictionary branch and which would be under the sentence branch. I referred to the UML diagram to build the members and a shell of methods with //TODOs to keep me organized. As I worked through each explanation of the members and methods of the Markov class, I ran the isolated tests for each.I also created the Javadoc comments as I worked on each method to help reinforce how the logic should flow. Once I  finished the dictionary and sentence branch I was able to run the MarkovTests which led me to modify the the addWord method. The MarkovTest.java seemed to be missing an import for asserting false, once that was imported all tests passed and I checked the remaining text files to ensure the Markov chain was working properly. 


Faiths strategy: For this assignment, I started by looking at the UML diagram and used it to guide how I set up my class. I began with the constructor and declared all the required fields so the overall structure was in place. After that, I didn’t follow the exact order of the method list in the project file. Instead, I built the methods based on how they were connected. If one method called another, I made sure to write the called method first. I focused on building the most independent methods first—the ones that didn’t rely on any others—and then moved on to the ones that used them. This approach helped me test things step by step and made it easier to build the more complex parts of the program later on.


  1. How would you change your strategy having worked on the assignment?

After working on the assignment, I would slightly adjust my strategy by incorporating more isolated testing earlier in the process. While my step-by-step approach helped keep things organized, I realized that running isolated tests after each method (like Luis did) would have made it easier to catch issues early. I’d also consider using //TODO comments to better track unfinished parts of the code and help guide my workflow more clearly.

 

  1. According to your classmates how well does your code follow the Google Java Style Guide?

According to my group's feedback, my code followed the Google Java Style Guide really well overall. The only issue noted was some spacing in the formatting, leaving an additional space where it wasn’t needed. They also reminded me that using ctrl+alt+L helps auto-format the code. Otherwise, I received positive feedback and was told I did a great job!

 


Comments

Popular posts from this blog

Week 4 - Goals!

Week 2 - Second week of class!

Week 4 - Interview with Industry Expert