Willkommen zu Tag 1

This is the first day of Rust Fundamentals. We will cover a lot of ground today:

  • Grundlegende Rust-Syntax: Variablen, Skalar- und zusammengesetzte Typen (scalar-types, union-types) , AufzĂ€hlungen (enums), Strukturen (structs), Referenzen (references), Funktionen (functions) und Methoden (methods).
  • Types and type inference.
  • Control flow constructs: loops, conditionals, and so on.
  • User-defined types: structs and enums.
  • Pattern matching: destructuring enums, structs, and arrays.

Schedule

Including 10 minute breaks, this session should take about 3 hours. It contains:

SegmentDuration
Willkommen5 minutes
Hallo Welt!20 minutes
Types and Values1 hour and 5 minutes
Kontrollfluss1 hour
This slide should take about 5 minutes.

Bitte erinnere die Kursteilnehmer daran:

  • Sie sollten Fragen stellen, sobald ihnen welche einfallen, und nicht bis zum Ende warten.
  • Der Unterricht soll interaktiv sein und Diskussionen sind erwĂŒnscht!
    • As an instructor, you should try to keep the discussions relevant, i.e., keep the discussions related to how Rust does things vs some other language. It can be hard to find the right balance, but err on the side of allowing discussions since they engage people much more than one-way communication.
  • Bei Fragen wird es wahrscheinlich dazu kommen, dass wir ĂŒber die Dinge vor den eigentlichen Folien sprechen.
    • Das ist vollkommen in Ordnung! Wiederholung ist ein wichtiger Teil des Lernens. Die Folien sind nur eine UnterstĂŒtzung und Sie können sie nach Belieben ĂŒberspringen.

The idea for the first day is to show the “basic” things in Rust that should have immediate parallels in other languages. The more advanced parts of Rust come on the subsequent days.

If you’re teaching this in a classroom, this is a good place to go over the schedule. Note that there is an exercise at the end of each segment, followed by a break. Plan to cover the exercise solution after the break. The times listed here are a suggestion in order to keep the course on schedule. Feel free to be flexible and adjust as necessary!