practicalli / practicalli/clojure
Scripting Clojure section - Babashka
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 117
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
New section using Babashka to script clojure (rather than Bash scripts) with lots of examples
Connecting Babashka with editors using nrepl (socketREPL ??)
bb -nrepl
Cover Babashka pods and examples
How to create a Babashka pod?
Examples
Create git repositories
https://github.com/drewverlee/gr/blob/master/src/gr.clj
Passphrase generator using #babashka #clojure and reading randomness from /dev/urandom and wordlist from /usr/share/dict/words. Can't speak to its security, but a nice exercise in any case. https://t.co/on2KlMuO1d
https://gist.github.com/snorremd/43c49649d2d844ee1e646fee67c141bb
bbf, a tiny script to make filtering data more concise: https://t.co/1cEtDk0pQ
Even numbers to 10:
$ seq 10 | bbf even?
Multiples of 7 under 100:
$ seq 100 | bbf '#(= 0 (rem % 7))'
Movies released in the 80s:
$ cat movies.edn | bbf '#(< 1980 (:year %) 1990)'
#babashka #clojure https://t.co/Ts0phW81Iw
https://github.com/justone/dotfiles-personal/blob/personal/bin/bbf
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing documentation structure and the cited examples in src/gr.clj, bin/bbf, and the linked gist. Outline the Babashka scripting, nREPL, pods, pod creation, and example topics, then compare the result with the repository’s documentation conventions. Done means a complete, coherent Clojure scripting section with the requested examples and references.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- cli, documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100