From 1085e9c20bd8e3f3f3de93cc9fabd33b8593a368 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Wed, 11 Jan 2023 12:49:59 +0100 Subject: [PATCH] Add speaker notes to exercise pages The notes link to the corresponding solutions. --- src/exercises/day-1/afternoon.md | 8 ++++++++ src/exercises/day-1/morning.md | 4 ++++ src/exercises/day-2/afternoon.md | 8 ++++++++ src/exercises/day-2/morning.md | 8 ++++++++ src/exercises/day-3/afternoon.md | 8 ++++++++ src/exercises/day-3/morning.md | 8 ++++++++ src/exercises/day-4/afternoon.md | 7 +++++++ src/exercises/day-4/morning.md | 8 ++++++++ 8 files changed, 59 insertions(+) diff --git a/src/exercises/day-1/afternoon.md b/src/exercises/day-1/afternoon.md index fcb5d46e..f194e2d3 100644 --- a/src/exercises/day-1/afternoon.md +++ b/src/exercises/day-1/afternoon.md @@ -5,3 +5,11 @@ We will look at two things: * A small book library, * Iterators and ownership (hard). + +
+ +After looking at the exercises, you can look at the [solutions] provided. + +[solutions]: solutions-afternoon.md + +
diff --git a/src/exercises/day-1/morning.md b/src/exercises/day-1/morning.md index 52bdd049..bbda973d 100644 --- a/src/exercises/day-1/morning.md +++ b/src/exercises/day-1/morning.md @@ -19,6 +19,10 @@ A few things to consider while solving the exercises: The code snippets are not editable on purpose: the inline code snippets lose their state if you navigate away from the page. +After looking at the exercises, you can look at the [solutions] provided. + +[solutions]: solutions-morning.md + [Using Cargo]: ../../cargo.md diff --git a/src/exercises/day-2/afternoon.md b/src/exercises/day-2/afternoon.md index ebda99e7..4142dfe4 100644 --- a/src/exercises/day-2/afternoon.md +++ b/src/exercises/day-2/afternoon.md @@ -1,3 +1,11 @@ # Day 2: Afternoon Exercises The exercises for this afternoon will focus on strings and iterators. + +
+ +After looking at the exercises, you can look at the [solutions] provided. + +[solutions]: solutions-afternoon.md + +
diff --git a/src/exercises/day-2/morning.md b/src/exercises/day-2/morning.md index 26705389..5a715e3a 100644 --- a/src/exercises/day-2/morning.md +++ b/src/exercises/day-2/morning.md @@ -5,3 +5,11 @@ We will look at implementing methods in two contexts: * Simple struct which tracks health statistics. * Multiple structs and enums for a drawing library. + +
+ +After looking at the exercises, you can look at the [solutions] provided. + +[solutions]: solutions-morning.md + +
diff --git a/src/exercises/day-3/afternoon.md b/src/exercises/day-3/afternoon.md index eae9c189..1c307874 100644 --- a/src/exercises/day-3/afternoon.md +++ b/src/exercises/day-3/afternoon.md @@ -1,3 +1,11 @@ # Day 3: Afternoon Exercises Let us build a safe wrapper for reading directory content! + +
+ +After looking at the exercise, you can look at the [solution] provided. + +[solutions]: solutions-afternoon.md + +
diff --git a/src/exercises/day-3/morning.md b/src/exercises/day-3/morning.md index d006a7ef..d6a19da2 100644 --- a/src/exercises/day-3/morning.md +++ b/src/exercises/day-3/morning.md @@ -1,3 +1,11 @@ # Day 3: Morning Exercises We will design a classical GUI library traits and trait objects. + +
+ +After looking at the exercises, you can look at the [solutions] provided. + +[solutions]: solutions-morning.md + +
diff --git a/src/exercises/day-4/afternoon.md b/src/exercises/day-4/afternoon.md index 6d73a09e..21ada64c 100644 --- a/src/exercises/day-4/afternoon.md +++ b/src/exercises/day-4/afternoon.md @@ -6,3 +6,10 @@ group up and do this together. Some suggestions: * Call your AIDL service with a client written in Rust. * Move a function from your project to Rust and call it. + +
+ +No solution is provided here since this is open-ended: it relies on someone in +the class having a piece of code which you can turn in to Rust on the fly. + +
diff --git a/src/exercises/day-4/morning.md b/src/exercises/day-4/morning.md index e9b65a01..039f1056 100644 --- a/src/exercises/day-4/morning.md +++ b/src/exercises/day-4/morning.md @@ -6,3 +6,11 @@ Let us practice our new concurrency skills with * Multi-threaded link checker: a larger project where you'll use Cargo to download dependencies and then check links in parallel. + +
+ +After looking at the exercises, you can look at the [solutions] provided. + +[solutions]: solutions-morning.md + +