Thursday, March 21, 2024

CST338 - Week 4

 

CST338 – Software Design Week4

Wk04: Learning Journal Markov

For the week 04 assignment, Markov text generation, I work with Krishna to review the proposed solutions. The Markov assignment focused on Java generics to create sets of a key and their corresponding unique elements. A string is converted to a set for the first following words, and duplicate elements are not allowed. When I started to work on this assignment, I underestimated its conceptual understanding and started to code immediately. Fortunately, I quickly realized the need for a different approach to solve the puzzle. One strategy I used was sketching a flowchart for the methods presented. In the past, I used Raptor to visualize the logic of a program and work from an initial pseudocode to develop the solution. Although I could not entirely create a functional workflow, I could at least produce a framework with a layout of all methods. This helped me translate the sequence into Java code. Further, some unit tests were not passed, but with minor modifications, all of the UTs passed, and the program worked. 

Most of the code lines followed the Google Java Style with the exception of the vertical whitespace. Single lines are missing between block comments, methods, and sections.   Also, the format of Javadoc blocks is inconsistent where the format of the block is missing * and lines are misaligned.

I thoroughly reviewed the Google Java Style Guide and detected the style guidelines violation in my code. Moreover, I downloaded the google/styleguide repository from GitHub and configured IntelliJ IDE to automatically apply the available rules for Google Java style to future projects.

 


No comments:

Post a Comment

CST462S - Final Week

Service Learning Journal Reflections This marks the final week of our Service Learning experience. Our team successfully completed the final...