this post was submitted on 27 Feb 2025
101 points (98.1% liked)

Programmer Humor

34629 readers
301 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] cmgvd3lw@discuss.tchncs.de 4 points 4 weeks ago (3 children)

On a serious note, how hard is rust if I know python?

[โ€“] boobies@lemmy.ml 5 points 4 weeks ago* (last edited 4 weeks ago)

Depends on how fast you memorize and understand its 5 rules for ownership (3) and borrowing (2), and how much effort you put into memorizing its types.

The biggest hurdle I had with it is not reflexively understanding how the intermediate types it has work and how to bounce between them. For example: String -> &str -> String. Collection -> filtered/split slice of it -> back to Collection.. It's often not just 1 type either, it's multiple types which you get by functions declared in traits.. Just typing this is giving me a headache.

Combine unintuitive types/not knowing them all by heart with not fully understanding borrow/ownership rules, and you're going to have a bad time.

Long story short: it's a fantastic language, and I hope I never touch it ever again. I don't really need types or memory safety for what I do, but I appreciate it for what it is.

load more comments (2 replies)