this post was submitted on 31 Aug 2025
314 points (96.4% liked)
Programmer Humor
26095 readers
1424 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It'll be fun when you get to funny errors because you used
free
d memory.When I was learning about linked lists and decided to use them in a project, I "removed" items by making the previous item's
next
point to this item'snext
, except I misplaced a call tofree
before using the fields, and it somehow still worked most of the time on debug builds, but on optimized builds it would cause a segmentation fault 100% of the time.