this post was submitted on 26 Feb 2024
313 points (97.6% liked)

Programmer Humor

32710 readers
473 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
all 16 comments
sorted by: hot top controversial new old
[–] [email protected] 29 points 11 months ago (2 children)

Horrible code. First, it doesn't compile because there's no ; at the end of the class definition.

And then more importantly you have a private destructor which means this CriminalScum's destructor will never be called, so you can't charge it with distruction either. Or are you telling me this CriminalScum has friends?

[–] aggelalex 15 points 11 months ago* (last edited 11 months ago) (1 children)

There's always an accomplice in crime.

Also, tall order to expect me to run and test a code written only for a shitpost.

[–] [email protected] 7 points 11 months ago

You're charging the class for a thought crime!!

[–] [email protected] 6 points 11 months ago (1 children)

Also, if I'm not mistaken the uninitialized prop is not guaranteed to be nullptr here, so this private destructor could be trying to free from some random pointer.

[–] [email protected] 16 points 11 months ago (1 children)
[–] [email protected] 1 points 11 months ago
[–] [email protected] 15 points 11 months ago

CriminalScrum

[–] desmosthenes 15 points 11 months ago (1 children)

it’s not monospaced; my eyes

[–] aggelalex 9 points 11 months ago

Peak shittiness requires sacrifice

[–] ooterness 8 points 11 months ago

STOP! You have violated the law. Pay the court a fine or serve your sentence. Your stolen goods are now forfeit.

[–] [email protected] 8 points 11 months ago

Right to remain silent isn't granted to criminal scum, they have to either pay the court a fine or serve their sentence, and their stolen goods are now forfeit.

[–] [email protected] 7 points 11 months ago

I see there an access violation...