this post was submitted on 13 Aug 2025
4 points (83.3% liked)

Programmer Humor

25730 readers
1229 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

founded 2 years ago
MODERATORS
 
top 5 comments
sorted by: hot top controversial new old
[–] Jestzer@lemmy.world 2 points 2 days ago* (last edited 2 days ago) (1 children)

I just realized that the 2 characters in the back of the truck originally aren’t there, and then they randomly appear. It’s in the original episode too.

[–] CsJ5NPkuvE@lemmy.zip 1 points 2 days ago

I'm trying to come up with a good pun how ownership and safety could have prevented this but..

use std::sync::OnceLock;

#[derive(Debug)] struct BrainCell { in_use: bool, }

static BRAIN_CELL: OnceLock = OnceLock::new();

fn get_brain_cell() -> &'static BrainCell { BRAIN_CELL.get_or_init(|| { println!("Allocating brain power... this might take a while."); BrainCell { in_use: true } }) }

[–] frezik@lemmy.blahaj.zone 1 points 2 days ago

"You just don't understand strong typing" when the problem at hand is about lifetimes.

I'm glad the Rust compiler is super helpful, because the community isn't.

[–] Botzo@lemmy.world 2 points 3 days ago

Might even call it a cargo cult.

[–] verstra@programming.dev 1 points 3 days ago

Report reason: I'm in this picture and I don't like it.

I do find it funny though :D