Tuesday, November 5, 2024

CST 338 Week 2 - Jotto

Throughout Week 1, I started working on the Jotto Guess game, focusing on implementing its basic structure. Although I haven't completed the entire program yet, working on it along with the lecture videos has been incredibly helpful in understanding each step. One challenge I encountered was handling file input, particularly when deciding on the best file methods to read lines from a text file. I experimented with several approaches to find the most effective one, which slowed my progress but also provided valuable insights into file-handling techniques in Java. This trial-and-error process was frustrating at times, yet it strengthened my understanding of file manipulation and error handling, key skills I’ll use frequently in future projects.

On the unit test side, the challenging part was creating input validation for user input by using a try-catch block. I still haven't fully implemented this yet, but the input validation requires careful attention to handling various edge cases, which has helped me practice with the try-catch block to manage exceptions effectively. Working on this has taught me the importance of thorough validation and error handling, especially in ensuring that a program can handle unexpected inputs smoothly.

Reflecting on Week 1, we covered UML diagrams and learned about JUnit tests, which I found to be incredibly valuable preparation for future projects. Translating UML diagrams into Java code helped me better visualize the structure of my program and map out its components in a logical way. Practicing with JUnit testing has been helpful for debugging and ensuring code quality. Although these concepts were relatively new, I enjoy debugging with JUnit, and help me write cleaner, more reliable code. 

No comments:

Post a Comment

CST 334 - Week 8

I spent most of my time reviewing the materials to get ready for the final exam. The final covers two big topics, concurrency and persistenc...