You might want to read up on PAW Patrol
Your 3 intrepid hosts try to explain JS concepts (bind/apply, thunks, and ReasonML) to each other as if we’re five year olds. Hilarity and/or confusion ensues. During Pro Tip Time, Suz tells a story of woe, KBall motivates himself, and Jerod tries to keep you in the flow. Finally, we point our project spotlight at Fly CDN and talk edge applications and IoT.
Discussion
Sign in or Join to comment or subscribe
Christopher Dierkens
2019-01-25T17:42:36Z ago
Hey all! Just wanted to share that thunks have more history than just what we know in redux-thunk. Traditionally, “Thunks are primarily used to delay a calculation until its result is needed, or to insert operations at the beginning or end of the other subroutine.” So it can be thought of as “delaying” the reducer call in order to insert other operations before calculating the new state.
Jerod Santo
Bennington, Nebraska
Jerod co-hosts The Changelog, crashes JS Party & takes out the trash (his old code) once in awhile.
2019-01-27T14:27:29Z ago
Awesome, thanks for sharing that! I had no idea it was a generic CS concept.
Still no explanation of the name on Wikipedia, unfortunately. We may have to keep digging…
Tom Bremer
2019-01-28T20:19:45Z ago
One great note (and possibly it’s coolest feature) about
bind
that was missed in KBall’s (amazing and hilarious) explanation was that it can be leveraged to partially apply arguments.Kevin Ball
2019-02-11T20:15:50Z ago
100%! I debated going into this but felt like my story had already gotten convoluted enough. :) But partial application is a HUGELY powerful use of bind.