Fork me on GitHub
#clojure-austin
<
2022-08-03
>
Matthew DiLoreto21:08:36

Something that ight be interesting to this group is borkdudes new build tool neil https://blog.michielborkent.nl/new-clojure-project-quickstart.html I wonder who's using leiningen, and who's using deps?

jakebasile21:08:12

I've never found a compelling reason to switch from lein to deps

👍 1
staypufd21:08:13

That would be a good talk.

dpsutton21:08:13

oh man the switch to deps has been a godsend at wor

jakebasile21:08:15

I find deps a bit more confusing, but it might just be because everything uses lein and I've used it for years now. It does what it needs to do and gets out of the way, so I don't really have any pain points that deps could solve.

dpsutton21:08:49

also neil is outstanding. quick scaffolding is so easy with it

Matthew DiLoreto21:08:22

@U11BV7MTK what benefits has deps given you?

dpsutton21:08:51

build times are way lower. I love how composable extra dev tools are locally. For quickly trying things out just make a temp dir and `clj -Sdeps ‘{deps {some-dep {version}}’ and you have a repl. Git deps, etc

❤️ 1
jakebasile21:08:44

I think they really could've made the CLI for deps easier to read

jakebasile21:08:04

It's a weird combination of bashisms and Clojure

jakebasile21:08:14

Lein is guilty of this too to an extent

dpsutton21:08:46

love the invocation with -X to invoke any function that takes a hash map instead of needing a namespace with a single -main. Parsing of -X functions does get a bit wonky due to two levels of escaping

staypufd21:08:11

Sean Corfeild has a nice git repo that has good stuff for deps. https://github.com/seancorfield/dot-clojure

dpsutton21:08:48

yeah. makes it really easy to toss criterium into your repl, other easy stuff without needing to edit the profiles.clj file

jakebasile21:08:59

But I like profiles.clj 😂

dpsutton21:08:50

love me a data file rather than a file that has to be evaluated

dpsutton21:08:30

also i find the format much simpler (both of these are pure aesthetics, although data file is why clj can use git deps but lein kinda can’t. you have to keep evaluating the deps instead of just read them

mlimotte14:08:09

I’ve also switched to clj/deps. The syntax is a bit quirky (in a clojure way), but I like the consistency.