~/talk

The Declarative Mindset

Talkat UtahJS Conf 2023 · on Friday, 2023-09-15· [frontend-architecture]
links:none on file
slides:none on file

Argues that declarative code is code where each thing is declared and controlled in one place, which cuts bugs and simplifies debugging; shows that React useState + event handlers produce MVC-style external control that caused Facebook’s infamous unseen-message bug and that collocating control fixes it. Demonstrates tools and tradeoffs: TanStack Query replaces verbose useEffect fetching, RxJS enables fully declarative async flows, and modern signals (Angular) converge primitives; presents a small library (State Adapt) and refactors that reduce lines and complexity.

AI-written summary · about

  1. 0:00Defining declarative code
  2. 1:32Declarative versus imperative
  3. 4:03History of React and MVC
  4. 6:38The dangers of external control
  5. 9:14Benefits of declarative code
  6. 10:42Challenges in modern frameworks
  7. 13:08Adopting a declarative mindset
~/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.