What did you do this past week?
This week I finished part three of the IDB project with my team for my SWE class. I also finished the Darwin project for my OOP class.
What's in your way?
I am actually pretty caught up work wise, but I do have a test next week that I need to prepare for.
What will you do next week?
Next week, I will continue working on the IDB project for SWE and begin the next project in OOP. I also plan to prepare for my tests.
What did you think of Paper #11. More on getters and setters?
The article discusses an important issue in object-oriented programming - how to build user interfaces for objects without violating the principle that objects should not expose their internal implementation details through getter and setter methods. So, the solution proposed is to use the Builder design pattern to separate UI construction from the core business objects. Builder classes are responsible for building different representations and views of an object's state without depending on its internal implementation. This allows objects to drive the UI building process without knowing the details of what is being constructed. It isolates objects from changes to their various user interface representations.
What did you think of std::vector's move semantics and std::vector's use of allocators?
Movesemantics in C++ enable the efficient transfer of resources (such as dynamically allocated memory) from one object to another, without unnecessary copying. When youmoveastd::vector, its contents are "transferred" to the destination vector, and the source vector is left in a valid but unspecified state. This operation is generally much faster than copying each element individually.std::vectoruses allocators to manage memory. Allocators are responsible for allocating and deallocating memory for the elements stored in the vector. They provide a level of abstraction, allowing customization of memory management policies. By default,std::vectoruses a specific allocator (std::allocator) to allocate memory. However, you can specify custom allocators to control memory allocation behavior.
What made you happy this week?
This week, my friends and I met together to eat some fried chicken at a restaurant, which was delicious and a very enjoyable experience.
What’s your pick-of-the-week or tip-of-the-week?
This week, I learned about draw.io while making a UML diagram for my OOP class. Draw.io is a free online diagramming application that allows users to create various types of diagrams such as flowcharts, network diagrams, organizational charts, UML diagrams, and more. The web app is very versatile and you can easily download the diagrams you make, all for free!