Summary
In this entertaining episode, Jason reviews his own C++ code from 1997-1998 university projects, critiquing it from a modern C++ perspective. He identifies numerous issues including unsafe memory management with raw pointers, manual linked list implementation, excessive heap allocations, memory leaks, and non-standard practices. Jason discusses how his coding style has evolved over 25 years and highlights improvements he would make today, such as using proper return types (bool instead of int), standard containers instead of custom implementations, and avoiding dangerous void pointer casts. The episode provides an insightful look at how both C++ best practices and Jason's understanding of them have evolved significantly since the late 1990s.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[stack]40% match