CS371g Summer 2021: Kevin Wu Week #5

Kevin Wu
2 min readJul 5, 2021

What did you do this past week?

I spent this week playing basketball during the nights and working on Integer or attending class during the days. I’ve also been cooking my breakfast and lunch whilst at home, as I have more time than during a typical fall or spring semester.

What’s in your way?

Hackerrank Test #4 for Integer is squarely in my way. It seems no matter how much I optimize my code I am still timing out, which is really unfortunate. Hopefully in the coming days I’ll figure out what optimization I am missing and the test case will pass.

What will you do next week?

In the next two days, I am aiming to finish Integer, as I have a final for my other summer class next Friday, so I don’t want this class’ work to get in the way of studying for it.

If you read it, what did you think of the Paper #5: Continuous Integration?

This week’s paper was pretty interesting and I really enjoyed reading it. We’ve been using GitLab CI/CD for projects for about a month know, and I’d say I am comfortable with the workflow as it pertains to the scope of our weekly projects. However, this paper shows how Continuous Integration makes the process of making, testing, and debugging builds very seamless, a benefit that becomes more important the larger the project and the more developers there are.

What was your experience of lambdas, capture by value, and capture by reference?

I learned about lambda functions towards the end of CS314 last fall, but it wasn’t necessarily a fully fledged topic, so I wouldn’t say I was familiar with them going into this week. Also, going into this week I had never really dealt with capture by value or reference. However, the lectures this week really helped me understand why and how these concepts are utilized in C++.

What made you happy this week?

Something that made me happy this week was seeing the Phoenix Suns advance to the NBA finals. Just as a basketball fan, seeing Chris Paul finally get a break from all the bad luck in his career and make a very well-deserved finals appearance made me pretty happy.

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

My pick-of-the-week is the concept of profiling. For Integer, I used C++’s chrono in order to see exactly how long sections of my code were actually taking to run, and this allowed me to optimize my pow and * operations quite a bit. The way I used chrono is like Java’s Stopwatch class, where you can start and stop and specified points in your code, and then output the time elapsed/

--

--