Good Morning!
mogge
Morning! I had so much fun with Babashka yesterday!! I now have it installed on all our servers and I'm rewriting our deployment scripts from bash to bb -- so much nicer!
Out build script is in build.clj, but we have a (hand-written by moi go lang helper utility) to do aws deployments
Yeah, we still have a (monster) build.clj file that drives a lot of stuff (450 lines), but we have over 1,800 lines in 30 bash scripts too 😞
AI?
All handcrafted over time. We started down this path about 15 years ago. That build.clj file replaced several hundred lines of bash, once tools.build appeared.
We started with lein and bash scripts and little Clojure programs back in 2011, then boot in 2015 -- and some of those scripts went into the main boot build file, and then deps.edn in 2018 and some new bash scripts (since the CLI wasn't as powerful as boot). Then build.clj helped us claw that back.
Now I'm peeling off pieces of the bash scripts into bb scripts... and I hope to streamline the build.clj file as well at some point.
I means AI to translate it to something else?.
Hmm, I don't know how well any of the models would do in translating bash to Clojure/Babashka but that's an interesting thought... I might give that a go next week...
I did some the other way round once clj -> bash and that looked ok