DEV Community

Discussion on: So you have a bunch of things to do. Why not build a pipeline?

Collapse
 
davidszabo97 profile image
Dávid Szabó

Hah, cool post mate! I love it!
Looks like functional programming though :D

This is a good way to think about a problem, you nailed it!

Collapse
 
krofdrakula profile image
Klemen Slavič

That's exactly what it is, mostly. All the functions used here work as pure functions, even though their insides might not be considered strictly pure, so I think it is considered a functional solution to the problem. 😉

The whole point of this exercise was to illustrate way of how composition trumps any kind of other code reuse, and how imperative code is actually quite hard to get a grasp of, especially if you revisit the code after a while.