https://www.reddit.com/r/Clojure/comments/a79aln/clojure_web...
As far as I know the situation did not improve, I had high hopes for Clojure, but i think it will eventually be as forgotten as Groovy
https://www.reddit.com/r/Clojure/comments/a79aln/clojure_web...
As far as I know the situation did not improve, I had high hopes for Clojure, but i think it will eventually be as forgotten as Groovy
I think it’s just naturally limited because kids aren’t learning lisps in college anymore, but Python or Java instead. It takes a little effort to be able to read and work with lisps if you haven’t ever worked with one before. Clojure also adds functional paradigms on top, which folks are doubly not as primed with early in their careers.
In my opinion, clojure is a great language for experienced teams, though it’ll never be python popular. Re-frame will handle the job in OP fairly well too.
Reagent has a nice intro tutorial (classic todo-app): http://reagent-project.github.io and many other helpful tutorials and resources for beginners: https://cljdoc.org/d/reagent/reagent/1.2.0/doc/documentation...
However, since Reagent is still stuck with class-components for more complex behavior and relies on Hiccup, which is nice but has a performance cost compared to pure React, I am unsure about its future. Like some others in the Clojure community, I have moved to thin React wrappers like Helix and use Refx to integrate those with re-frame. It may be a bit confusing right now for beginners since there is no “golden path”.
Also, unfortunately, many smaller libraries are poorly documented and it seems like it is expected from the developer to dig into the source code to find out what’s going on.
What I found the most difficult as a beginner was how to setup a project in ClojureScript in the first place, like all the configuration in shadow-cljs, how it interacts with deps.edn, how it integrates with npm, the REPL, etc. But dev/build config has always been a weak spot for me, so it might be just that.
Overall, I still very much enjoy working with Clojure(Script), more than in any other language. Anyone who likes Lisps and functional programming should give it a try (and be sure to watch Rich Hickeys amazing talks!).
…it’s a reagent alternative for modern react.
I think that Clojure for the Brave and True[0] is a good place to start for Clojure in general, while Web Development with Clojure: Build Large, Maintainable Web Applications Interactively[1] covers the web app side of things.
[0] https://www.braveclojure.com/
[1] https://pragprog.com/titles/dswdcloj3/web-development-with-c...
Currently, I’m learning Elixir and Phoenix.
Everything is pretty easy to build, so everyone rolls out their half-baked libraries.