AtuThin - အတူသင်

PROGRAMMING LANGUAGES · Programming ဘာသာစကားများ

RUST သင်ခန်းစာများ

Memory လုံခြုံမှုနဲ့ မြန်နှုန်းကို တစ်ပြိုင်နက် ရရှိတဲ့ ခေတ်သစ် system ဘာသာစကား

သင်ခန်းစာ 127 ခု · Interview မေးခွန်း 50 · Quiz မေးခွန်း 20 · အဆင့် Programming ဘာသာစကားများ

ပထမ သင်ခန်းစာမှ စတင်ပါ

အခန်း 1

  1. Rust ဘာသာစကားနှင့် အသုံးပြုနိုင်သည့်နေရာများ
  2. Rust တပ်ဆင်ခြင်း (rustup) နှင့် version စစ်ခြင်း
  3. cargo new ဖြင့် project အသစ်ဖန်တီးခြင်း
  4. ပထမဆုံး Hello World program
  5. cargo run / build / check ကွာခြားချက်
  6. Cargo.toml နှင့် dependencies
  7. rustfmt ဖြင့် code format လုပ်ခြင်း
  8. rust-analyzer နှင့် VS Code ပြင်ဆင်ခြင်း
  9. println! macro နှင့် format string
  10. Comments နှင့် documentation

အခန်း 2

  1. let ဖြင့် variable ကြေညာခြင်း
  2. mut ဖြင့် mutable variable
  3. Constants (const) နှင့် static
  4. Shadowing
  5. Scalar types: integers
  6. Floating-point numbers
  7. Boolean နှင့် char
  8. Type inference နှင့် annotation
  9. Variable scope နှင့် block
  10. Tuple destructuring

အခြေခံ သင်ခန်းစာများ

  1. Tuple ဆိုတာ ဘာလဲ — တန်ဖိုးစု အခြေခံ
  2. လေ့ကျင့်ခန်း — Variable နဲ့ type ပေါင်းစပ် program
  3. Keyboard ကနေ input ဖတ်ခြင်း (std::io, read_line)
  4. လေ့ကျင့်ခန်း — if, loop နဲ့ function ပေါင်းစပ် mini program
  5. Ownership လေ့ကျင့်ခန်း — Compiler error ဖတ်ပြီး ပြင်ခြင်း

အခန်း 3

  1. Tuple
  2. Array
  3. Array indexing နှင့် slicing
  4. String vs &str
  5. String methods (push, format)
  6. char နှင့် Unicode
  7. Type conversion (as, parse)
  8. Unit type ()
  9. Numeric operations
  10. Type aliases

အခန်း 4

  1. fn ကြေညာခြင်း
  2. Parameters နှင့် arguments
  3. Return values
  4. Expressions vs statements
  5. Early return
  6. Function scope နှင့် helper functions
  7. Closures (အခြေခံ)
  8. Higher-order functions (map/filter)
  9. Recursion
  10. Function pointers (fn type)

အခန်း 5

  1. if / else
  2. else if chain
  3. if as expression (let)
  4. loop
  5. while
  6. for with range
  7. for with iterator
  8. break with value
  9. continue နှင့် labels
  10. match အခြေခံ

အခန်း 6

  1. Ownership စည်းမျဉ်း ၃ ချက်
  2. Move semantics
  3. Clone vs Copy
  4. Borrowing (&)
  5. Mutable borrowing (&mut)
  6. Dangling references
  7. Slices (&str, &[i32])
  8. String ownership
  9. Functions နှင့် ownership
  10. Ownership in practice

အခန်း 7

  1. Struct ကြေညာခြင်း
  2. Struct literal နှင့် field init shorthand
  3. Tuple structs
  4. Unit structs
  5. Methods (impl)
  6. Associated functions (new)
  7. Enum ကြေညာခြင်း
  8. Enum with data
  9. Option<T>
  10. Result<T, E> အခြေခံ

အခန်း 8

  1. match expressions
  2. Patterns with literals
  3. Binding variables in patterns
  4. Multiple patterns (|)
  5. Ranges in patterns
  6. if let
  7. while let
  8. let else (Rust 1.65+)
  9. Destructuring structs in match
  10. Wildcard _ နှင့် ..

အခန်း 9

  1. Vec::new နှင့် vec! macro
  2. Vec methods (push, pop, get)
  3. Iterating over Vec
  4. HashMap
  5. HashMap entry API
  6. HashSet
  7. String collection operations
  8. VecDeque
  9. BTreeMap
  10. Iterators (iter, map, collect)

အခန်း 10

  1. panic! macro
  2. Result ဖြင့် error ပြန်ခြင်း
  3. ? operator
  4. unwrap နှင့် expect
  5. Custom error types
  6. Box<dyn Error> အခြေခံ
  7. Option error handling
  8. Error propagation patterns
  9. assert! နှင့် debug_assert!
  10. Panic handling (catch_unwind အခြေခံ)

အခန်း 11

  1. Generic functions
  2. Generic structs
  3. Generic enums
  4. Trait ကြေညာခြင်း
  5. Trait implementation
  6. Trait bounds
  7. Derive macros (Debug, Clone)
  8. Lifetimes အခြေခံ
  9. Lifetime elision rules
  10. Generic + trait + lifetime ပေါင်းစပ်ခြင်း

အခန်း 12

  1. mod ကြေညာခြင်း
  2. pub နှင့် visibility
  3. use နှင့် paths
  4. Cargo workspaces
  5. Unit tests (#[test])
  6. Integration tests
  7. Documentation tests
  8. CLI tool တည်ဆောက်ခြင်း (std::env::args)
  9. File reading/writing project
  10. Mini project: စာရင်းစီမံခန့်ခွဲမှု program

သင်ယူမှု စစ်ဆေးပါ