The Rust programming language (rust) is approaching the 1.0 release soon.
(Who am I? Huon Wilson, member of the Rust core team, and the current top user for rust.)
This release comes after a long period of pre-alpha, alpha, and (soon) beta development in public. Along the way, there have been huge changes to the language and library, meaning that it is very likely that code from 6 months ago (let alone 3 years) won't compile with a current compiler, or with the 1.0 release. In fact, there have been many major fundamental changes so even the concepts in many of the older answers are now irrelevant e.g. the oldest question tagged [rust] refers to a feature that used to be one of the major draw-cards of Rust, but no longer exists in the language at all.
These changes have caused endless difficulties for beginners trying to learn Rust: code that is outdated and irrelevant doesn't help. This is of course a general problem with Rust code on the internet, in blogs posts etc, but SO is a big source of help to many people, and the outdated code in rust is something we can possible tackle.
Much of the active Rust community (e.g. people on IRC, publishing on crates.io) run the current nightlies, and there's not many active users of even the most recent release (alpha-2), let alone older releases. This will hold true at 1.0: people will move to either the stable 1.0 release or the post-1.0 nightlies. It is very unlikely that anyone will be trying to actively use older versions of the compiler. The point being: out-dated rust answers won't help Rust users after 1.0, and are actively unhelpful for new users.
proposal
I would like to give incoming users more help to avoid being tricked by old answers. I propose that
questions and (accepted) answers with a small number of upvotes are edited to include a generic message at the top. Something along the lines of
This [question/answer] relates to a pre-1.0 version of Rust; it may be too old to be helpful.
(NB. this message was inserted automatically for the lead-up to Rust 1.0. [link to more info].)
In the best case, this would be done with automation, but I guess it's not out of the question for it to be done manually by a dedicated group of volunteers.
more popular questions/answers get special attention, either inserting a more specific message like the above, and/or carefully updating the post to ensure that the correct modern way is clear e.g. linking to a newer question/answer that solves the problem (including possibly creating that answer, by posting a new answer to the same question), or editing the content in the accepted answer (especially if only a few minor code changes are required).
There is a lot of space for finessing exactly how this is done. I am currently thinking that we might do the above to the ~40% of rust posts that are older than 6 months soon, and then the more recent posts closer to 1.0 (possibly in several stages). Similarly, the thresholds for popularity are pretty loose; I'm thinking questions with 3 or more upvotes, or questions with accepted answers with 5 or more upvotes, but that still leaves several hundred posts to consider.
Is this at all reasonable? If so, what is the best way to accomplish it? Are there alternate ways to solve the fundamental problem that work too?
analysis
Using upvotes as a proxy for how popular/useful an answer is (and with some great assistance from @Manishearth) I looked at the distribution of the accepted answers on [rust] questions and the distribution of the questions themselves . It seems that most answers are not very useful: more than 40% have 2 or fewer votes. Similarly, more than half of questions get at most one vote.
rust-prerelease
. That tag wiki could explain the same things. It's not nearly as nice as a big banner though.It seems that most answers are not very useful: more than 40% have 2 or fewer votes.
Isn't this kind of a inevitable side-effect of a somewhat niche (1700 questions) tag such as [rust]? Wouldn't two votes be considered as acceptably useful?rust
tag withrust-prerelease
orrust-obsolete
(or some mixture of both depending on question age), then create a brand newrust
tag with no questions on the day of 1.0.