From ee953f00caebf0bf5ce60cb39cd4d698117151ed Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Tue, 20 Jan 2026 14:42:45 -0600 Subject: [PATCH] talk: finish pres and yt script --- .../functional_options_pattern_in_go/index.md | 1 + slides/yours_mine_ours/index.md | 263 ++++++++++++++++++ slides/yours_mine_ours/script.md | 111 ++++++++ 3 files changed, 375 insertions(+) create mode 100644 slides/yours_mine_ours/index.md create mode 100644 slides/yours_mine_ours/script.md diff --git a/slides/functional_options_pattern_in_go/index.md b/slides/functional_options_pattern_in_go/index.md index e997140..f1bc68b 100644 --- a/slides/functional_options_pattern_in_go/index.md +++ b/slides/functional_options_pattern_in_go/index.md @@ -1,4 +1,5 @@ --- +title: A Trick for Designing Friendly APIs in Go theme: default layout: center class: text-center diff --git a/slides/yours_mine_ours/index.md b/slides/yours_mine_ours/index.md new file mode 100644 index 0000000..dcbd648 --- /dev/null +++ b/slides/yours_mine_ours/index.md @@ -0,0 +1,263 @@ +--- +title: "Yours, Mine, Ours" +theme: default +layout: center +fonts: + sans: "CaskaydiaCove Nerd Font Mono" +--- + +# Yours, Mine, Ours + +Understanding ownership and borrowing in Rust + +--- +layout: center +--- + +# Think about a book + +Rust treats data a lot like a physical book. + +--- +layout: center +--- + +# Three rules to remember + +
owner_one is the owner.
+ owner_one transferred ownership to owner_two.
+ owner_one is invalid now.
+ owner is the owner.
+ borrower borrows from owner.
+ owner is the owner.
+ borrower mutably borrows from owner.
+