$30 off During Our Annual Pro Sale. View Details »

Thinking Thunks

Thinking Thunks

What are thunks and how do they help us express concurrency in JavaScript?

Video: https://www.youtube.com/watch?v=mnRCmzPDPO0

Kyle Simpson
PRO

April 11, 2018
Tweet

More Decks by Kyle Simpson

Other Decks in Programming

Transcript

  1. THINKING THUNKS KYLE SIMPSON GETIFY@GMAIL.COM

  2. CALLBACKS

  3. CALLBACK HELL

  4. ALSO: CALLBACK HELL

  5. CAN'T BE TRUSTED

  6. NO COORDINATION

  7. NO MEMORY

  8. None
  9. THUNKS

  10. None
  11. LAZY

  12. None
  13. None
  14. EAGER

  15. None
  16. THUNK: TIME INDEPENDENT VALUE

  17. THUNK: PROMISE WITHOUT THE API

  18. None
  19. THINKING THUNKS KYLE SIMPSON GETIFY@GMAIL.COM THANKS!!!!