CS371p Fall 2020 #7

Jiaming Ji
2 min readOct 12, 2020

What did you do this past week?

This past week, me and my partner started on the Allocator project. We implemented the REPL first like how we did in Collatz and Voting. We then implemented the iterator and the allocate method, it took longer than we expected because we were unfamiliar with the concept and how pointer work in CPP.

What’s in your way?

I have a lot of deadlines coming up, 2 exams and this project, an interview going on all at the same time. This project might take longer than expected, so I need to manage my time well and make sure not to waste any time on unnecessary things.

What will you do next week?

I will take 2 exams, finish Allocator project and prepare for interviews next week. It will be a very busy week.

If you read it, what did you think of The Open-Closed Principle?

I think Open-Closed principle is a concept every engineer needs to have in mind at all times when designing classes. The example in the article is Server and AbstractServer: if we use the AbstractServer class, then we don’t need to change our previous code of using Server because AbstractServer will be a derivative of Server, which is still a Server with additional functionalities. This is also called polymorphism. This allows us to add extension features to the code without changing any of our service code.

What was your experience of iterator concepts, std::array, and std::vector? (this question will vary, week to week)

In SWE last semester, we covered A LOT about iterators in python, and I think I have a pretty good understanding about iterators; not too much knowledge about std::array and std::vector, I think they are similar to java’s array and vectors, i will have to read on the documentations.

What made you happy this week?

I took graduation photos with a friend this weekend, can’t believe this will be my last semester and last few months of school.

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

For the exam next week, go over all the hackerrank exercises we did in class and try to implement the functions that we have discussed in class, like equal(), copy().. Do it yourself instead of just reading class notes will really help you understand all the concepts better!

--

--

Jiaming Ji
0 Followers

BS in Computer Science at the University of Texas at Austin