Week 3 CST 338 Learning Journal
What improvements would you make to your code/what was suggested?
It was suggested to me to follow the TODO tools in IntelliJ that way I don't get lost in what I need to do next in a large body of code. My Hangman constructor was not done because of this, I didn't catch it but my code still ran so i'm not sure how that happened.
Which unit tests were the hardest to pass?
checkChooseWord() and hintTest() were the hardest for me to pass. checkChooseWord() was the first one I started working on so it felt like the most challenging to get started. HintTest() kept bugging out because I couldn't figure out that I needed the floorDiv function in my method.
How do the existing tests function and could they be improved?
I think they were perfectly fine. I didn't see any necessary improvements.
Do the existing unit tests cover the full range of the sub classes?
Yes, I think they covered everything. i went through each test one by one to see what methods they were calling and built my methods in that order to get each test to pass one at a time.
How would you change the unit tests?
I wouldn't change them. They are perfectly functional how they are in my opinion.
What did you struggle with?
I struggled with starting the assignment. I was trying to build each method in order that it was saying on the prompt and then trying to run the test for that specific method, and it would fail every time. It felt very discouraging being at the beginning of the assignment, like I couldn't get my foot through the door. But I figured it out and everything else just followed.
What did one of your teammates struggle with?
Both of my teammates also struggled with where to start in the assignment. Once we got the hang of it it kind of flowed. They also said they both also struggled on the getHint() method with the floorDiv function. Kind of crazy we all struggled with the same thing.
Was any part of the code a struggle for YOU?
Yes, like I said before, figuring out the getHint() method and how to update the numberOfHints() was a struggle for me. In the prompt it said to use the floor function with a double and said nothing about floorDiv, so I was very confused. Then I saw it in the unit test and used it and it worked, but I was not sure if I did it correctly or not even though my code was running.
Was any part of writing the code easy for YOU?
Following the prompt and translating from english to java wasn't very hard, it was just getting started, getting everything to work together and fixing little annoying bugs that was hard.
What was your biggest HW1 victory?
My biggest victory was getting my first test to finally run and then also finishing the assignment.
Comments
Post a Comment