~/talk

Component Design Patterns

Talkat Vue.js Live 2023 · 2023-05-12..05-15· [vue]
slides:none on file

Shows concrete refactors for conditional rendering: extract each v-if branch into separate components like ArticleCollapsed and ArticleExpanded, or push the v-for and the branch logic down into a single child component (v-if pushed to child). Demonstrates using NuxtLink and class toggles, then finds a real bug — a negated v-show left behind — proving the combined component becomes harder to reason about. Argues that removing duplicated characters can hide distinct intent, so sometimes separate simpler components win.

AI-written summary · about

  1. 0:00Intro
  2. 1:00When do we create new components?
  3. 1:22How do we do it well?
  4. 2:19Conditionals with v-if
  5. 6:14When branches are very similar
  6. 8:26When not to create a new component
  7. 11:14Courses
~/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.