Week 10 (3/12-3/18)
Homework 1 (Markov text generator) Which unit test was/is a challenge to pass, which was easy, what was the thing you were the most proud of completing?
When working through Markov method, the most challenging part to work with for me was the addWord method because I had the statement as if (words.containsKey(prevWord)) and the test kept failing, then I realized that the prompt was asking for the opposite if (!words.containsKey(prevWord)) then the test passed. I also had a hard time digesting getSentence until I used StringBuilder. The fields were very straightforward because of the UML in the prompt. What I am most proud of completing is passing all tests; I thought I would spend a while debugging, but it was quicker.
Write a paragraph or two about what you worked on during week 1
I worked on the CodingBat in week 1. It took me longer than I expected because I worked on more questions than I anticipated without realizing it. I had a hard time breaking down some of them. Check-in 1 for Project 1 was not too bad. When I was making my first commit, I realized I didn't create a branch in the beginning until later, so the entire time, I was working on the main branch. Luckily, after looking it up, I found a way to add a branch after writing code from the terminal.
I've found it more efficient to create commits in the terminal and create a branch other than the main in the beginning. The quizzes are pretty straight forward and if I am following the lectures I am able to complete it before the estimated time. I also learned how to create Junit tests and UML by right-clicking in the class folder and showing a diagram. I also learned this only works with the Ultimate edition and not the Community edition because there is a plugin I found in Intellij called plantUML that helps you create UMLs in case you only have the Community edition. So far, so good!
No comments:
Post a Comment