r/Clojure • • Jul 17 '22

Anyone using the Kit framework?

Hi, only found out about the Kit framework today, and am curious to hear if others are using it, and if so what they think of it. (Or if not, what kept you away!)

thanks

32 Upvotes

56 comments sorted by

View all comments

Show parent comments

22

u/yogthos Jul 18 '22

Yeah, I think lein got things right with having simple and easy to remember commands for common tasks. The reality is that there are a handful of things that vast majority of projects need. These should be supported out of the box and shouldn't require any ceremony. I still find myself looking up basic things using deps that were never a problem with lein. But as you say, deps is what the community is going with, so not much point fighting it at this point. Kit does add a bb.edn by default though to make things easier. So, you can run stuff like bb repl, bb test, and bb uberjar without having to remember the incantations for deps.

6

u/Borkdude Jul 18 '22

Cool! Note that you can also do `(clojure "-M:nrepl")` or so with bb, then the call will work cross-platform. Shelling out to `"clj"` does not work on Windows AFAIK.

1

u/yogthos Jul 18 '22

Ah TIL! Any chance of a small pr to fix up the script to make it windows compatible, I don't have windows available to test on. :)

3

u/jpmonettas Jul 18 '22

Interesting. I went from lein to clojure cli just for the reason that lein wasn't simple to me. While commands look shorter and easier to remember, is hard to go from command to the code that is doing the thing.with cli I found once I learned some basics everything is just clojure function calls, and no magic.

But I understand that isn't what people is used to on other languages.

I wander if there is a way of having both, short, clear and powerful/sound

4

u/yogthos Jul 18 '22

This could be solved by just having a few built in commands that are privileged in the tools. Things like compiling, testing, making an uberjar, etc. are common across projects. I think it would be nice to have these supported out of the box while allowing people to make their own scripts if they run into limitations.