25 points

Oh and .clone()

permalink
report
reply
4 points

And .copy()

permalink
report
parent
reply
4 points

.copy()?

permalink
report
parent
reply
1 point
*

Are you copying a Result or Option?

permalink
report
parent
reply
23 points
*

I thought it was randomly adding Send and Sync traits to function signatures until rustc is happy.

permalink
report
reply
2 points

That too

permalink
report
parent
reply
4 points

Randomly wrapping things in Arc::new()

permalink
report
parent
reply
21 points

This was me in courses that used C. Keep adding and removing * and & until the IDE was happy and it usually worked.

permalink
report
reply
8 points

Ah the good old times with C, when things were much more simple (but unsafe…)

permalink
report
parent
reply
3 points

(void*) flashbacks intensify.

permalink
report
parent
reply
3 points

The “best” way to program dynamically typed…

permalink
report
parent
reply
18 points

I’m gonna have to borrow this book

permalink
report
reply
6 points

Me too. I also want to make some changes to it at the same time.

permalink
report
parent
reply
4 points

Better apply for a mutable library card now before someone else does

permalink
report
parent
reply
16 points

Hahaha yes tfw Rust forces you to put your shit in a Rc<Cell<Option<>>>

permalink
report
reply
6 points

New your program deadlocks instead of crashing, peak safety.

permalink
report
parent
reply
9 points

EVERYBODY STOP. Nobody make a move or the memory dies. We have a Mexican Memory Standoff.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

Community stats

  • 6.6K

    Monthly active users

  • 988

    Posts

  • 38K

    Comments