Live data from Hacker News

Clojure Turns 15 panel discussion video

youtube.com

11–20 of 226 posts

Re: Clojure Turns 15 panel discussion video

#11
post #8

I tried Clojure, but when i look for a good ORM, what i see is a paid library.

In Clojure ORMs aren't really that popular considering most Clojurists just use the built in datatypes (e.g. maps) to represent data. There are no classes as such (unless you use Java interop). If you need a query builder the honeysql library is really nice.

Re: Clojure Turns 15 panel discussion video

#12
post #3

Earlier quoted context omitted.

I like Clojure, but unfortunately for web development, there isn't a great stack and for data science/ML/AI (which is a great fit for clojure), python dominates the market. What is the niche for Clojure, or why should keep using it in 2023? P.S: I like it a lot, but either I do golang or ror for web dev, or python/pytorch for data sciences/AI stuff, C# for game development. I don't think i can get more productive wit…

It is actually a great choice for unopinionated server-side web development. Frontend development is simply awesome in ClojureScript. Give me Reagent + Shadow CLJS over plain React (or React Native) any day.

For you and anyone else with experience, is that the most common/battle-tested cljs stack?

What about servers-side, any equivalent Django or FastAPI?

Re: Clojure Turns 15 panel discussion video

#13

I love Clojure the language but I’ve never seen a more fragmented ecosystem. There seems to be a pattern in the language of “a problem emerges > a community solution gains traction > Cognitect develops their own solution but its weird and undocumented”, like deps.edn over leiningen, spec over malli, pedestal over ring, etc. Many prominent clojurists recommend deps.edn over leiningen and socket repl over nrepl, but I’…

> deps.edn

Deps is well documented.

The issue I personally found is that I needed to look at a bunch of OS project's deps.edn to see how people commonly structure things. Other than that it is a simple tool.

> socket repl over nrepl

I personally use Calva (VSCode) which just starts an nrepl based on deps.edn. When writing babashka scripts I start the repl manually and connect to it. Very pleasant experience so far.

> Spec seems kind of weird and not well thought out either.

I didn't like it at first, but once I got that everything is bottom up I had an AHA moment. Function specs and instrumentation are very powerful. Conform is basically a parser, which can give you a lot of leverage.

What bothers me about spec is that it is still not released though.

Re: Clojure Turns 15 panel discussion video

#14

I love Clojure the language but I’ve never seen a more fragmented ecosystem. There seems to be a pattern in the language of “a problem emerges > a community solution gains traction > Cognitect develops their own solution but its weird and undocumented”, like deps.edn over leiningen, spec over malli, pedestal over ring, etc. Many prominent clojurists recommend deps.edn over leiningen and socket repl over nrepl, but I’…

I have only used Clojure for side/hobby development, which admittedly makes this a shallow observation.

I've found working with Clojure to be extremely pleasant/joyous and when I've had the need to bring in someone else's code, it's been an overwhelmingly good experience, even if the library is 5 years old and untouched for the last 4. (Find a random node package that's last changed 4 years ago and it might as well be toxic waste. Find a clj lib in that condition and it's probably going to work smoothly.)

I do agree the prevalence of lots of examples of leiningen and fewer examples using tools.deps/deps.edn and clojure cli makes it hard for me, as a beginner, to know the "right" patterns to use.

Re: Clojure Turns 15 panel discussion video

#15

Earlier quoted context omitted.

It is actually a great choice for unopinionated server-side web development. Frontend development is simply awesome in ClojureScript. Give me Reagent + Shadow CLJS over plain React (or React Native) any day.

>Frontend development is simply awesome in ClojureScript Is that still tied to that google closure abomination ? I've not been in CLJ ecosystem for >5 years now but last time I used CLJS I remember they went all in on google Closure and it was a major PITA to use the rest of JS ecosystem because of it. Every time I use React I think how it would be great to use Clojure for that, but last time I tried the tooling over…

