A code review horror story from a legacy C++ codebase where every type and variable is buried under meaningless three-letter acronyms, Hungarian notation prefixes, and a chain of typedefs that obscure what data structures are actually being used. A class named 'List' wraps a type named 'Array' which is actually a std::vector of bare pointers — raising concerns about memory ownership, use-after-free bugs, and leaks. The codebase is further plagued by double-spaced formatting and ping-ponging public/private blocks.

3m read timeFrom thedailywtf.com
Post cover image

Sort: