Skip to content

Commit

Permalink
Merge pull request #243 from imag1ne/master
Browse files Browse the repository at this point in the history
stage 1 summary
  • Loading branch information
ZhiyuanSue authored Apr 25, 2024
2 parents 900665d + 22e347a commit cdb2ed8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions source/_posts/2024-rcore-summary-stage1-imag1ne.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: 2024夏开源操作系统训练营第一阶段小结
date: 2024-04-23 12:55:26
categories:
- report
tags:
- author:imag1ne
- repo:https://github.com/LearningOS/rust-rustlings-2024-spring-imag1ne
---

## 背景

初次接触 Rust,是在学校学习操作系统课程的时候。这门课的练习课中,需要用 Rust 语言来完成编程练习。在学习 Rust 之前,我对编程语言的学习并没有很大的热情。因为在我的印象里除了学习第一门编程语言 C 的时候花了些功夫,之后学习的 Java,Python,Javascript 之类的都是熟悉一下语法后就很快上手。当时我看学校里课程的安排也就是大概给学习 Rust 一周的时间,后面就开始做各种练习了,所以我并没从 Rust 这门语言中期待过什么特别复杂的东西。

真正开始学习的时候,发现事情好像并没有我想的那么简单。我发现除了要理解 Rust 的生命周期,所有权等概念意外,还要关注很多底层的细节。慢慢地我就明白了,想要真正理解 Rust 这门语言,我需要深入思考 Rust 的设计哲学,多看看 [The Rust RFC Book](https://rust-lang.github.io/rfcs/),收获会非常大。

对于 Rust 这门编程语言的学习,离我最开始接触有一段时间了。这次训练营的第一阶段,其实对我个人来说是对这门编程语言的复习和巩固。

## 心得体会

学习 Rust 我感觉没有很难,多读一读 [The Rust Programming Language](https://doc.rust-lang.org/book/), [The Rust RFC Book](https://rust-lang.github.io/rfcs/)[标准库文档](https://doc.rust-lang.org/std/),对于初期学习完全足够。对于 Rustlings,我并不是特别喜欢,对于学习来说帮助并不大,里面的练习对于学习者来说就是难者不会,会者不难。多写多练多交流,有疑惑不要迟疑,打开 [Rust Playground](https://play.rust-lang.org)多写示例探索,在我看来是最好的学习方法。

对于语言本身那些细碎的知识点,也没做过详细的笔记。也就是在学习闭包的时候写过一篇总结:[Rust中的闭包与关键字move](https://zhuanlan.zhihu.com/p/341815515)

参加这次训练营也是想重新拾起 Rust,并将其运用到实践当中。

0 comments on commit cdb2ed8

Please sign in to comment.