Cookbook of Rust for developers coming from other languages

Hi,

I think it would be a great idea to have a book or a tutorial focused on developers that come to Rust from other programming languages. It should be some kind of a cookbook that shows examples of typical code or design patterns in other languages, for example in Java, and equivalent code in Rust with a brief explanation. Also this cookbook should explain what programming techniques that are common in other programming languages are not good in Rust and what are their alternatives.

Rust is a restrictive language and it usually fights hard with an experienced rookie against his/her entrenched habits. Let's make it a win-win game.

6 Likes

Not a real solution to your "problem", but there is this:
https://github.com/rust-unofficial/patterns

1 Like

Also not a full solution to your problem :wink: This is a crate cookbook aiming to show typical programming tasks solved via usage of most popular libraries in an idiomatic way.
https://github.com/rust-lang-nursery/rust-cookbook

1 Like

I started one a long time ago: https://github.com/carols10cents/language-to-rust-cheat-sheets MIT, so feel free to fork and continue!

Thank you all.