~/talk

Codecademy's approach to component communication

Talkat React.js Conf 2015 · on Thursday, 2015-01-29· [react, frontend-architecture]
slides:none on file

Codecademy rebuilds its entire learning environment in React and replaces callback soup with a small meta-programmed system of adapters that listen for broadcast events run tests call backend services and call setState directly on major components the adapter factory is a one-liner and the core fits in 120 lines of code the approach handles many mixed component layouts (editor browser terminal lessons) scales across dozens of courses and avoids Stores initially while remaining easy to evolve toward Flux patterns later

AI-written summary · about

  1. 0:00Introduction
  2. 1:02Context
  3. 2:24Why React
  4. 4:01Why not Flux
  5. 5:26Why not callbacks
  6. 6:35Basic communication
  7. 6:47Adapters
  8. 9:00Dispatcher
  9. 9:10Oneliner
  10. 10:00Component adapter
  11. 10:31Communication needs
  12. 10:50Mixins
  13. 11:35Vending system
  14. 12:37Does it work
  15. 13:34Our communication needs
  16. 14:27We can approve everything
  17. 15:18Flux
  18. 15:59Data consistency
  19. 16:43Using Flux
  20. 19:00Data flow patterns
  21. 20:28Name spacing
~/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.