7 ms·
Agree so much with this comment. Downside is that after using a proper functional language (clojure[script]) you end up wanting some really basic things such a
by dlau1 11y ago
Agree so much with this comment.
Downside is that after using a proper functional language (clojure[script]) you end up wanting some really basic things such as immutable core data structures.
I feel like if you start from scratch on a javascript project, it's possible to program in a functional manner. I've found it really tough to introduce functional concepts to an already full stack javascript codebase.
BTW: I'd recommend ramda [1] for those interested in functional javascript programming. The auto-currying makes it way more powerful than underscore/lodash in terms of encouraging pure reusable functions.
[1]: https://github.com/ramda/ramda https://github.com/ramda/ramda
- jdd 11y agoThere's a flavor of lodash with auto-curried iteratee-first data-last methods too. See lodash-fp – https://www.npmjs.com/package/lodash-fp https://www.npmjs.com/package/lodash-fp