~/talk

Bad Practices, how you should NOT do in Angular world

Talkat DevFest Gorky 2019 · 2019-11-15..11-16· [angular]
slides:none on file

Shows concrete anti-patterns and fixes: a one-second timer demo proves naive subscribe causes memory leaks and duplicated work, fixed by storing Subscription and unsubscribing on destroy or using takeUntil with a component Subject, or by using async pipe but noting it triggers change detection and can double requests when multiple bindings exist. Explains RxJS differences between share() / publish + refCount / shareReplay, warns about shareReplay memory leaks without refCount, advocates catchError defaults, TypeScript interfaces to catch rename bugs, and supplies a runnable GitHub repo and slides.

AI-written summary · about

  1. 0:00Introduction
  2. 2:05Learning new things
  3. 3:31Unstructured code mistakes
  4. 5:18TypeScript any problems
  5. 7:44Memory leaks from subscriptions
  6. 10:14Take operator solution
  7. 12:44TakeUntil approach
  8. 14:06ngx-take-until-destroy library
  9. 15:13Async pipe problems
  10. 17:19Multiple async pipes
  11. 18:24Share for subscription splitting
  12. 20:55Share and multicasting
  13. 23:44Share vs publish
  14. 25:29Replay operator features
  15. 26:55Error handling in subscriptions
  16. 28:21Linter for subscriptions
  17. 29:48Template function calls problems
  18. 31:56Optimization with pipes
  19. 33:21Summary and Q&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.