WK03
Summarize the feedback you are given about your code.
During the project 1, I have learned several things. I know that even if it seems fun and simple, it doesn’t necessarily mean it will be. Coding takes time to figure out each method so each test can pass. I had a few failed tests and if I had taken more time, I would’ve figured it out. I still have a long way to learn and here are a few suggestions I got from my classmates. Flavio pointed out that I was missing an object to the calcualteDefensePoints() method. Flavio, along with Monica, also mentioned that I needed to add more comments on what the code is doing. I agree that my code did not have enough Javadoc comments to ensure the readers, what each part was.
Identify any trends you noticed when evaluating the code of others.
We all struggled with figuring out our failed test, specifically; setAttackPointsTest, setGetHealthPointTest, and defTest. We all talked about our struggles in these and when looking at other’s codes, we all wrote our code differently so I couldn’t pinpoint what was wrong with each test. These took a while to figure out and at the end of it, we all turned it in with 3 or fewer failed tests.
Was any part of the code a struggle for YOU?
I kept having the same issue of calling a method and making sure what was being called in that method. At the start of it, I had more than three failed tests and the ones I was able to pass were due to not calling the right method and/or object. I did discuss this with Pol to try to figure out what I was doing but in the end, I still had one failed test that I couldn’t figure out.
Was any part of writing the code easy for YOU?
After understanding the UML diagram, it was fun to type the proper fields, getters, setters, and methods with stubs. Then it was easy to type down certain methods that were easier to figure out such as setPhrase(Monster monster, calculateDefensePoints(Monster monster), and toString().
What is your biggest victory?
Although I am shy of getting full points for passing all the tests, I still feel accomplished by only having one failed test. Once I figure that out, I’ll definitely feel better about the project and further ones.
Comments
Post a Comment