DEV Community

Discussion on: Composing Functions in JavaScript

Collapse
 
johnkazer profile image
John Kazer

What I really like about the composition concept (and functional programming more generally) is that it focuses your mind on the function and logic of what you're trying to do, rather than complicated procedural structures to make it happen.
It can be a bit weird to make the change to a different way of thinking - you might feel an initial loss of 'connection' to the code because the "how" of a procedure no longer really matters - but quickly it becomes liberating.