this post was submitted on 28 Feb 2024
315 points (95.1% liked)

Programmer Humor

18947 readers
890 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] backhdlp@iusearchlinux.fyi 61 points 5 months ago (2 children)

Meanwhile Rust: you might get an error at line 45 word 3 because it assumes variable foo is an int32 but it could be (whatever else idk), let's not compile this before you correct this by changing line 43 in this specific way. Here's the before and after code snippets so you can just copy-paste the fix.

[–] TxzK@lemmy.zip 36 points 5 months ago (1 children)

Man I fucking love the Rust compiler. Easily the most understandable and useful error messages I've ever seen.

[–] skulbuny@sh.itjust.works 10 points 5 months ago (1 children)

Have you seen Elm's error messages? They were what inspired Rust to have its error messages.

[–] Asudox@lemmy.world 3 points 5 months ago

I like how Elm error messages are like the compiler talking to you as a person.

[–] anton@lemmy.blahaj.zone 18 points 5 months ago (1 children)

In my IDE there us even a button for accepting the compilers recommend fix. This is only possible because the error messages and recommendations are that good.

[–] agent_flounder@lemmy.world 11 points 5 months ago

Hm. Rust sounds better and better every time I hear something new about it.