CS371p Spring 2022: Lilia Li Blog #11

Lilia Li
2 min readApr 11, 2022
  1. What did you do this past week?

This past week I worked with my partner on the Darwin project. We’ve implemented each of the classes as well as the run harness and are currently testing it in the Hackerrank.

2. What’s in your way?

My partner and I are struggling with a bug causing our Creature objects to get overridden every time we create them. We suspect it has something to do with declaring and initializing structs that we are doing wrong. Although I think so far we have been making good progress and will hopefully get this bug fixed after going to a help session.

3. What will you do next week?

Next week, we will attend a Help Session to help figure out this bug and finish up the rest of the Darwin project.

4. What did you think of Paper 11. More getters and setters?

I thought it was interesting and went more into detail about how to prevent the need to use getters and setters since they leak implementation details that other outside classes do not need to know.

5. What was your experience of std::queue, std::priority_queue, std::set, and friends? (this question will vary, week to week)

I thought it was interesting going into deeper detail as to how these data structures are implemented underneath the hood using vectors, deques, and lists. Also, the friend keyword was something new to me although I had seen it used in previous projects but didn’t really understand what it was for. However, after Downing explained its use it made a lot of sense.

6. What made you happy this week?

I went to the Downtown Austin farmers market this weekend and it was a lot of fun! I also went to a friend's birthday party and had a lot of fun celebrating his 22nd.

7. What’s your pick-of-the-week or tip-of-the-week?

My pick of the week is to attend the TA/professor’s office hours and help sessions. They’re really helpful in either helping you fix a bug or introducing a method to help you fix a bug. They can also help with figuring out how to best implement a certain aspect of the project so that overall the design of the code is better.

--

--