r/ProgrammerHumor • • 13d ago

Meme sudoAptInstallOpsec

Post image
71 Upvotes

12 comments sorted by

View all comments

Show parent comment

2

u/Trotan_ 13d ago

Box is just a singly owned heap allocation, is this is your first time programming with memory allocation?

1

u/defeatedsnowman 11d ago

No, but everything I've written since graduating college has been memory managed. So it's probably been 8 years or more since I've written C++/C. And I was learning Rust via the Rustlings tutorials which introduces Box in a kind of weird way.

3

u/Wonderful-Habit-139 11d ago

I wouldn’t recommend rustlings no matter how much people hype them.

Just read the official Rust programming language book.

2

u/Trotan_ 9d ago

seconding this, it's a very wonderfully put together book with diagrams, and it keeps the sections as concise as possible with full information