<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>基础部分 on 编程那些事儿</title><link>https://before80.github.io/prgms/Rust/basic/</link><description>Recent content in 基础部分 on 编程那些事儿</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 21 Apr 2026 21:27:33 +0800</lastBuildDate><atom:link href="https://before80.github.io/prgms/Rust/basic/index.xml" rel="self" type="application/rss+xml"/><item><title>第 1 章 Rust 语言基础</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-01-Rust-Language-Basics/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-01-Rust-Language-Basics/</guid><description>&lt;h1 id="chapter-01-rust-语言基础"&gt;Chapter-01 Rust 语言基础&lt;/h1&gt;
&lt;h2 id="11-初识-rust"&gt;1.1 初识 Rust&lt;/h2&gt;
&lt;h3 id="111-rust-的设计目标性能安全并发"&gt;1.1.1 Rust 的设计目标：性能、安全、并发&lt;/h3&gt;
&lt;p&gt;想象一下，如果你是一个编程语言的创造者，你会想要什么？&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;性能快如闪电&lt;/strong&gt; ⚡ —— 最好能和 C/C++ 肩并肩，毕竟谁不想让自己的程序跑得飞快呢？&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;安全第一&lt;/strong&gt; 🔒 —— 不想写出那些让人半夜惊醒的内存漏洞、悬垂指针、空指针异常&amp;hellip;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;并发无忧&lt;/strong&gt; 🔮 —— 多线程程序写起来简单，不会动不动就死锁或者数据竞争&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;恭喜你，Rust 就是为了解决这三个问题而生的！&lt;/p&gt;</description></item><item><title>第 2 章 所有权系统</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-02-Ownership-System/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-02-Ownership-System/</guid><description>&lt;h1 id="chapter-02-所有权系统ownership"&gt;Chapter-02 所有权系统（Ownership）&lt;/h1&gt;
&lt;h2 id="21-所有权概述"&gt;2.1 所有权概述&lt;/h2&gt;
&lt;p&gt;欢迎来到 Rust 最独特、最核心的概念——&lt;strong&gt;所有权系统&lt;/strong&gt;（Ownership System）！&lt;/p&gt;
&lt;p&gt;如果说 Rust 是一座大厦，那所有权就是这座大厦的地基。没有它，Rust 就不可能实现&amp;quot;内存安全 + 无 GC + 零成本抽象&amp;quot;的三位一体神话。&lt;/p&gt;</description></item><item><title>第 3 章 复合数据类型</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-03-Compound-Data-Types/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-03-Compound-Data-Types/</guid><description>&lt;h1 id="chapter-03-复合数据类型"&gt;Chapter-03 复合数据类型&lt;/h1&gt;
&lt;h2 id="31-字符串与字符串切片"&gt;3.1 字符串与字符串切片&lt;/h2&gt;
&lt;p&gt;字符串是编程中最常用的数据类型之一。Rust 的字符串系统有点独特——它区分了 &lt;code&gt;String&lt;/code&gt; 和 &lt;code&gt;&amp;amp;str&lt;/code&gt;，这两种类型各有各的用途。理解它们的区别，是掌握 Rust 字符串处理的关键！&lt;/p&gt;</description></item><item><title>第 4 章 泛型</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-04-Generics/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-04-Generics/</guid><description>&lt;h1 id="chapter-04-泛型generics"&gt;Chapter-04 泛型（Generics）&lt;/h1&gt;
&lt;h2 id="41-泛型基础"&gt;4.1 泛型基础&lt;/h2&gt;
&lt;h3 id="411-泛型函数"&gt;4.1.1 泛型函数&lt;/h3&gt;
&lt;h4 id="4111--类型参数声明"&gt;4.1.1.1 &lt;T&gt; 类型参数声明&lt;/h4&gt;
&lt;p&gt;想象一下这个场景：你是一个餐厅老板，菜单上写着&amp;quot;可乐&amp;quot;。结果顾客点单时，有人要可口可乐，有人要百事可乐，有人要零度可乐&amp;hellip;你总不能给每种可乐都写一道菜吧？&lt;/p&gt;</description></item><item><title>第 5 章 Trait</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-05-Trait/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-05-Trait/</guid><description>&lt;h1 id="chapter-05-trait特征"&gt;Chapter 05 Trait（特征）&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;想象一下，你是一家公司的 HR 经理。每天你要面对各种职位描述（Job Description）：会计要会做账、程序员要会写代码、设计师要会画图。但问题是，你不能因为会计会做账就让他去 debug 代码——虽然听起来像是老板会干的事。&lt;/p&gt;</description></item><item><title>第 6 章 集合</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-06-Collections/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-06-Collections/</guid><description>&lt;h1 id="chapter-06-集合collections"&gt;Chapter 06 集合（Collections）&lt;/h1&gt;
&lt;p&gt;欢迎来到 Rust 世界中最激动人心的章节之一——集合（Collections）！如果说 Rust 的所有权系统是这座语言大厦的钢筋水泥，那么集合就是这座大厦的储物间、衣柜、冰箱和杂货铺。想象一下，你搬进了一栋设计精巧的智能公寓，公寓里的每个家具都能自动适应你的存储需求，需要多少空间就自动伸展多少空间，这就是 Rust 集合带给你的体验。&lt;/p&gt;</description></item><item><title>第 7 章 错误处理</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-07-Error-Handling/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-07-Error-Handling/</guid><description>&lt;h1 id="chapter-07-错误处理error-handling"&gt;Chapter 07 错误处理（Error-Handling）&lt;/h1&gt;
&lt;p&gt;想象一下，你是一家高级餐厅的服务员。有一天，客人点了一份牛排，你兴冲冲地端着盘子走向餐桌，结果——牛排掉地上了！&lt;/p&gt;</description></item><item><title>第 8 章 函数式编程</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-08-Functional-Programming/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-08-Functional-Programming/</guid><description>&lt;h1 id="chapter-08-函数式编程functional-programming"&gt;Chapter 08 函数式编程（Functional-Programming）&lt;/h1&gt;
&lt;p&gt;想象一下，你走进一家神奇的餐厅。这家餐厅的菜单上不是具体的菜品，而是一系列&amp;quot;烹饪指令&amp;quot;。你告诉服务员：&amp;ldquo;我想要一份先把食材切成丁，然后用油炒一下，最后加盐的菜。&amp;rdquo; 服务员面带微笑地接过这张小纸条，不慌不忙地走向厨房。几分钟后，一道热气腾腾的菜品就端到了你面前。&lt;/p&gt;</description></item><item><title>第 9 章 生命周期</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-09-Lifetime/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-09-Lifetime/</guid><description>&lt;h1 id="第-9-章-生命周期深化"&gt;第 9 章 生命周期（深化）&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;在 Rust 的世界里，每一个引用都有自己的保质期，过期的引用就像超市里过期的酸奶——编译器会让你尝到什么叫&amp;rsquo;酸爽&amp;rsquo;。&amp;rdquo;&lt;/p&gt;</description></item><item><title>第 10 章 模块系统</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-10-Modules/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-10-Modules/</guid><description>&lt;h1 id="第-10-章-模块系统modules"&gt;第 10 章 模块系统（Modules）&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;想象一下，如果你把所有的衣服都堆在一个大箱子里，找衣服的时候估计得翻遍整个箱子。Rust 的模块系统就是你的衣柜整理神器——把代码分类放好，想用什么就精准拿什么，再也不用翻箱倒柜了！&amp;rdquo;&lt;/p&gt;</description></item><item><title>第 11 章 Cargo 与项目管理</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-11-Cargo/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-11-Cargo/</guid><description>&lt;h1 id="第-11-章-cargo-与项目管理"&gt;第 11 章 Cargo 与项目管理&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;如果 Rust 是一门武侠小说，那 Cargo 就是那个帮你打怪升级、买装备、加buff的超级NPC。没有 Cargo，你得自己造剑、自己磨刀、自己找秘籍。有了 Cargo，你只需要喊一声&amp;rsquo;cargo build&amp;rsquo;，装备就到手了！&amp;rdquo;&lt;/p&gt;</description></item><item><title>第 12 章 元编程：宏</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-12-Macros/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-12-Macros/</guid><description>&lt;h1 id="第-12-章-元编程宏macros"&gt;第 12 章 元编程：宏（Macros）&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;宏是 Rust 世界里的&amp;rsquo;哆啦A梦口袋&amp;rsquo;——你想吃什么（输入什么），它就能给你掏出来什么。函数做不到的事，宏能做到；函数能做的事，宏也能做。唯一的代价是——你需要花点时间学会跟它相处。&amp;rdquo;&lt;/p&gt;</description></item><item><title>第 13 章 并发编程</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-13-Concurrency/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-13-Concurrency/</guid><description>&lt;h1 id="第-13-章-并发编程concurrency"&gt;第 13 章 并发编程（Concurrency）&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;并发，就是同时处理多件事的能力；并行，就是同时做多件事。听起来像绕口令？但如果你想在 Rust 里玩转多线程，这两个概念你必须分清楚——就像你必须分清楚&amp;rsquo;我想吃火锅&amp;rsquo;和&amp;rsquo;我正在吃火锅&amp;rsquo;一样。&amp;rdquo;&lt;/p&gt;</description></item><item><title>第 14 章 异步编程</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-14-Async/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-14-Async/</guid><description>&lt;h1 id="第-14-章-异步编程asyncawait"&gt;第 14 章 异步编程（Async/Await）&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;如果说多线程是&amp;rsquo;分身术&amp;rsquo;，那 async/await 就是&amp;rsquo;影分身术&amp;rsquo;——不需要真正的多个身体，只需要一个身体就能同时处理多个任务。它不占用你的查克拉（系统资源），但能让你像孙悟空一样同时变出好几个自己来干活。&amp;rdquo;&lt;/p&gt;</description></item><item><title>第 15 章 测试</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-15-Testing/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-15-Testing/</guid><description>&lt;h1 id="chapter-15-测试testing"&gt;Chapter 15 测试（Testing）&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;想象一下，你是一家餐厅的厨师，你做完一道菜直接端给客人——没尝过、没看过、没闻过。这时候客人吃到了半生不熟的牛排，里面还有头发丝，你猜会发生什么？轻则差评，重则上新闻。程序员的代码也是一样，写完不测试就发布到生产环境，那简直是给用户埋雷，自己踩自己埋的那种。测试，就是代码的&amp;quot;质检部门&amp;quot;，是程序员的&amp;quot;试毒小分队&amp;quot;，是你在凌晨三点发现 bug 之前就把它揪出来的得力助手。Rust 深知测试的重要性，所以它把测试框架内置在语言核心中，让你写测试就像点外卖一样简单——好吧，可能没那么简单，但至少比你想象的简单多了！&lt;/p&gt;</description></item><item><title>第 16 章 Unsafe Rust</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-16-Unsafe-Rust/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-16-Unsafe-Rust/</guid><description>&lt;h1 id="chapter-16-unsafe-rust"&gt;Chapter 16 Unsafe Rust&lt;/h1&gt;
&lt;!-- CONTENT_MARKER --&gt;
&lt;p&gt;想象一下，你走进厨房，看到一把锋利得能切开原子弹级别的不锈钢菜刀。包装上写着大大的红色警示：&amp;ldquo;危险！请勿让儿童、宠物、以及自信过度的程序员接触！&amp;ldquo;这把菜刀能干很多普通菜刀做不到的事——比如一刀把砧板劈成两半，或者在你手指不注意的时候，给你一个终身难忘的教训。&lt;/p&gt;</description></item><item><title>第 17 章 内存模型与性能优化</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-17-Memory-Model-And-Performance-Optimization/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-17-Memory-Model-And-Performance-Optimization/</guid><description>&lt;h1 id="chapter-17-内存模型与性能优化"&gt;Chapter 17 内存模型与性能优化&lt;/h1&gt;
&lt;!-- CONTENT_MARKER --&gt;
&lt;blockquote&gt;
&lt;p&gt;💡 把内存想象成一个巨大的地下停车场，地址就是车牌号，类型就是各种奇形怪状的车——有娇小的 Smart，有魁梧的悍马，还有长到离谱的加长礼车。Rust 的内存布局，就是教你如何在有限的空间里把这些车停得整整齐齐，既不浪费车位，又不让它们互相刮蹭。什么对齐、什么填充，都是为了让每一辆车都能稳稳当当地停在自己的格子里！&lt;/p&gt;</description></item><item><title>第 18 章 Web 开发</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-18-Web-Development/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-18-Web-Development/</guid><description>&lt;h1 id="chapter-18-web-开发"&gt;Chapter 18 Web 开发&lt;/h1&gt;
&lt;!-- CONTENT_MARKER --&gt;
&lt;blockquote&gt;
&lt;p&gt;把写 Web 应用比作开餐厅，那 Rust 的 Web 开发工具链就是一家从零打造的米其林后厨。Tokio 是你的灶台（异步引擎），Axum 是你的主厨（高层框架），hyper 是你的烤箱（底层 HTTP），tower 是你的传菜流水线（中间件系统），而 sqlx/diesel 则是你的食材管理系统（数据库）。每一层都有它存在的理由，每一层都值得你细细品味。准备好了吗？让我们开始这场 Rust Web 开发的烹饪课！&lt;/p&gt;</description></item><item><title>第 19 章 系统编程</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-19-System-Programming/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-19-System-Programming/</guid><description>&lt;h1 id="chapter-19-系统编程"&gt;Chapter 19 系统编程&lt;/h1&gt;
&lt;p&gt;想象一下，你是一位精通多国语言的外交官，一边要直接跟硬件大使用二进制密语交涉，一边还要安抚应用层的各位贵族老爷们别闹脾气。恭喜你，这就是系统编程！——只不过你的&amp;quot;大使馆&amp;quot;就是内核空间，你的&amp;quot;外语&amp;quot;就是系统调用，而你最好的翻译官，就是 Rust。&lt;/p&gt;</description></item><item><title>第 20 章 工具开发与实用工程</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-20-Tool-Development-And-Practical-Engineering/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-20-Tool-Development-And-Practical-Engineering/</guid><description>&lt;h1 id="chapter-20-工具开发与实用工程"&gt;Chapter 20 工具开发与实用工程&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;想象一下：你写了一段 Rust 代码，它拯救了世界（或者至少是拯救了你的下一个周末项目）。但这只是开始——如何让这段代码变成别人愿意安装、使用的工具？如何让它在 GitHub Actions 里跑起来？如何让全世界都知道你的名字（或者至少是 &lt;code&gt;crates.io&lt;/code&gt; 上的下载量）？&lt;/p&gt;</description></item><item><title>第 21 章 Rust 2024 Edition 新特性</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-21-Rust-2024-Edition/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-21-Rust-2024-Edition/</guid><description>&lt;h1 id="chapter-21-rust-2024-edition-新特性"&gt;Chapter 21 Rust 2024 Edition 新特性&lt;/h1&gt;
&lt;!-- CONTENT_MARKER --&gt;
&lt;h2 id="211-edition-概览"&gt;21.1 Edition 概览&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;想象一下 Rust 编程语言是一个 living organism —— 它会呼吸、成长、偶尔还会掉几根&amp;quot;头发&amp;quot;（语法特性）。而 Edition，就是它的成年礼。每隔几年，Rust 团队就会发布一个 Edition，给这门语言一个新发型、一套新西装，顺便告诉你：&amp;ldquo;嘿，我已经不是五年前那个毛头小子了！&amp;rdquo;&lt;/p&gt;</description></item><item><title>第 22 章 Rust 编译器与语言设计</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-22-Rust-Compiler-And-Language-Design/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-22-Rust-Compiler-And-Language-Design/</guid><description>&lt;h1 id="chapter-22-rust-编译器与语言设计"&gt;Chapter 22 Rust 编译器与语言设计&lt;/h1&gt;
&lt;!-- CONTENT_MARKER --&gt;
&lt;blockquote&gt;
&lt;p&gt;你有没有想过，当你 &lt;code&gt;cargo build&lt;/code&gt; 的时候，背后究竟发生了什么？Cargo 悠悠地打印出 &amp;ldquo;Compiling&amp;hellip;&amp;quot;，然后 Rust 编译器（rustc）就像一台精密的瑞士手表一样开始工作——词法分析、语法解析、类型检查、 borrowck、代码生成……每一个步骤都像交响乐团的乐手，各司其职，配合得天衣无缝。本章我们就来拆解这台&amp;quot;编译器交响乐团&amp;quot;的乐器组，聊聊 Rust 编译器架构、语言设计决策背后的哲学，以及你如何参与到这个伟大项目中去。&lt;/p&gt;</description></item><item><title>第 23 章 生态系统与生态图谱</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-23-Ecosystem-And-Landscape/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-23-Ecosystem-And-Landscape/</guid><description>&lt;h1 id="chapter-23-生态系统与生态图谱"&gt;Chapter 23 生态系统与生态图谱&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;ldquo;Rust 是一门让程序员既爱又恨的语言。爱它，是因为它让你写出飞快的代码；恨它，是因为 borrow checker 像一只永不睡觉的看门狗，时不时跳出来吼你一嗓子：&amp;lsquo;嘿！你又想偷偷摸摸搞个空指针！&amp;rsquo;&amp;rdquo; ——某位在 Stack Overflow 上连续三年获得&amp;quot;最受喜爱语言&amp;quot;称号的编程语言如是说。&lt;/p&gt;</description></item><item><title>第 24 章 实践项目路线图</title><link>https://before80.github.io/prgms/Rust/basic/Chapter-24-Practice-Project-Roadmap/</link><pubDate>Fri, 27 Mar 2026 17:24:46 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/basic/Chapter-24-Practice-Project-Roadmap/</guid><description>&lt;h1 id="chapter-24-实践项目路线图"&gt;Chapter 24 实践项目路线图&lt;/h1&gt;
&lt;!-- CONTENT_MARKER --&gt;
&lt;blockquote&gt;
&lt;p&gt;📍 你还在看教程？没关系，这章就是让你&amp;quot;动手做点东西&amp;quot;的拐杖。别担心摔跤，我们有护具。&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;想象一下：你学完了前面几章，脑子里装了一堆概念——变量、所有权、函数、枚举、模式匹配……但打开编辑器的时候，手指在键盘上悬停了三秒，然后陷入哲学思考：&amp;ldquo;我……能写点啥？&amp;rdquo;&lt;/p&gt;</description></item></channel></rss>