One of the things that made me so excited about Rust when I first used it was the capabilities of the Rustdoc system. The built in examples that are also unit tests, the ease of just using markdown... and now the linking is even simpler. It’s one of my favorite things about the language, and I think is why so many crates have such good documentation, because it’s easy to do. (and it’s tested and validated so you know…
Not directly related, but when I was learning programming back in highschool (before the Internet) what made it easy was the built in help in Turbo Pascal. You could press F1 over any function or keyword and you were given a detailed description and example of usage. Learning C later using the K&R book and Google was a huge downgrade. Even today I think that language help built into the IDE should be a basic function…
Rust 1.48
71–80 of 119 posts
Re: Rust 1.48
#72A few months ago I tried Rust but found that the tooling like auto completion and highlighting where still a bit alpha. IIRC I used VSCode with the most popular Rust plugin at the time. Did I miss something or is there some progress being made in that respect?
Try the newer and future default plugin, rust-analyzer (currently only 110K installs).
It’s much better and improving each week. With RA and VSCode the rust developer experience is fantastic.
Link: https://marketplace.visualstudio.com/items?itemName=matklad....
Re: Rust 1.48
#73A few months ago I tried Rust but found that the tooling like auto completion and highlighting where still a bit alpha. IIRC I used VSCode with the most popular Rust plugin at the time. Did I miss something or is there some progress being made in that respect?
Even if you had to use notepad to program - or had very basic syntax highlighting - wouldn't be what the language provides a more compelling point to make these choices?
Re: Rust 1.48
#74A few months ago I tried Rust but found that the tooling like auto completion and highlighting where still a bit alpha. IIRC I used VSCode with the most popular Rust plugin at the time. Did I miss something or is there some progress being made in that respect?
I don't want this to sound like a criticism, but I would like to understand your point of view: do you really consider this a reason for choosing a language over any other? Even if you had to use notepad to program - or had very basic syntax highlighting - wouldn't be what the language provides a more compelling point to make these choices?
Usability is a feature, and many people consider a language’s IDE support to be a critical aspect of usability.
Re: Rust 1.48
#75Re: Rust 1.48
#76Earlier quoted context omitted.
You need a -Z unstable-options in there too, but this does not work for me with the latest nightly.
Hmm apparently there is a cargo feature for it now: https://github.com/rust-lang/cargo/blob/master/src/doc/src/r... So something like this in .cargo/config: [doc.extern-map] std = "local" And then cargo +nightly doc -Zrustdoc-map.
Re: Rust 1.48
#77Earlier quoted context omitted.
I don't want this to sound like a criticism, but I would like to understand your point of view: do you really consider this a reason for choosing a language over any other? Even if you had to use notepad to program - or had very basic syntax highlighting - wouldn't be what the language provides a more compelling point to make these choices?
There are a lot of people for who this is true, yes. It has come up consistently on our annual survey. Usability is a feature, and many people consider a language’s IDE support to be a critical aspect of usability.
Re: Rust 1.48
#78Earlier quoted context omitted.
There are a lot of people for who this is true, yes. It has come up consistently on our annual survey. Usability is a feature, and many people consider a language’s IDE support to be a critical aspect of usability.
It's certainly an interesting position, from my perspective, as I (and probably OP) have worked our entire professional lives without a syntax checker or any other form of IDE other than simple things like autoindent.
Contrast with a language like Java, which is very amenable to a lot of tooling, and kinda sorta needs it to make the language more usable. If that's your background, you can't imagine not having that tooling, because, well, you're used to it.
I will say that I have been playing around with using more IDE-like things, and even though it's culturally pretty foreign to me, I understand the appeal. And as I'm getting more used to it, I get annoyed when it's not there, and then remember how I used to pooh pooh people who required all those fancy features. So... I get it. These days at least.
Re: Rust 1.48
#79One of the things that made me so excited about Rust when I first used it was the capabilities of the Rustdoc system. The built in examples that are also unit tests, the ease of just using markdown... and now the linking is even simpler. It’s one of my favorite things about the language, and I think is why so many crates have such good documentation, because it’s easy to do. (and it’s tested and validated so you know…
Not directly related, but when I was learning programming back in highschool (before the Internet) what made it easy was the built in help in Turbo Pascal. You could press F1 over any function or keyword and you were given a detailed description and example of usage. Learning C later using the K&R book and Google was a huge downgrade. Even today I think that language help built into the IDE should be a basic function…
Re: Rust 1.48
#80Earlier quoted context omitted.
It's certainly an interesting position, from my perspective, as I (and probably OP) have worked our entire professional lives without a syntax checker or any other form of IDE other than simple things like autoindent.
Yes. I too have been pretty anti-IDE most of my history. But I think a lot of it comes down to tools and culture; Ruby (which I have done for the first half of my profesional life) is extremely hard to give good tooling for. So the tools are bad, so they aren't useful. So you don't use them. Contrast with a language like Java, which is very amenable to a lot of tooling, and kinda sorta needs it to make the language m…
I’m not keen on the classic IDE experience either. I like VSCode because it’s a simple/light weight text editor which helps me with small tasks like auto-imports.
I feel like these things are especially helpful when you’re a beginner and just started learning a new language.
Anyways, thanks for the hard work Steve and I’ll give it a second try with RA soon!