Posts

Showing posts from April, 2025

Week 7

  Homework One assignment was the Markov Prompt. It read a text file and generated a collection of words and those that followed it to generate a new text. Sometimes the new sentences made sense and sometimes, they were just strange. It is funny to think about how I thought it was such a difficult assignment, but looking back, it was the only one I managed to get all the tests to pass on. I think I had the best approach with it so far, reading the prompt for understanding, then going through it once more to set up skeleton methods, prior to writing the code. How I would approach it differently is to sit down and think about my approach a little more. The prompt seemed so thorough and like it covered everything, that I just went for it. However, when it was time, I got stuck on areas like addWord and getSentence for DAYS because algorithms matter. I would also better organize myself with each method by creating a chart, because as I worked on some of them, I realized it made calls t...

Week 5

Who did you work with? Flavio and Raquel. What was your strategy for solving the Markov assignment? I started out by reading through the prompt first to get an understanding. I then went through the prompt again, starting the skeleton of each field and method as they arise with commented pseudocode of what was being directed to do. Afterwards, I began implementing each method. Once I felt I got it mostly right, I began running the tests and making adjustments as needed. Did you start writing code right away? Did you plan it out on paper?  Not necessarily, because I started reading the prompt first. However, I did not put much thought into how I wanted to achieve the desired result before writing the code, and instead tried to follow the logic in the prompt given as closely as possible first.  I would have preferred I did think about the execution a little more first, to make the workload more efficient. Anything that involved manipulation of the text and accessing specific ind...