4 ms·
ClojureScript along with any of the various libraries for generating JS, HTML and CSS can get you to a single syntax. Granted, you still have to understand all
by kgwxd 8y ago
ClojureScript along with any of the various libraries for generating JS, HTML and CSS can get you to a single syntax. Granted, you still have to understand all those things on some level with the addition of learning ClojureScript and it's ecosystem.
For me, ClojureScript/Reagent [1] has been a dream come true. It marries JS, HTML and React very, very well. I still use normal CSS because I haven't hit a pain point with it yet, but there's some nice CSS tools that use EDN syntax and get rid of many CSS pain points. So far, I've only been able to use it for personal projects but they're not all small. I work with normal React at work on large projects and I've yet to run into anything I thought would be harder to do if were done with Reagent.
[1] https://reagent-project.github.io/ https://reagent-project.github.io/
- pier25 8y agoAll those brackets and parentheses reminded me of the Lisp panel in the "Git the princess" comic. https://toggl.com/programming-princess/ https://toggl.com/programming-princess/ I will take a more serious look at ClojureScript, thanks for the suggestion.
- kgwxd 8y agoI promise, they become practically invisible at some point :) And, usually if you count them compared to similar code in a c-like language, using data/markup from any popular format (xml, json, html), they'll be very close. Definitely far less when it comes to HTML vs. Hiccup. I jump around between C#, JS, HTML, XML, JSON, JSX, CSS, SQL and Clojure all day long. I have to do the non-Clojure stuff a lot more and have been doing them decades longer, after just a few weeks of getting used to it, Clojure would be my first choice.