Refactoring JavaScript with pipeline style programming

preview_player
Показать описание
Learn to refactor your JavaScript code by breaking it down into smaller functions that you can compose using what's called "pipeline style programming" where an input is piped through a series of functions.

My implementation of pipe that works with Promises:

Official Site for Ramda Library

Thinking in Ramda Guide:

Pipeline Operator Proposal:
Рекомендации по теме
Комментарии
Автор

Did you learn something new? What would you like to see next?

DevMastery
Автор

I found your channel and have been watching and rewatching everything you've posted. I looks like you've retired this project but thank you for what you have. As someone who is entry to mid level and hasn't seen much production code, these videos are extremely valuable and will help me level up. I'm a fan and I hope you start posting again!

LindseyandCaleb
Автор

man i have been in ur newsletter for years, ur the best, love what u r doing!

afiiiiiii
Автор

Hi there ! Unfortunately, I’m never able to make it to the live, but this show is in my weekly TODO list every week :) Already shared it on Twitter and I have been subscribed to your newsletter for a while, hope more people will come to learn. Thank you !

enzoferey
Автор

I'm writing my code in sort of imperative + FP but more FP using currying to have referential transparency and now I'm adapting the code to pipelines style and it looks really well, hell that operator will change my code style a lot, can't wait!.

nromancarcamo
Автор

Im a novice to programming and this was really easy to grasp thank you!!

ayoubhr
Автор

Hey man, thank you so much for this piece of tutorial. You're so awesome.

radvilardian
Автор

Very clear explanations, thank you.
I noticed you're using something that evaluates your javascript after each line (or keypress?). Is that just you debugging in the browser console?

fatphilg
Автор

I like this pipe method, it's kinda how mongo queries work. You could also have created a class for the process and chain the class methods together. Nice video btw, well explained!

BertoldSzekeres
Автор

Register dependency with IOC and resolve runtime

KrishnaList
Автор

Good stuff, keep it up!
Is that a Boston dialect btw?

marcusbrsp
Автор

Great explanation! One comment, if I'm not mistaking your custom pipe function wouldn't work if the promise returns a falsy value. Maybe a video that expands on this would be something to consider since this is a very interesting topic!

producdevity
Автор

11.09 can't we do it using method chaining?

DevangPatil
Автор

Aren't functions in general expensive? As in it would require far jump in assembly level instead of the regular stepwise flow to invoke and execute a function.

But then again, our systems have become significantly faster than when this was a concept to care about. Also it would be a performance vs quality trade off. But I would like to hear your opinion on this point.

thatchipmunksings
Автор

please make a video about. RabitMQ or Kafka in NodeJS

jacsurfing
Автор

Why don't you check situations when there is no string?

alexanderommm