News for hackers. Stuff that matters.
Re:Building a Startup on Clojure by georgeoliver on Tuesday October 04, 2022 @02:54PM (#33084993)
It was interesting to me the author seems to use 'old-school' Clojure, for lack of a better phrase, with lein as the build tool, etc., rather than more recent tools/stacks; I don't use Clojure myself, is my impression off?
Re:Building a Startup on Clojure by jwr on Tuesday October 04, 2022 @03:11PM (#33085251)
Something being "more recent" doesn't necessarily make it better :-)

I use leiningen, too. I tried other approaches, but had trouble getting them to do everything that I need (for example, AOT compilation of the entire code that goes into the final .jar), and I couldn't really see any massive advantages.

Re:Building a Startup on Clojure by synthc on Tuesday October 04, 2022 @05:57PM (#33087623)
deps is more flexible, but I you just want to run a repl, build and deploy code then lein still works fine.

I usually default to leiningen: I can't be arsed to spend time configuring deps to do what lein does out of the box. (For example: building an uberjar)

Re:Building a Startup on Clojure by mulberrybush on Wednesday October 05, 2022 @02:14AM (#33091914)
I was lost when I moved to deps from lein, but just forking and cloning https://github.com/practicalli/clojure-deps-edn as $HOME/.clojure solved the problem - this base deps.edn contained all the aliases I needed - creating a new project, searching and adding dependencies, hooking up data inspectors like portal or reveal, testing, code coverage, benchmarking, building uberjar etc. Moving to deps also introduced me to polylith [1], which has been very useful for building large multi-component projects

[1] https://polylith.gitbook.io/polylith/

Re:Building a Startup on Clojure by synthc on Wednesday October 05, 2022 @07:38AM (#33094069)
To me it is kind off crazy when a build tools needs some 3rd party config library to make it usable.