当前位置:网站首页>13 years of senior developers share a year of learning rust experience: from the necessary bibliography to code practice
13 years of senior developers share a year of learning rust experience: from the necessary bibliography to code practice
2022-07-26 15:58:00 【QbitAl】
Pine From the Aofei temple
qubits | official account QbitAI
How to learn Rust,Hacker News There is such a tutorial on fire .

It is different from the similar several hour speed tutorials on the network , But through their own learning experience to point out a learning Rust The path of .
After the tutorial is sent , Netizens are also there Hacker News Posted his own learning experience .
understand Rust Relevant books and tutorials are very convenient , Even if there is no network , You can also learn offline . I'm not WiFi I learned from my long flight Rust Basic knowledge of . It's really a good way to pass the time !

Reading related books and writing code are essential for learning a programming language , The two alternate learning to master Rust crucial .
Senior Developer Eli Bendersky He wrote many blogs about code language on his website , One of them is about his one-year study Rust The experience of .

Let's see .
Black and red list of relevant bibliographies
First ,Eli What he read in the tutorial Rust The relevant bibliographies were evaluated .
Programming Rust Generally, it is regarded as an introductory book , This is a Eli Study Rust The first book I read .
The book initially introduces Rust, contains Rust1.50 Comprehensive overview and reference .

Although it is an introductory book , But it still needs a certain programming foundation , Familiar with low-level programming , Especially memory management .
Overall speaking , For an experienced developer ( Preferably C++ background ) Know how to use alternative resources in the project , This book is right Rust A good and comprehensive overview of .
The second is The Rust Programming Language, Compare with Programming Rust,Eli I think this book will be a better reference , Although he has not read the whole book completely , But I have browsed the main part of it .

This book also ranks top in Google , Many people list it as Rust Getting started , from Rust Written by two members of the core team ,42 Feedback and contributions from community members .
The same thing is , Reading this book also requires a programming foundation , This means that these materials are useful for developers with various programming backgrounds .
Sum up , If you want to read these introductory Rust Books , You have to have a certain programming foundation first .
Next, let's talk about Rust in Action, It's about Rust An intermediate book of , It includes several important projects in the field of system programming .

In this book , The method of introduction is very interesting , It's suitable for people who have a preliminary understanding Rust People reading .
besides , It also focuses on system programming , And wrote a lot of really useful code .
But the beauty is , Because this book is still very new , There are many typos in it 、 confusion 、 Serious mismatches between the code listing and the accompanying repository, etc .
Finally, let's talk about Rust for Rustaceans This book , Say first conclusion , Reading is not recommended .
Eli I like the author of this book very much Jon Gjengset Some videos released before , But after reading this book, I was disappointed .

This book is mixed Rust Materials that are better explained and too professional in official books , Just layers of text , There are few charts and code examples , There are hardly any compileable projects to do something useful .
I have learned about learning Rust Related books about , Besides reading, you should also practice writing code properly .
Writing code exercises
In that case , How can we practice effectively ?Eli I also recommend some channels based on my own experience .
If you start learning Rust when , You can use first rustlings, It is used to read and write Rust Code snippet exercises . Although not very comprehensive , But it's still very useful for Xiaobai who just started .
The website is attached at the end of the article .

Say again Advent of Code,2021 The annual edition is very suitable for practice Rust, Altogether 25 A question , Write code according to the instructions in it , To complete the task .
By solving AOC The problem of , Can learn and practice programming language well .
Eli I have finished the previous 18 A question , He also mentioned in his blog , It is likely to be in Rust In dealing with AOC2022, Keep his touch .

The Ray Tracer Challenge book, This book consists of a series “ unit testing ” And pseudo code that is easy to translate into any language , It can be used to guide us to use programming language to realize ray tracker .

