CS371p Spring 2022: Lilia Li Blog #6

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

This past week, I worked on the Voting project by setting up the repo and issues and getting started on writing the code for taking in the standard input as well as the simplest solution.

2. What’s in your way?

I had a bit of trouble understanding how standard input works in C++ since it’s a bit different from other languages. But I used a lot of online forums that helped to clarify the nuances of cin and getline() so I was able to get this accomplished.

3. What will you do next week?

I feel a little bit behind on the Voting project, so I will need to do a lot of work to catch up on getting the most optimized code written, writing the unit and acceptance tests, and the rest of the workflow requirements.

4. What did you think of Paper #6: Open-Closed Principle?

I thought it was a great refresher on a principle that I try my best to follow, but sometimes don’t because I never had the heuristics and conventions laid out to me as it does in the article. After reading it, I think I have a better understanding of keeping my code closed to modification and open to extension as well as concepts of polymorphism and encapsulation.

5. What was your experience of arguments, returns, and consts? (this question will vary, week to week)

I had never encountered some of the concepts that we were taught this past week pertaining to arguments, returns, and consts so it was interesting to learn about! I did not know there were so many different flavors of arguments, returns, and consts, and am interested to see if some of these features are present in other languages besides C++ since I can now see how these are very useful in certain situations.

6. What made you happy this week?

I went to a mixer event with an org that I’m a part of and was able to meet a lot of cool new people as well as hang out with some of my friends as well!

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

My tip of the week is if you want to find and select the next occurrence of a word/variable name/etc in VS Code you can do ‘cmnd/ctrl + D’. You can continuously keep hitting this shortcut to continue finding and selecting the next occurrence in case you need to modify all the occurrences of the word.

--

--