TWiR quote of the week

15 Likes

think im turning into a computer because ive been reading the rust book for the past two days and now im dreaming in code

by user Koffeekake on community discord server

5 Likes

Might be good to have this as the quote of the week? It sends a good message IMHO.

(Also, @ZiCog I found you're quote funny too :stuck_out_tongue: but I agree with josh)

1 Like

Found a great quote:

I love Rust like I love Dark Souls.
It's difficult, but fair. I can not praise enough the software developers that realize proper errors are vastly superior to extensive docs.

https://news.ycombinator.com/item?id=23032636

14 Likes

And it's worth noting that we have fairly extensive docs as well, so it's not an either-or situation.

It's the typical "pick all 3" solution that the Rust team loves to find.

7 Likes

You are correct! In my experience learning Rust, more often than not, the error messages were enough to correct the code and make it compile (well, after lifetimes "clicked" in my head), and then I would go to the docs for those error codes to go deeper into the problem, concepts and different (but equivalent) examples.

The purpose of pin is to have unsafe code in one crate make guarantees to unsafe code in another crate, possibly with non-unsafe code in the middle

by Alice Ryhl in the community Discord server

8 Likes
12 Likes

This one's a bit old, but it relates to my current situation very much:

That’s one of my general complaints with serde: it’s either super convenient and exactly what you want, or it’s a screaming nightmare. There’s no in-between.

- DanielKeep, Catchall variant in Serde

5 Likes

Many thanks for all your answers, I am very pleased to have a chat with you.

@thomas-hugel, after asking a question about green threads and getting nice and informative replies.

I'd like to include the whole quote, but it's two paragraphs. This is the best takeaway, IMHO.

5 Likes

From Did Rust make the right choice about error handling?

10 Likes

But then again, what isn't hard as a beginner?

Brilliant characterization by analogy!

5 Likes

Memoize function without cloning
Most functional languages use garbage collection, so memory management is not a concern there. In Rust we need to do something explicitly.

Explaining why the borrow checker is complaining and how to deal with it.

3 Likes

A concise description of what I find compelling about Rust's approach to correctness.

17 Likes

One problem I've had, in general and not with just Rust, is that people can find a way to do anything with anything. I've seen people do some horrific stuff with their hammers just to prove they don't need a screwdriver.

seen on /r/rust

3 Likes

[SIMD is] the perfect knife edge between awe and expletives.

-- Stephen Merity @ https://state.smerity.com/smerity/state/01E8RNH7HRRJT2A63NSX3N6SP1

2 Likes

That's the way I feel about the borrow checker.

Rust enables belligerent refactoring – making dramatic changes and then working with the compiler to bring the project back to a working state.

So true : https://blog.knoldus.com/some-extensive-projects-working-with-rust/

8 Likes