> it’s a way of breaking down a complex function into smaller, simpler functions that can be composed together to achieve the same result.
And you could almost see it as analogous to the "fluent" pattern like:
GetObject()
.add(3)
.applyGradient()
.giveFish()
Etc.
On the side: I really hate the "make it less complex" PR comments because it's not complex, it's just hard to read, and that's usually because the reader doesn't know about them.I have one guy in our company who wants to unravel any list comprehension or map/generators functions (python) because he doesn't know anything except "for X in Y"