Week 12: CST 338 Module 4

This is the twelfth week of the CSUMB computer science program.

This week I worked with the following teammates:

  • Nasser
  • Noah
What was my strategy in solving the assignments:
  • The way I resolved the assignment was by reading the prompts carefully, while implementing very basic logic to start off each method. Basically, I used if-statements and for loops for a majority of the implementation and only deviated once with a StringBuilder for the toString() method; nevertheless, other than carefully reading the prompts and implementing them for very basic programming, I simply kept testing each method individually until they worked correctly. In the end, once everything tested positive, I went back over the programming logic dealing with the output and corrected everything according to the prompts specified output.
What was my teammates strategy in solving the assignments:
  • Nasser followed the prompts specifications, while implementing according to that logic, which he felt somewhat restricted due to the assignment's instructions. Nevertheless, his strategy was to follow the prompts specified requirements, while doing the programming blindly.
  • Noah followed the prompts specifications, while implementing TODO's that would help him test each method one at a time. In the end, he implemented each method based on testability and whether they needed multiple methods to work.
How would I change my strategy having worked on the assignment:
  • The two things I would personally change would be the branches and the commits within the assignment. Basically, I have a habit of completing every method and only saving it on my local computer instead of committing it, which ended up only showcasing how long it took to complete all the methods within the java file. On the other hand, I would like to have a bit more variety in my branches that are dedicated to individual methods, as opposed to a singular branch that implements everything at once. In the end, for my strategy dealing with programming, I don't have that many issues with it; although, the one thing I would change about my strategy is the implementation of object-oriented programming, thus using HashMaps and StringBuilder more often as opposed to constantly using if-statements or for-loops for almost all the logic within the program.
How well does my code follow the Google Java Style Guide:
  • At the time I gave them code that hadn't been reformatted through the Intellij IDEA reformatting that is hooked up to the Google Java Style, which led to them saying that the code had unnecessary spacing by two spaces. In the end, other than the spacing, they believed that everything else about my code followed the style.
What was the most challenging part:
  • The most challenging part of the entire program was implementing the logic to follow the prompts specified output, as the tests within the tester cannot help in understanding if the code isn't printing according to what is needing to be printed, which led me to replacing some array getters and reimplementing the attackModifier that became the biggest issue within the code. In the end, the attackModifier method became the most challenging aspect of the assignment due to me not understanding why it wasn't applied at first.
What was most interesting part:
  • The most interesting part of the entire program was implementing the toString() method. I know that it isn't revolutionary and Intellij IDEA automated a majority of the logic, while I implemented the necessary string; nevertheless, I found it interesting to simply append everything into a conga line sort of format even though I could've used a for loop to implement the logic better.
What I am most proud of:
  • The thing that I am the proudest of is getting all the tests working, while implementing the prompt output correctly through modifying the attackModifier and a few other areas to properly display the intended outcome.
How did I celebrate completing the assignment:
  • I celebrated by telling my family about it whether it was about the struggles or success, while treating myself to some ice cream and my favorite food (burrito or burger).

Comments

Popular Posts