What did you do this past week?
This week I worked on the IDB project with my team for my SWE class. I also continued working on the Allocator project for my OOP class.
What's in your way?
I have been putting off work recently and as a result I have fallen a bit behind. I also have some exams coming up, so I need to study for those.
What will you do next week?
Since I have fallen a bit behind, this week I will work towards finishing my work. I will continue working on the IDB project for SWE, which includes implementing the backend and continuing to work on project 3 for OOP. I also plan to study for my SDS exam, which is next week.
What did you think of Paper #7. The Liskov Substitution Principle?
The Liskov Substitution Principle (LSP) ensures that objects in a class hierarchy are interchangeable, promoting code flexibility and maintainability. Imagine building blocks: you should be able to swap a subclass block for its superclass counterpart without affecting the overall structure. LSP helps achieve this by defining rules for how subclasses inherit and potentially modify behavior from their superclasses. This leads to more predictable and robust object-oriented code.
What did you think of Digits, operator overloading, and std::array?
Operator overloading is a powerful feature in C++ that allows you to define custom behavior for existing operators when used with your own classes and types. This enables you to create intuitive and expressive code. For example, you can overload the + operator to define addition for custom objects, or the << operator to format and print them to the console.
In the Digits excercise, we used operator overloading with the iterator to change the behavior depending on the operator.
std::array is a template class provided by the C++ Standard Library that represents a fixed-size array of elements of a specific type. Unlike traditional C-style arrays, std::array offers several advantages:
- Bounds checking: It prevents accessing elements outside the array's bounds, improving memory safety.
- Type safety: It enforces a specific element type at compile time
std::array provides a safer and more convenient alternative to raw arrays in many C++ programming scenarios.
What made you happy this week?
This week, I went out with my friends a few times, and as a result made some good college memories.
What’s your pick-of-the-week or tip-of-the-week?
Recently, I have been using Obsidian. The app allows me to use markdown to take notes for both my personal life and classes here at UT. As a result, I have streamlined my life.