r/Clojurescript • u/_woj_ • May 09 '20
Debate: Well-Written Node JS is Simpler and Easier [To Read, Understand, And Update] Than Well-Written ClojureScript
0
Upvotes
r/Clojurescript • u/_woj_ • May 09 '20
4
u/goldenfolding May 10 '20 edited May 10 '20
I can't agree. I used to like JS for simplicity, but that's because I was comparing it to Java. It makes me sad to go back to JS from CLJS. The tools in JavaScript are much more primitive than what is available in Clojure, and that makes it harder to express yourself in a concise and clear way.
Just compare channels to promises or async/await.
2
u/_woj_ May 10 '20
Having to do "js->clj" and then "clj->js" back is super annoying and shouldn't even be necessary IMO.
2
u/[deleted] May 09 '20
Disclaimer: I've been a long time Java (and C, C++, ...) programmer who really liked and felt at home in Typescript. This and not really being able to program in non typed programming languages made me try Clojure to force myself to get into another paradigm. Played a bit, built a couple of apps, etc. I'm nor proficient, but I get the paradigm.
It's been tough and I'm still not as productive as in Java & friends. Really love some things (immutability, live reloading of code, using the same concepts and functions for everything, ...) , miss a lot other things that don't match this paradigm (trivially defining interfaces to abstract details away, think in one thing at a time and let the compiler to catch the trivial errors. Also dependency injection).
Well, even having mixed feelings about Clojure vs. Java/Kotlin I must say that I'm soooo much in love with ClojureScript with respect to fighting with the horror of JS. Even with Typescript, the oddities of the platform come to chase you all the time. Programming is fine, but getting things 100% right is horrible.
11
u/orestis May 09 '20
We are waiting for the first statement :)
1
u/_woj_ May 11 '20
The need for compilation of cljs to js every time really slows down development for me.
-2
u/_woj_ May 09 '20
Everything in ClojureScript basically calls JavaScript but adds another layer of complexity on top (in syntax, dependencies, build, everything...)