CS371p: Week 7

Ethan Lao
Trees Grow Down
Published in
2 min readMar 13, 2021

What did you do this past week?
My partner and I started on the new allocator project, which definitely took some time to understand. We had some trouble trying to implement the iterator at first, but Friday’s lecture really helped and allowed us to find a working solution.

What’s in your way?
I have been a little behind in some of my other classes because of so many projects happening at once, but this next week will hopefully allow me to catch up.

What will you do next week?
This next week, I will continue to work on implementing our allocator. We have some issues with deallocation, so we’ll have to spend some time debugging. However, I will definitely try to spend some time relaxing over the break!

If you read it, what did you think of the Liskov Substitution Principle?
I thought the paper brought some very interesting points and examples. My first reaction to the situation was that the programmer should resolve special cases by blindly using a function that is overridden in derived classes. However, the square-rectangle example proved that trying to do such a thing for every scenario can still cause problems in the future.

What was your experience of heap arrays, allocators, and digits iterator?
Iteration makes a lot more sense that I have tried implementing the digits iterator. Their behavior is much clearer, and I definitely see how useful they are for iterating over an object multiple times at once. Heap arrays have some really nice and convenient semantics, and it’s great that they are just as fast as normal arrays. The allocator class took some time to understand, but the project has been going smoothly so far.

What made you happy this week?
I’m really looking forward to spring break next week!

What’s your pick-of-the-week or tip-of-the-week?
My tip-of-the-week is to use draw.io. It’s very useful for quickly building a UML diagram, and allows you to work collaboratively (like a google doc). It has lots of different features/shapes, so use it whenever you want to quickly build any diagram.

--

--

Ethan Lao
Trees Grow Down
0 Followers
Editor for

Computer Science Student at the University of Texas at Austin