~/talk

Trials, traits, and tribulations

Talkat EuroRust 2022 · 2022-10-13..10-14· [rust]
slides:none on file

Refactors a sprawling handler of roughly hundreds of lines into composable pieces and shows concrete wins: replaces repeated unwraps with the ? operator, wraps primitives as small domain types, implements Default/From/Into and traits, and models execution with a strategy pattern. Uses Rust plus V8 bindings (Google crate) inside Dynatrace’s JS runtime. Result is fewer panics, clearer intent, easier unit testing and contributor onboarding — a working refactor that reduces repetition and surfaces real error boundaries.

AI-written summary · about

  1. 0:00Rust Linz meetup intro
  2. 1:43JavaScript runtime in Rust
  3. 3:49Code evolution in Rust
  4. 5:55Refactoring event handler
  5. 8:21Error handling with question marks
  6. 11:53Default traits for cleaner code
  7. 14:18Custom types for domain
  8. 17:05Abstracting headers with errors
  9. 19:36Reducing nested options
  10. 22:49Strategy pattern in Rust
  11. 26:03Refactored event handler explained
  12. 27:27Refactoring benefits
  13. 29:11Key takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.