This reminds me of a blog post (about currying specifically) from an ardent FP proponent that I picked up on HN not long ago, where he back-pedals (his own word) from a much-shared pro-currying in JS article:<p><a href="https://hughfdjackson.com/javascript/does-curry-help/?utm_source=ESnextNews.com&utm_medium=Weekly%20Newsletter&utm_campaign=Week%206" rel="nofollow">https://hughfdjackson.com/javascript/does-curry-help/?utm_so...</a><p>On a personal note, immutability is fine, but doing it in Javascript comes at a cost and it always feels like I'm fighting the system (have to deep-copy objects and possibly even `Object.freeze()` objects, space-saving write-on-copy needs to be done by myself, no pattern-matching). So I only do it when I'm sure it is useful. Similar with some other FP concepts that feel natural in "real" FP languages.<p>Also, very few of the functions that cause me any headaches benefit from being pure (in a way that would help me), because my problem is with the consistency and state of the data in (shared) storage. I rarely have issues within the app itself, so "purity" there does not help me all that much in my very I/O heavy applications. It seems much more suited for data processing.
The functional boss micromanages you too, just differently than the imperative boss. The functional boss depicted in the article should really be called the declarative boss.<p>Notice how strange his or her requests are:<p>"Schedule a meeting whenever you feel it is necessary" - what if I feel that surfing facebook is more necessary?<p>"...after you get 3 sales leads by the end of the week" - what if I won't be able to get 3 leads by the end of the week? What is more important, getting 3 leads or getting something by the end of the week? I don't know. Maybe a Sufficiently Smart Employee will be able to figure it out, but he or she is not yet hired.<p>In the meantime the imperative boss gets a steady stream of leads. And the declarative boss goes out of business after some time.
> Imperative programming is a programming paradigm that uses a sequence of statements to reach a certain goal. It focuses on how to perform actions to achieve the expected result.<p>But, but, but... I live my life like that. I focus on the next action to achieve my goal.<p>The two examples remind me a bad TV shop advert starting with the black and white trash old way of doing things.<p>The problem with these articles is that they are often biased towards one side which is often FP, because impreative programming is not sexy.<p>I'm not saying that FP is bad or inferior :) It just has its places and I still have to read an article which clearly states good use cases for FP rather then selling it me as a religion.