News for hackers. Stuff that matters.
Re:Building a Startup on Clojure by fredrikholm on Tuesday October 04, 2022 @01:50PM (#33084032)
Greenspun's tenth rule, adopted for 2022:

  > Any sufficiently complicated TypeScript or Java program contains an ad hoc,
  > informally-specified, bug-ridden, slow implementation of half of Clojure.
Once you grokk the approach and workflow Clojure takes in solving problems, the distance between having an idea and writing a rock solid implementation of that idea is the shortest I've experienced in my ~20 years of programming.

If you want to write succinct, transparent code whilst minimizing the future potential of introducing bugs, Clojure is as good as it gets.

Re:Building a Startup on Clojure by synthc on Tuesday October 04, 2022 @06:02PM (#33087685)
Cute, but i'll counter with this one:

> Any sufficiently complicated Clojure program contains an ad hoc, > informally-specified, bug-ridden, slow implementation of half of Spring.

Re:Building a Startup on Clojure by bcrosby95 on Tuesday October 04, 2022 @06:54PM (#33088257)
Ah, Spring - freeing Java developers from the horror of typing "new" since 2002.
Re:Building a Startup on Clojure by mypalmike on Tuesday October 04, 2022 @10:04PM (#33090158)
If you did a Spring tutorial, I can see that this might be the takeaway. For me, I was thrown at a large project with a couple of large Spring codebases, I concluded that it's about structuring your code around an object graph with independent, testable, loosely coupled components.
Re:Building a Startup on Clojure by bcrosby95 on Tuesday October 04, 2022 @11:05PM (#33090615)
I use both Spring and Java professionally. For a pretty long time now. I was being somewhat sarcastic.

I mostly use Spring because it's pretty widespread and I figure - why fight the current. But I still think the benefit is minor for most projects. And the existence of Spring Boot makes me chuckle a bit.

Re:Building a Startup on Clojure by mypalmike on Wednesday October 05, 2022 @01:58AM (#33091820)
I get you. I think it encourages a certain application structure that is at least recognizable across projects. There's a pretty big benefit to that, even if at the detail level it's just a way to avoid new.
Re:Building a Startup on Clojure by xapata on Tuesday October 04, 2022 @06:23PM (#33087924)
Including Spring itself?

Jokes aside, can't Clojure simply call whatever you want from the JVM?

Re:Building a Startup on Clojure by dekelpilli on Tuesday October 04, 2022 @08:18PM (#33089175)
Maybe theoretically true (I'm not sure about the extent of the completeness), but definitely not practically true when it comes to annotation-driven-development frameworks such as Spring.
Re:Building a Startup on Clojure by xapata on Tuesday October 04, 2022 @09:12PM (#33089725)
Ah. While objects have their uses, I think the Clojurist might prefer, well, closures. That's not to say one is better than the other, just that the Clojurist probably won't miss the style of the Spring framework.
Re:Building a Startup on Clojure by xapata on Tuesday October 04, 2022 @06:21PM (#33087909)
But it doesn't have reader macros!