~/talk

How dependency injection rescued my app from the abyss

Talkat Vue.js Nation 2025 · 2025-01-29..01-30· [frontend-architecture, vue]
slides:none on file

Migrates a tightly coupled Firebase→Supabase codebase by extracting a database interface and wrapping providers in a Nuxt plugin so composables receive their DB via injection, not creation. Implements concrete drivers (Supabase, Firebase, in-memory driver) behind that interface, switches drivers via runtimeConfig, and shows tests that mount components with a real in-memory DB instead of mocking internals, enabling safer migrations and focused business-logic tests.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Tightly coupled legacy app
  3. 4:15Mocking dependency pitfalls
  4. 8:49Dependency injection solution
  5. 13:07Tight coupling vs dependency injection
  6. 16:17DI with Next.js plugins
  7. 19:06Decoupling business logic
  8. 22:39Recap and key takeaways
  9. 23:44Q&A
~/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.