Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Babashka Babooka: Write Command-Line Clojure (braveclojure.com)
118 points by Borkdude on Jan 5, 2023 | hide | past | favorite | 14 comments


I've really enjoyed Babashka lately. Most recently, I ported a script from Bash which gets around WiFi captive portals and was able to add some features and even unit tests. Super fun and would have been hard for me to do in Bash!

https://gist.github.com/matthewdowney/dab4d12d001152dec473e3...


I just started using 'nbb' which is a node.js version of Babashka for automating various web tasks using playwright and it has been fantastic


If you work on Mac, there are a lot of great ways these days to script in a better language than Bash. Here's how to write easy scripts in Swift, without learning a new language: https://rderik.com/blog/using-swift-for-scripting/#our-first...


Thanks for posting that! I have also experimented with Babashka, but I am fond of Swift. It may be my favorite non-Lisp language.


Babashka is cool. I’ve looked at it and want to learn more, but it’s always a question of time.


Babashka has saved me a lot of time. I actually think it is the quickest and easiest way to get started learning Clojure, to a point. No startup time didn't seem like a big deal for my workflow until I got instant startup time when running script, and starting repls -- The kind of repl where you can inspect and act on anything in your program.

Babashka tasks is fantastic too! Multi-threaded, simple, and very few surprises.


> actually think it is the quickest and easiest way to get started learning Clojure, to a point.

That's great, I was just checking out Clojure a few hours ago and now have it installed. Any other cool blogs and resources the fine folks on here could recommend.


If you are just getting into Clojure itself, you might enjoy this interactive tutorial in an app that is itself written in a Clojure/ ClojureScript combo: https://orgpad.com/s/iByMMbKLBnq There are links to other resources. Just click units with more pronounced shadows - those have contents, e.g. small interactive editors, videos etc.


This might be further down the rabbit hole than you want to go, but I enjoyed the incredibly detailed blog post here with Babashka and deploying a AWS Lambda: https://jmglov.net/blog/2023-01-04-blambda-analyses-sites.ht...


That blog post wasn't about nbb, but about bb, right?


You are right I edited up update the comment


If you're truly looking for an info dump...

https://gist.github.com/ssrihari/0bf159afb781eef7cc552a1a0b1...

And I'd start from the very first link! I'm sure everyone agrees an engaging writing style goes a long way. Ayphr's posts are awesome for broad understanding, some novel order to the presentation I haven't seen elsewhere


This is for general Clojure, I’ve had a lot of fun and learned a lot from it (and the original): https://4clojure.oxal.org/


Babashka is a great success story for open source. The author has written so many useful and interesting utilities that he is now supported by contributions.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: