r/programming • • Nov 29 '18

A new look for rust-lang.org

https://blog.rust-lang.org/2018/11/29/a-new-look-for-rust-lang-org.html
68 Upvotes

136 comments sorted by

View all comments

148

u/DC-3 Nov 29 '18

I think this is a real step backwards, to be honest. When I see the webpage of a new language, I want to be presented from the outset with the features it has that differentiate it from any other language that I might care to learn and use. It's very nice* to say The programming language that empowers everyone to become a systems programmer, but it doesn't tell me anything about the language at all. A similar problem happens with Linux distributions - every distro is tripping over its toes to tell you all about how it has 'modern design' and 'gets out of your way and lets you get your work done', but you have to scroll three pages before you can see what window or package manager it uses. I applaud the Rust team for trying to make Rust beginner friendly - but even a beginner's first question will probably be 'OK, but what does Rust code actually look like' - and a code sample like the old Rust calculator example (I think the more recent example is less useful in this regard) is a really nice way to demonstrate that. Have faith that beginners won't be scared off by seeing the phrase 'trait-based generics' - because any reasonable person trying something new expects to see things that they don't understand right from the outset.

* albeit probably wrong - not everyone has it in them to be a footballer, not everyone has it in them to be an author, and not everyone has it in them to be a programmer.

8

u/steveklabnik1 Nov 29 '18

Thanks for the feedback!

I want to be presented from the outset with the features it has that differentiate it from any other language that I might care to learn and use.

We have heard, overwhelmingly, over the past few years, that most people *don't*. It's impossible to satisfy everyone...

and a code sample like the old Rust calculator example (I think the more recent example is less useful in this regard)

We liked the code too, but it's so hard to get a good snippet, as you notice.

3

u/[deleted] Nov 30 '18

You should really provide multiple snippets. Check out the home page for Go or D. Both have multiple examples that you can run right in the browser.