Hacker News new | ask | show | jobs
by Scarbutt 3943 days ago
In the expressjs example, I wonder how practical is to do all that interop instead of just using plain JS? I mean, is awesome that Clojurescript can leverage all those JS libs, but its worth writing lots of interop just to use Clojurescript? Of course, as Clojurescript libraries grow this will not be an issue, but it is nowhere close to JS for web dev.

For me, a more practical approach for server side would be to use Clojure instead of Clojurescript, the problem is Clojure does not have the rich ecosystem of web libraries as nodejs does.

2 comments

If you're starting from from scratch it looks really awesome. No callback hell and in believable tooling. Watch these talks to see what I mean about tooling:

Few minutes https://youtu.be/KZjFVdU8VLI

Longer http://www.infoq.com/presentations/clojurescript-web-ios

> In the expressjs example, I wonder how practical is to do all that interop instead of just using plain JS?

It depends. Interop in clojurescript isn't any more difficult than using plain JS but if your code is very interop heavy I don't think you gain a lot by using Clojurescript.

For a web application though interop code is going to be a tiny fraction of the overall code.