Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

สรุป 🎉

ยินดีด้วย! คุณจบคอร์ส Rust แล้ว!

คุณได้เรียนรู้ภาษา Rust จากพื้นฐานจนถึงขั้นสูง และสร้าง CLI application ที่ใช้งานได้จริง!


สิ่งที่คุณได้เรียนรู้

Part 1: พื้นฐาน (บทที่ 1-4)

บทหัวข้อKey Concepts
1Getting StartedInstallation, Cargo, Hello World
2VariablesMutability, Data Types, Constants
3FunctionsParameters, Return Values, Expressions
4Control FlowIf/Else, Loops, Match

Part 2: Core Concepts (บทที่ 5-9)

บทหัวข้อKey Concepts
5OwnershipThe 3 Rules, Move, Clone, References
6StructsDefining, Methods, Associated Functions
7EnumsOption, Result, Pattern Matching
8CollectionsVec, String, HashMap
9Error Handlingpanic!, Result, ? Operator

Part 3: Advanced (บทที่ 10-14)

บทหัวข้อKey Concepts
10Generics & TraitsType Parameters, Trait Bounds, Lifetimes
11ModulesPackages, Crates, Visibility
12TestingUnit Tests, Integration Tests, Doc Tests
13Iterators & ClosuresAdapters, Consumers, Fn Traits
14Smart PointersBox, Rc, RefCell, Weak

Part 4: Systems Programming (บทที่ 15-18)

บทหัวข้อKey Concepts
15ConcurrencyThreads, Channels, Mutex, Arc
16Async/AwaitFutures, Tokio, select!
17UnsafeRaw Pointers, FFI, Safe Abstractions
18MacrosDeclarative, Procedural, Built-in

Part 5: Real World (บทที่ 19-20)

บทหัวข้อKey Concepts
19Web DevelopmentAxum, REST API, SQLx
20Final ProjectCLI App Design & Implementation

Key Skills คุณได้

// 1. Memory safety without GC
let s1 = String::from("hello");
let s2 = &s1;  // Borrowing

// 2. Error handling
fn read_file() -> Result<String, Error> {
    let content = std::fs::read_to_string("file.txt")?;
    Ok(content)
}

// 3. Zero-cost abstractions
let sum: i32 = vec![1, 2, 3]
    .iter()
    .map(|x| x * 2)
    .filter(|x| x > &2)
    .sum();

// 4. Fearless concurrency
std::thread::spawn(move || {
    println!("Running in parallel!");
});

โปรเจกต์ที่ควรลองทำต่อ

Beginner Projects

  1. Guessing Game - Text-based number guessing
  2. Temperature Converter - Fahrenheit ↔ Celsius
  3. Todo List - CLI task manager (บทนี้!)

Intermediate Projects

  1. Markdown Parser - Convert MD to HTML
  2. HTTP Client - Simple curl clone
  3. File Searcher - Like grep command

Advanced Projects

  1. REST API Server - Full CRUD with database
  2. Async Crawler - Web scraper with Tokio
  3. Chat Server - Real-time with WebSockets
  4. Compiler - Simple expression language

Resources สำหรับเรียนต่อ

ดูรายละเอียดเพิ่มเติมที่ � Appendix: Resources


☕ สนับสนุนผู้เขียน

ขอบคุณที่อ่านจนจบครับ! ถ้าหนังสือเล่มนี้มีประโยชน์ คุณสามารถเลี้ยงกาแฟผมเพื่อเป็นกำลังใจในการทำคอนเทนต์ดีๆ ต่อไปได้ที่:

👉 Buy Me a Coffee ☕

Final Tips

  1. อ่าน Error Messages - Rust มี error messages ที่ดีมาก
  2. ใช้ Clippy - cargo clippy หา improvements
  3. Format Code - cargo fmt จัด format อัตโนมัติ
  4. Write Tests - cargo test ทดสอบ code
  5. Read Documentation - cargo doc --open

ขอบคุณที่เรียนกับเรา! 🦀

     _~^~^~_
 \) /  o o  \ (/
   '_   ∿   _'
   / '-----' \

 Happy Coding!

Rust makes systems programming accessible to everyone.

ขอให้โชคดีกับการเขียน Rust!