Ramda JS Tutorial – Part 20 (composeP, pipeP)

preview_player
Показать описание
How to compose promises with Ramda in JavaScript.

Let's understand all the functions of the JavaScript library Ramda JS and learn a lot about functional programming as we go along.

⭐️ Support the channel on Patreon:

👾 In this video:
R.composeP (right-to-left composition of promise-returning functions)
R.pipeP (left-to-right composition of promise-returning functions)

🖥 Full playlist:
Рекомендации по теме
Комментарии
Автор

You can replace 'R.compose(promisify, author)' with 'author' or just 'R.prop('author')' as pipeP already wraps each function in a promise. On a side note, thanks for this incredible series 👍.

kimsargo
Автор

I find your tutorials very useful. You should stop apologising in your videos (it can throw novices off and give them the impression that you're not as good as you obviously are) and roll with the exploration. Many find the exploration part just as useful as the "point" of the tutorial ;)

loganpowell
Автор

I find it funny that you say the usage of "then" is trivial :D
I agree and so do the ramda authors.

Not long ago they considered deprecating composeP and pipeP because the entire team prefers the "thenable" interface to coding rather than the composeP and pipeP counter part.

I believe this is still in consideration ( deprecating these two ) for future versions, though I am not sure.

In programming often the best solution to any problem is the simplest one. I guess this is why the "thenable" interface gained ground and is considered by ramda authors the better way to go.

PS: I am loving your videos, keep them going! I was scared for a little while when you posted your snake videos ( has he decided to quit on the ramda series? ) but I am happy that was not the case!

TheFlamePhoenix
welcome to shbcf.ru