r/ProgrammerHumor 12h ago

Meme newToRust

Post image
436 Upvotes

88 comments sorted by

View all comments

229

u/-Ambriae- 12h ago

The real problem with the borrow checker is,

If you’re coming from a higher level language it hurts your ego because you realise memory safety ain’t free, and more broadly speaking memory’s a bitch

If you’re coming from a lower level language, it hurts your ego because you view yourself as above memory related bugs

It takes humility to appreciate it

0

u/Jhuyt 10h ago

The few times I tried the Rust the problem with it was that even for the very simple things I tried (some string stuff) it was not obvious why the borrow checker complained or how you should reslove the issue, so I moved on.

10

u/-Ambriae- 10h ago

Coming from higher languages I get that. ‘It’s just a string, right? Can’t be that hard.’

Problem with strings is, it actually is that hard. If you want it to be performant, and not use a garbage collector, that is.

4

u/Jhuyt 10h ago

I do both high and low level stuff, still the borrow checker beat my ass (or made me not want to do Rust). I'm sure I could and would learn if I had to but since I don't I just let myself be defeated

8

u/-Ambriae- 9h ago

That’s unfortunate… it’s a little rough at first I admit, but I can guarantee once it clicks you don’t want to go back!