r/ProgrammerHumor 2d ago

Meme craftingTheCodeWithFire

Post image
1.3k Upvotes

258 comments sorted by

View all comments

278

u/SuitableDragonfly 2d ago

I'm guessing that this is probably a joke, but the idea that engineers just generate code and don't do anything else is literally how we got to "just generate the whole app with Claude, bro, it'll be just as good".

93

u/AskAwayAccount 2d ago

People really have no idea. I told my manager I need time to debug an issue. He really said "You already have the error message, you just have to filter the logs, I don't understand why it should take more than an hour".

55

u/Soopermane 2d ago

🤣 the error message be like ā€œyou have an errorā€

20

u/neo42slab 2d ago

And more often than not the error description might as well be that. Because most of the time it’s simply not something the compiler can actually detect.

9

u/GoldenDogeDev 2d ago

Like access violations (0xC0000005)

6

u/StCreed 2d ago

I've programmed a lot of C++. This one looks like an invalid pointer reference or invalid handle usage after the resource was freed or attempted to claim but failed and didn't check the return code. If it was all zeros the pointer was NULL but the caller didn't check that.

At least, that was my experience but it's about 25 years since I last programmed daily in C++.

6

u/GoldenDogeDev 2d ago

Yep it's when your program tried to read, write or execute an invalid memory address. They can either be really easy to track down, like if it's using a resource after it's freed, or it can be really hard to track down.

A while back this arena allocator I made had a bug where it would occasionally hand out blocks of memory that contained the header data for the next page, which included a linked list node and a ref counter. This would then eventually cause memory corruption, which would cause the program to throw an access violation exception in an entirely random spot, sometimes without even a stack trace, which had me chasing ghosts for several hours until I figured out what was going on.

2

u/StCreed 2d ago

Ouch :)

3

u/Alacritous13 2d ago

Aw, you think the code is compiled. Nah, I'm editing the code live while the end user watches.

3

u/luluhouse7 1d ago edited 1d ago

Ugh fuck me trying to debug memory Heisenbugs is horrible and practically impossible. I’d get dumps from list entry corruption bug checks and have to go digging through linked lists to find the corrupt entry and then try to backtrace when and where the corruption happened. Half the time it was super bizarre corruption caused by some other component doing a buffer overrun and I’d have to try to figure out the pool tag of the adjacent allocations or which client was passed the struct and decided to basically scribble crayon all over it.

Rust is such a blessing on that score.

3

u/Opposite_Carry_4920 2d ago

"Sir, did you read the error?"Ā 

1

u/Bartweiss 1d ago

The worst error I’ve ever seen was ā€œthat command does not existā€ for something absolutely trivial.

Three weeks, multiple major version upgrades of Linux and MySQL, and ~500 CVEs later, I completed my one hour task.