News for hackers. Stuff that matters.
Re:Clojure is a product design tool (2015) by systems on Thursday June 22, 2023 @04:46PM (#36438715)
Currently whenever I think of Clojure I remember this post

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

Re:Clojure is a product design tool (2015) by Lyngbakr on Thursday June 22, 2023 @05:29PM (#36439289)
> How does someone who has never built a SPA before, let alone ever build a web application in Clojure/S suppose to get started?

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...

Re:Clojure is a product design tool (2015) by shaunxcode on Thursday June 22, 2023 @06:30PM (#36440060)
Aww yes the fiction of no friction: the funnel back to blub. The way is no way.
Re:Clojure is a product design tool (2015) by 147 on Thursday June 22, 2023 @06:43PM (#36440200)
I used to do Clojure professionally. I think the community’s disdain for frameworks really stunted Clojure’s adoption.

Currently, I’m learning Elixir and Phoenix.

Re:Clojure is a product design tool (2015) by jrvarela56 on Thursday June 22, 2023 @10:36PM (#36442147)
http://www.winestockwebdesign.com/Essays/Lisp_Curse.html

Everything is pretty easy to build, so everyone rolls out their half-baked libraries.

Re:Clojure is a product design tool (2015) by BaculumMeumEst on Thursday June 22, 2023 @07:53PM (#36440877)
As a hosted lisp, it doesn’t take much to keep Clojure usable. I don’t think it will be forgotten, but the ship has sailed on becoming mainstream.
Re:Clojure is a product design tool (2015) by ballpark on Friday June 23, 2023 @08:44AM (#36446073)
I'm not sure about that. Python was a good 20 years old when it became mainstream
Re:Clojure is a product design tool (2015) by tmountain on Thursday June 22, 2023 @08:30PM (#36441165)
Lisps have an uncanny way of staying alive for a long time. I think Clojure will continue to have a dedicated community around it for the foreseeable future, but it will always be niche.
Re:Clojure is a product design tool (2015) by phforms on Thursday June 22, 2023 @09:09PM (#36441478)
re-frame has a beautiful introduction that made the concepts crystal clear to me as someone who never used a state-management framework before: https://day8.github.io/re-frame/re-frame/ The API documentation lists the most commonly and rarely used parts before going into detail and there are many usage examples.

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!).

Re:Clojure is a product design tool (2015) by SirensOfTitan on Thursday June 22, 2023 @09:45PM (#36441800)
Check out uix too: https://github.com/pitch-io/uix

…it’s a reagent alternative for modern react.

Re:Clojure is a product design tool (2015) by zilti on Thursday June 22, 2023 @09:14PM (#36441531)
Sorry, but if you've never built even as much as a "web application" (aka website), maybe learn the goddamn basics first before you try to completely overengineer a simple page as an SPA.
Re:Clojure is a product design tool (2015) by SirensOfTitan on Thursday June 22, 2023 @09:52PM (#36441866)
Clojure seems like it’s doing just fine: plenty of startups like Logseq and Penpot are built on Clojure.

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.