rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

Feature request: link to example solutions as reference once finished

Open Tuxified opened this issue 4 years ago • 5 comments

Hi,

I really enjoyed the current exercises (version 2.2.1), thanks for your efforts! While I managed to finish all exercises, there were some exercises for which I felt there could be better, more idiomatic solutions.

Hence I was hoping a repo with examples would be provided or a way to "grade" my solution according community standards?

Tuxified avatar Apr 07 '20 15:04 Tuxified

Maybe this can be handled in a similar way to Clojure by example? They have a branch on github where all the solutions are solved.

It would probably take a while for it to grow organically as it would require experienced rustaceans to have a look at the solutions and make sure they're fully idiomatic, but I would be happy to start contributing my own solutions to such a branch as a starting point if it existed (although they would almost certainly have imperfections that would need to be ironed out).

sjmann avatar Apr 27 '20 13:04 sjmann

Maybe a dedicated website that's more blog-style documentation that discusses solutions and their permutations? For a few of these I've found different ways to solve them, and it'd be cool to have an explanation for why someone would choose each approach. Of course this could quickly turn into a rewrite of the Rust book lol. But some kind of guidance might be interesting nevertheless!

peterkos avatar Jun 11 '20 22:06 peterkos

I'd be open to creating a video series but I think that a website would be easier to digest and especially easier to update over time.

peterkos avatar Jun 11 '20 22:06 peterkos

I'd be open to creating a video series

I actually already did this! It should be published soon but all the videos are recorded for every exercise in 3.0. I have a couple more to do now that 4.0 has been released, but that looks like ~5 or so new videos on top of 3.0.

ChristopherBiscardi avatar Jul 15 '20 03:07 ChristopherBiscardi

I think this and #820 are the same great idea!

Wouldn't the easiest thing for anyone of the core maintainers, or really anyone who has successfully completed the course to check their code into an examples directory parallel to the exercises directory? They don't need to be perfect, though probably reviewed as acceptable and can be updated with alternatives by anyone. Because this is quick and easy it is more likely to get done. I mean, I could do this today, simply because I finished the course yesterday :-)

jayber avatar May 30 '22 09:05 jayber