~/talk

Stop Writing Your Routes

Talkat Vue.js Live 2023 · 2023-05-12..05-15· [typescript, developer-experience]
slides:none on file

Claims that routes no longer need to be written: a plugin generates typed routes from the filesystem so editors get auto-complete for route names and immediate TypeScript errors instead of runtime 404s. Implementation uses unplugin-vue-router to emit an auto-generated route d.ts compatible with Vite/Rollup/Webpack; an earlier heavy generic-based approach slowed dev servers past ~50 routes and was replaced by a simpler name→params map. Pages can also export data loaders that dedupe requests and support SSR.

AI-written summary · about

  1. 0:00Intro
  2. 0:42Designing API's is hard
  3. 1:52Errors are hard to make
  4. 2:17Avoid context switch
  5. 2:42Catter for different user experiences
  6. 4:13API Ergonomics
  7. 6:10Erasing an API
  8. 6:57Weird Ever-Changing API's
  9. 7:51Where different parts of the app come together
  10. 8:55Can routing be simplified?
  11. 10:05Reduce code repetition without compromising flexibility
  12. 11:15Typed routes
  13. 13:41Back to the basics
  14. 14:45Unplugin-Vue-Router
  15. 19:20Data Loading
  16. 22:35Summary
~/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.