> Is that still tied to that google closure abomination ? I've not been in CLJ ecosystem for >5 years now but last time I used CLJS I remember they went all in on google Closure and it was a major PITA to use the rest of JS ecosystem because of it.

This has been solved now--there's a blessed CLJS solution[1][2] as well as a third-party compiler with NPM support[3] which many prefer.

[1]: https://clojurescript.org/news/2017-07-12-clojurescript-is-n...

[2]: https://cljs.github.io/api/compiler-options/npm-deps

[3]: https://shadow-cljs.github.io/docs/UsersGuide.html#npm

Re: Clojure Turns 15 panel discussion video

#16

Earlier quoted context omitted.

It is actually a great choice for unopinionated server-side web development. Frontend development is simply awesome in ClojureScript. Give me Reagent + Shadow CLJS over plain React (or React Native) any day.

>Frontend development is simply awesome in ClojureScript Is that still tied to that google closure abomination ? I've not been in CLJ ecosystem for >5 years now but last time I used CLJS I remember they went all in on google Closure and it was a major PITA to use the rest of JS ecosystem because of it. Every time I use React I think how it would be great to use Clojure for that, but last time I tried the tooling over…

Shadow-cljs makes everything very easy these days.

Re: Clojure Turns 15 panel discussion video

#17
post #3

Earlier quoted context omitted.

I like Clojure, but unfortunately for web development, there isn't a great stack and for data science/ML/AI (which is a great fit for clojure), python dominates the market. What is the niche for Clojure, or why should keep using it in 2023? P.S: I like it a lot, but either I do golang or ror for web dev, or python/pytorch for data sciences/AI stuff, C# for game development. I don't think i can get more productive wit…

It is actually a great choice for unopinionated server-side web development. Frontend development is simply awesome in ClojureScript. Give me Reagent + Shadow CLJS over plain React (or React Native) any day.

Yes, ClojureScript is definitely on my learning list, we however decided to avoid one more transpilation tool, and accepted the fact that we have to write typescript.

> Give me Reagent + Shadow CLJS over plain React (or React Native) any day.

So that is for heavy js based applications, not for something light like rails + stimulus.js, right?

Re: Clojure Turns 15 panel discussion video

#19
post #9
post #3

Earlier quoted context omitted.

I like Clojure, but unfortunately for web development, there isn't a great stack and for data science/ML/AI (which is a great fit for clojure), python dominates the market. What is the niche for Clojure, or why should keep using it in 2023? P.S: I like it a lot, but either I do golang or ror for web dev, or python/pytorch for data sciences/AI stuff, C# for game development. I don't think i can get more productive wit…

> I like Clojure, but unfortunately for web development, there isn't a great stack What do you feel is missing? Certainly there are options (something as frameworky as Fulcro, something as barebones as a React wrapper like Reagent), so there must be some itch you can't scratch?

wow, first time seeing Fulcro, and it has a great documentation https://book.fulcrologic.com/, definitely will play with that, thanks!

Re: Clojure Turns 15 panel discussion video

#20
I've started learning Clojure about a year ago, couldn't say it was easy (the fault might be with me and not Clojure)

Clojure has a lot a faults (just look at some of the comments here) BUT and it's a BIG BUT for me...

Clojure is SUPER FUN :)

Over the years(15+), I've been coding in PHP (suck it haters), Go, Rust,Java,Python AngularJS+, Svelte and I can honestly say for me, nothing is more fun that coding in Clojure.

It's fun testing a function in "realtime" by just "eval" it on the spot. I don't even code "in the REPL" I just use Calva and eval inline in VSCode

Maybe it's cause it's my new toy but it really does bring back the "joy of coding" I've been missing in the other languages.

*Learning Clojure became much more easier, once I told myself "It's Maps All The Way Down :D" Sure there are stuff like atoms that make it possible to code around the "immutability" but that is like using a cheat-code to go back to the old ways. Yes there are many times when mutable-data-structures are required, but while learning, don't grab for them as a first solution !

Anywhoo YMMV but once you get over the warts (many there are), much fun and insights awaits :)

Post reply on HN