This hands-on session is designed to introduce programmers to the Rust programming language, focusing on syntax and simple concepts. Familiarity with other programming languages will be beneficial but is not mandatory.
- Install
rustup(https://rustup.rs) - Install the latest stable toolchain (should be the default)
- Ensure that Rust is installed and accessible by running
cargo --version - Install an editor/IDE of your choice (e.g. VSCode with 'Rust Analyzer Extension')
- The session may take long, around 7 hours
- We emphasize syntax and core introductory conteps, avoiding advanced features like generics. This allows participants to grasp the fundamentals and get started to explore Rust.
- Our goal is to incrementally build understanding by extending a single file (
main.rs). - Tutors should only explain concepts covered in the slides. Explanations and guidance should align with the presented content, ensuring a coherent learning experience.
- Tutors should engage with participants by walking around, answering questions, and providing guidance.
- Noticed while presenting
letwasn't introduced before task 1- introduce Formatter early
- Task 4.3 prints the error twice. Once explicitly and once by returning at Err value from main
- Task 5.4 not necessary for 5.5
- for loops were not introduced
- explain TDD before testing task
- Feedback
- continue: good Betreuungsschlüssel
- start: quizzes/questions
- continue: social interaction during break
- stop: refer less to other programming languages. Bad for people without any programming experience
- start: show practical examples, maybe show some of our code at the end
- continue: all the tasks were somehow connected
- more additional and optional tasks
- struct initialization: how to access members? kommt theoretisch auf der nächsten Slide, aber vielleicht will man das früher?
- Meme beim Pattern Matching, lustiger werden
- Option::nothing kompiliert nicht
- Lernwochenende, Mittwoch
- noch mehr Kontext zu dem Produktivcode, Anekdoten erhöhen
- zu wenig Tutoren