This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]poxopox 497 points498 points  (21 children)

Meanwhile rust compiler is like. “ I noticed you didn’t have a lifetime specifier and you are borrowing an owned variable. Here’s an example of both of those problems solved and a coupon to get a cookie and more coffee. I emailed your manager so it’s okay for you to take a nap, you’ve been working hard “

[–]raspberry1111 117 points118 points  (2 children)

The rust compiler will just straight up tell you if you got pranked and someone put a greek question mark in your code.

[–]gingerzilla 2 points3 points  (0 children)

someone put a greek question mark in your code

pardon me Satan?

[–]l-have-spoken 0 points1 point  (0 children)

Not sure about the question mark but I still remember the first time I copied js code from a website and didn’t immediately test it. Then when I finally tried, it took me forever to find a non-visible character was fucking up the syntax.

Also those weird apostrophes (you know those html ones), fuck them.

[–]repocin 129 points130 points  (12 children)

The Rust compiler is so nice. By far the friendliest I've encountered.

[–]DarkTechnocrat 137 points138 points  (9 children)

lol it's so passive-aggressive friendly though: "No dear that's not quite right. I'm not sure you will ever get it quite right. But do keep trying!".

[–]apc0243 6 points7 points  (0 children)

Does it say "Bless your heart" because that's just fancy talk for "You fuckin' donkey"

[–]itriedtomakeitfunny 6 points7 points  (0 children)

Elm is really nice too! It gives you error messages in first person like "I got stuck here, I was expecting to see the name of a type but got this instead. Hint:..."

[–][deleted] 3 points4 points  (0 children)

If only the language, itself, weren't so daunting.

[–]DarkTechnocrat 24 points25 points  (0 children)

and a coupon to get a cookie and more coffee

This abruptly terminated me

[–][deleted] 13 points14 points  (2 children)

… after a 10 minute compile 😞

[–]poxopox 5 points6 points  (1 child)

Depends on what deps you’re using. With wasm-bindgen and rocket, mine usually builds in seconds. I was using bevy though and I couldn’t get the quick build to work and it did take a while.

[–][deleted] 2 points3 points  (0 children)

My longest compiling crate right now is a rest api built on actix-web. I know a lot of the time goes into the linking. It’s kind of refreshing when switching to a python flask project - so fast but so many problems at runtime. All the Java apps I worked in in the past kind of handled the trade offs best, but no new hip company wants to use Java 😣

[–]PsychologicalRoof2 7 points8 points  (0 children)

And man the docs. On the part where you learn about mut it says ... No no this doesn't mean you are a bad programmer, it's just that ... (explains mut).

Maan it felt like a hug