พื้นฐาน Rust
ตั้งแต่โปรแกรมแรกไปจนถึงตัวแปร ชนิดข้อมูล เงื่อนไข ลูป สตริง เวกเตอร์ และฟังก์ชัน พร้อมโจทย์หลังจบแต่ละหัวข้อ
- บทเรียน 17 บท
- โจทย์ 31 ข้อ
- ประมาณ 13 ชม.
- เริ่มต้น 5
- การตัดสินใจ 2
- ลูป 2
- สตริงและข้อความ 2
- คอลเลกชัน 3
- + อีก 2 บท
บทเรียน Rust สั้น ๆ พร้อมโค้ดที่รันได้ในเบราว์เซอร์ เริ่มตามเส้นทางจากพื้นฐาน แล้วฝึกต่อด้วยโจทย์
เรียนตามเส้นทาง: อ่านบทเรียนสั้น ๆ ก่อน แล้วลองทำโจทย์เพื่อเช็กว่าคุณนำแนวคิดไปใช้เองได้หรือยัง
ตั้งแต่โปรแกรมแรกไปจนถึงตัวแปร ชนิดข้อมูล เงื่อนไข ลูป สตริง เวกเตอร์ และฟังก์ชัน พร้อมโจทย์หลังจบแต่ละหัวข้อ
การ move, reference, slice, lifetime และ smart pointer: แนวคิดที่ทำให้ Rust ปลอดภัยด้านหน่วยความจำโดยไม่ต้องมี garbage collector
ออกแบบข้อมูลด้วย struct และ enum ใช้ pattern matching จัดการ Option และ Result และแชร์พฤติกรรมด้วย trait และ generics
Hash map, iterator, closure และ module จากนั้นเรียน thread, channel และ state ที่ใช้ร่วมกัน
แบบฝึกหัดสั้น ๆ 10 ข้อ: FizzBuzz, Fibonacci, จำนวนเฉพาะ, สตริง, binary search และบัญชีธนาคาร
Write your first Rust program and learn what fn main and println! do.
ดูบทเรียน →Declare variables with let, allow changes with mut, and use constants and shadowing.
ดูบทเรียน →Work with integers, floating-point numbers, booleans and characters, and convert between them.
ดูบทเรียน →Use arithmetic, comparison and logical operators, and see how integer division works.
ดูบทเรียน →Create, grow, search and split text with Rust's two string types.
ดูบทเรียน →Choose what runs with if, else if and else, and use if as an expression.
ดูบทเรียน →Repeat code with for over a range, while with a condition, and loop with break.
ดูบทเรียน →Group values with tuples and store a fixed number of items in an array.
ดูบทเรียน →Learn the rule behind Rust's memory safety: every value has one owner.
ดูบทเรียน →