Refactor a Promise Chain to Function Composition using Ramda

preview_player
Показать описание

Promise chains can be a powerful way to handle a series of transformations to the results of an async call. In some cases, additional promises are required along the way. In cases where there are no new promises, function composition can reduce the number of dot chained thens you need. In this lesson, we'll look at how to take a promise chain, and reduce it down with function composition.
Рекомендации по теме
Комментарии
Автор

I've watched a lot of videos about Ramda, and now that I'm starting to understand the concepts I found this video very informative and it's great to finally see a real life example on how you would use Ramda to improve your code, thank you :)

wazazaby
Автор

This is a really good demonstration! I switched to using Ramda a few months ago and I still think it's awesome!

tysoncadenhead
Автор

Ramda is so sleek, I'm gonna start using it along with RxJS. Thanks for the video!

sai
Автор

Short and to the point . I like this compact and to the point style of teaching...!!! THanks Andrew!!

vishalaggarwal
Автор

use async/await to get rid of the thens ^^

MereddynYT
Автор

Can you please post the full URLs used in the examples? Thank you!

kostas_x
Автор

This style is great for the happy flow but what about error handling?

marccawood
Автор

Really good example of some useful functional programming in Js, thank you! Anyway, when dealing with side effects (fetch, dom etc..) you should perhaps consider using monads which help in handling error cases, async operations and so on while still being compositional

kettlebellsporttraining