~/talk

The Opposite of Spaghetti Code: Building for Understanding

Talkat RustConf 2018 · on Friday, 2018-08-17· [rust, frontend-architecture]
slides:none on file

A concrete cache is built and evolved: start with a HashMap, add a struct with methods, then tighten ownership and privacy into modules and privacy so the cache controls its own invariants. Trait-based interfaces provide dependency injection and traits as type-level privacy, letting a separate cache-metrics module compute hits and misses without knowing implementation details. The demo shows error-message improvements, uses generics, phantom data and a builder, and argues Rust’s zero-cost abstractions enforce separation while keeping performance, ending with an any-cache composition that works.

AI-written summary · about

  1. 0:00Start
  2. 13:47Error Messages
  3. 25:49Implementation Delegation Pattern
  4. 28:58What It Takes To Build an Ecosystem
~/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.