News for hackers. Stuff that matters.
Re:Rust 1.48 by x87678r on Thursday November 19, 2020 @12:43PM (#25152061)
Java is the same as well
Re:Rust 1.48 by TheAsprngHacker on Thursday November 19, 2020 @08:25PM (#25156443)
Interestingly, documentation that's only type signatures is also a frequent gripe I've heard about OCaml. So maybe this is a universal phenomenon.

However, some people contrast OCaml and Rust in this regard, contradicting the views of the great grand-parent comment: https://news.ycombinator.com/item?id=25111104

Re:Rust 1.48 by masklinn on Thursday November 19, 2020 @01:11PM (#25152398)
So tldr: people don't like writing documentation, and it's hard to make them care.
Re:Rust 1.48 by hinkley on Thursday November 19, 2020 @11:10PM (#25157233)
If you can’t tell a story with text, you won’t be able to tell it with code either. The thing that makes people want better documentation is the same thing that makes it difficult to get.

I remember years ago using Ant as a build tool and the only way I figured it out was to Googlestalk the author. Given enough answers to questions in enough places I finally developed a theory of the system. It was still supremely weird to convince it to do certain things but at least I was able to.

Re:Rust 1.48 by masklinn on Friday November 20, 2020 @11:27AM (#25161938)
> If you can’t tell a story with text, you won’t be able to tell it with code either.

I couldn't disagree more. Telling a story with words to humans and telling a story with code to a computer are completely different things.

Re:Rust 1.48 by hinkley on Friday November 20, 2020 @01:14PM (#25163168)
You’re not telling a story to a computer. You’re telling it to your coworkers. The people’s code that’s most frustrating to work with share your philosophy. They are often so convinced they’re right that they can’t even hear constructive criticism. That’s not my opinion, that’s the consensus view shared over lunches and coffees with their coworkers, across many jobs.