CST 338 Week 3
Who did you work with?
I worked with Saria Kabbour, Gary Kuepper, and Rahim Siddi.
What improvements would you make to your code/what was suggested?
I would like to try and make my code more efficient. I went for a brute force approach and used nested for loops and I agree that it would be a nice challenge to try to avoid that when I have more time.
Which unit tests were the hardest to pass?
I struggle the most with the display method. Getting the data wasn't that bad, but I got really hung up on the formatting. It took me an unreasonably long time to get that right. I tried to just go quick and manually append spaces before I just used .format and that was way easier and what I should have done from the start.
How would you change the unit tests?
Well, I was told that magic numbers are a no-no, but then I was also told as you say and not as you do.
What did you struggle with?
I struggled trying to implement a hashmap. I initially tried avoiding nested loops and using a hashmap in the program, but I ran into a lot of issues and eventually just went with a brute force approach with the thought that a working inefficient program is better than the efficient one that doesn't run.
What did one of your teammates struggle with?
One of my teammates struggled with the debug method. They thought they were running into a error based on the output of the test cases and so continued to redo their work, but ended up discovering that what they were seeing was the expected output.
What are you most proud of on your submission for HW1?
I am happy that it runs and is easy to follow for others, I just wish I had been able to build it using single loops.
Comments
Post a Comment