~/talk

Node.js Middleware — never again!

TalkinRussianat JavaScript fwdays'20 autumn online · 2020-09-11..09-26· [javascript, frontend-architecture]
links:none on file
slides:none on file

Examines problems caused by using Node.js middleware—memory leaks, crashes, hard-to-debug errors, race conditions, mixin pollution and fat controllers—and argues how to remove or limit middleware. Covers layered architecture, patterns and principles, what middleware (if anything) to keep, alternatives in frameworks like Nest (interceptors), TypeScript, decorators, ORMs (Prisma), testing strategies and practical steps to refactor legacy Node.js projects away from middleware antipatterns.

AI-written summary · about

  1. 0:00Start
  2. 2:40What is middleware?
  3. 5:26Middleware issues
  4. 22:36Race condition
  5. 24:26Mixin pollution
  6. 29:50Fat controller
  7. 41:40Middleware provokes antipatterns
  8. 49:28Layered architecture
  9. 56:20Patterns and principles
  10. 1:04:05Key points and useful links
  11. 1:11:36What can be left in middleware?
  12. 1:12:40Why did middleware become popular?
  13. 1:18:20Middleware interceptor in Nest
  14. 1:20:08Is Typescript always necessary?
  15. 1:21:02Decorators
  16. 1:23:07When do you need ORM?
  17. 1:25:27Why choose Node.js?
  18. 1:29:50One middleware for refresh token or functions in every controller?
  19. 1:32:20Prisma
  20. 1:36:16Tests for abstraction words, unit tests
  21. 1:38:54Framework
  22. 1:40:40How to fix legacy code in a project?
~/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.