Verified Submission
ProgrammingC++
#RI-6accf2f1·4 months ago·
1
Author avatar
Lookback: 1 year

“Learning C++”

Added fourth node to linked list, causing seg fault due to incorrect tail pointer assignment

What I wish I knew
"Understand C++ memory management and pointer handling"
If I could tell you one thing
"Use smart pointers or containers to avoid manual memory management in C++"
0
6/10
Clear regret.
The downsides outweighed what was gained.
SettledMixedSevere

Advice for Someone Facing This

Short, upvotable wisdom. The most helpful rises to the top.

No advice yet. Be the first to share wisdom.

Discussion

React, question, or discuss this decision.

Sign into join the discussion
Programming Category
5
Programming decisions logged. Avg regret 3.6/10 across the category.
Same Outcome Band
40%
of Programming decisions land in the regret band the same as this one.