Posts

Showing posts from July, 2025

Week 13

  Who did you work with? Justin, Claudia, Mariah What was your strategy for solving the Markov assignment? Read the prompt, look at unit tests, follow along with the prompt Did you start writing code right away? Did you plan it out on paper?  Pretty much started coding right away What was THEIR strategy for solving the Markov assignment Ours were pretty similar, read prompt carefully, look at unit tests, start coding How would you change your strategy having worked on the assignment? I don't think there would be much I would change about my strategy According to your classmate(s): how well does your code follow the   Mostly follows the Google Java style guide Did you know  you can automate applying some of the style guide rules I did not

Week 12

  Project 1 With whom did you work? Mariah, Justin, Claudia What was your strategy for solving the assignments? Look at prompt, read unit tests to get a general understanding. Did you start writing code right away? Did you plan it out on paper?  Just started coding by implementing the missing monster classes until the unit tests ran What was THEIR strategy for solving the assignments Reading the prompt, start coding almost right away How would you change your strategy having worked on the assignment? I don't think there would be too much that I would change for this assignment. Maybe look at the expected output more closely so it matches with mine. According to your classmate(s): how well does your code follow the Google Java Style Guide? Follows Style Guide What was the most interesting? Implementing the different monster subclasses What are you the most proud of? Seeing the unit tests pass How did you celebrate completing the assignment?  I think I went to the gym If yo...

Week 11

 Justin review:  Variable names, are they meaningful and clear? Variable names are meaningful and clear Logic that could be more efficient Logic looks sound. Selects a random word for guessed word, which is a neat solution Unused imports or warnings. No unused imports, one one warning present Clear formatting Formatting is good. Just one small nitpick: add spaces before ‘(‘ and after ‘{‘ i.e. if ( debug ){-> if ( debug ) { Are there comments? All class methods have comments Which unit tests pass? All unit tests pass Mariah review: Variable names, are they meaningful and clear? Variable names are meaningful and clear. Just one small nitpick: Scanner sc → Scanner scanner Logic that could be more efficient Logic looks sound. Only improvement I can think of is selecting a random word for the guessed word, as presented by Justin’s code Unused imports or warnings. No unused imports, only one warning present Clear formatting Formatting is good. Just one small nitpick: add space af...

Week 10

Topics in wk1 Knowing how to write unit tests can help you fix issues with your code early on (before stuff gets crazy and you end up rewriting your entire codebase just to fix one bug). For each reasonable method in your classes, you should write a unit test. While you are adding functionality/features to your program, you can run your unit tests to see if whatever you added broke some method in your class, making the process of fixing issues easier. Git is a pretty useful tool for version control. It allows you to create separate branches for features you intend to add to your program and a safe way to revert any devasting changes you make to your code (e.g. your code produces 1500 compile time errors, and you don't why, so you checkout your main branch and destroy your feature branch. Just make sure you are NOT committing to main...) Interfaces serve as a blueprint to your code, they make your code more readable, and they are used all of the time in Android development. During w...