3 ms·
Well, you can write code a lot like this in JavaScript using a library like Ramda, and get a lot of the benefits. But then everyone that you on-board to that p
by adamkl 6y ago
Well, you can write code a lot like this in JavaScript using a library like Ramda, and get a lot of the benefits.
But then everyone that you on-board to that project has to be up to speed with how the code is being written and why.
With Clojure, that understanding is table-stakes.
So in that respect, the conclusion does write itself.
- onetom 6y agoI've actually tried that: https://github.com/enumatech/sprites/blob/master/lib/__tests__/sprites-tests.js#L77-L82 https://github.com/enumatech/sprites/blob/master/lib/__tests... reads quite like Clojure, but looks foreign to JavaScript programmers... I even made extensions to Ramda, so you can thread a mixture of async and non-async code with it: https://github.com/enumatech/sprites/blob/master/lib/fp.js#L51-L54 https://github.com/enumatech/sprites/blob/master/lib/fp.js#L... At the end the friction was just annoying and no one else really understood the greatness of this approach, since they didn't know Clojure...