While learning new programming languages , We can also build some visual things , Will not feel boring soon .
however , This book explains why the formulas and pseudocodes it provides are valid , It doesn't help cultivate intuition .
This leads to serious errors when debugging problems . Without developing intuition , Therefore, the only way to debug is to carefully compare the code with the pseudo code in the book , To ensure that there is no loss or input error in the transcription process .
Of course, overall , It's worth reading .
Finally, let's talk about Crafting Interpreters, In this book , The author has developed two complete interpreters for the language from beginning to end , Including all front-end and back-end parts .

In the book , All the code of the two interpreters is completely contained in the text and rendered in segments . There is no need to browse the external repository . Directly read and copy the code into your editor to run .
Eli Also have a high evaluation of this book , He believes that this book is among many compiler books he has read , By far the most practical .
In addition to the above ,Eli Many experiments have also been done , Write code to explore Rust In all fields .
If you are interested, you can stamp the link below , Go to his website to see more ~
Reference link :
rustlings:https://github.com/rust-lang/rustlings
AOC:https://adventofcode.com/
[1] https://eli.thegreenplace.net/2022/how-i-went-about-learning-rust/
[2] https://news.ycombinator.com/item?id=32104764
边栏推荐
- .net get injection object manually
- How to use job plug-in type to call a kettle job through ETL scheduling tool taskctl?
- [5 minutes paper] Pointer network
- 超简单!只需简单几步即可为TA定制天气小助理!!
- Tool skill learning (II): pre skills shell
- Reflection, enumeration, and lambda expressions
- 如何通过ETL调度工具 TASKCTL 使用作业插件类型调用 kettle作业?
- 御神楽的学习记录之SoC FPGA的第一个工程-Hello World
- Summary of QT plug-in development -- add plug-in menu in the main interface
- 白话详解决策树模型之使用信息熵构建决策树
猜你喜欢

Zynq PS + PL heterogeneous multicore Case Development Manual of Ti C6000 tms320c6678 DSP + zynq-7045 (1)

A comprehensive review of image enhancement technology in deep learning

How to use job plug-in type to call a kettle job through ETL scheduling tool taskctl?

工具技能学习(二):前置技能-shell

OSPF综合实验

Implementation of SAP ABAP daemon
![[leetcode] 33. Search rotation sort array](/img/da/e29dc6939803642e45f1ed48f664ce.png)
[leetcode] 33. Search rotation sort array

Paper:《All Models are Wrong, but Many are Useful: 所有模型都是错误的,但许多模型都是有用的:通过同时研究一整类预测模型来了解变量的重要性》翻译与解读

基于SSM开发实现校园疫情防控管理系统

hawe螺旋插装式单向阀RK4
随机推荐
Musk was exposed to be the founder of Google: he broke up his best friend's second marriage and knelt down to beg for forgiveness
TI C6000 TMS320C6678 DSP+ Zynq-7045的PS + PL异构多核案例开发手册(4)
Can the parameterized view get SQL with different rows according to the characteristics of the incoming parameters? For example, here I want to use the column in the transmission parameter @field
QT is the most basic layout, creating a window interface
一文搞懂│XSS攻击、SQL注入、CSRF攻击、DDOS攻击、DNS劫持
如何将规划图转成带经纬度的矢量数据geojson
单例模式
[dsctf2022] PWN supplementary question record
SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame
# 工欲善其事必先利其器-C语言拓展--嵌入式C语言(十一)
2022 what is your sense of security? Volvo asked in the middle of the year
TI C6000 TMS320C6678 DSP+ Zynq-7045的ZYNQ PS + PL异构多核案例开发手册(1)
OSPF comprehensive experiment
八叉树建立地图并实现路径规划导航
Is there any need for livedata to learn—— Jetpack series (2)
ROS problems and Solutions - relying on package installation and unable to correct errors
kalibr标定realsenseD435i --多相机标定
Implementation of SAP ABAP daemon
Some cutting-edge research work sharing of SAP ABAP NetWeaver containerization
Chapter 7 supporting CORS in rest services