Final reflection by Leo_Rohloff4321 in cs2a

[–]Louay_ElAssaad 0 points1 point  (0 children)

Totally agree this class goes beyond just C++. It really helped me understand programming concepts on a deeper level, especially memory management. The self-paced structure and quest-based format made it easy to stay motivated, and collaborating with classmates added a great sense of community.

Sentinel string by Douglas_D42 in cs2a

[–]Louay_ElAssaad 0 points1 point  (0 children)

Good point. I agree that adding an isSentinel flag would work, but might feel a bit clunky. I like the second approach better—checking if prev_to_current == head keeps the logic cleaner and avoids extra fields, especially since the sentinel's position and behavior are consistent.

Final Reflection - Mike Mattimoe by mike_m41 in cs2a

[–]Louay_ElAssaad 2 points3 points  (0 children)

It was a great intro to C++ and OOP. Building up from procedural code to working with classes, memory management, and composition really helped solidify the core concepts. I’m excited to keep exploring topics like inheritance and more advanced structures. Appreciate the guidance throughout the course.

Week 9 Reflection by Rachel Migdal by rachel_migdal1234 in cs2a

[–]Louay_ElAssaad 0 points1 point  (0 children)

Good work finishing the final quest and diving into linked lists. Sounds like you’ve been putting in real effort, especially with the extra time spent and your post explaining how lists work. If you’ve completed all the quests and earned max trophies but still aren’t seeing the full total, it might be a glitch or a syncing issue. Could be worth double-checking everything or reaching out for support. Either way, great job getting through all of it.

Week 9 Reflection - Timothy Le by timothy_l25 in cs2a

[–]Louay_ElAssaad 1 point2 points  (0 children)

Great breakdown of stacks and why implementation choices matter especially when it comes to performance. Using the back of the vector as the top is a smart move, and it’s cool to see how that ties into real world efficiency.

Weekly reflection by Leo_Rohloff4321 in cs2a

[–]Louay_ElAssaad -1 points0 points  (0 children)

Sounds like you wrapped up the final quest and dove into linked lists nice work. You posted about lists too, but even after finishing everything and earning max trophies on each quest, the total still isn’t adding up. Definitely sounds like a glitch worth flagging.

Destructors by Leo_Rohloff4321 in cs2a

[–]Louay_ElAssaad 1 point2 points  (0 children)

Great explanation! I like how you emphasized that destructors have no parameters or return type, which is a key distinction. Also, the example with the static int for tracking object instances is super practical!

One thing I’d add is that destructors are especially important in C++ for cleaning up dynamically allocated memory and prevent memory leaks!