5 ms·
Babashka: A quick example
- dang 7y agoRecent and related: https://news.ycombinator.com/item?id=22254793 https://news.ycombinator.com/item?id=22254793
- bhougland 7y agoNixos ftw!
- jhoechtl 7y agoUpvote for using asciidoc, a proper foundation for plain text declarative document generation. Unfortunately, as worse is better, markdown is on the way to win.
- Whatitat90 7y agoWhy do you think asciidoc is better than Markdown? Serious question as quick skim over the homepage (https://asciidoctor.org/ https://asciidoctor.org/) and it looks just like Markdown with different sigils.
- jhoechtl 7y agohttps://news.ycombinator.com/item?id=18848278 https://news.ycombinator.com/item?id=18848278 https://www.ericholscher.com/blog/2016/mar/15/dont-use-markdown-for-technical-docs/ https://www.ericholscher.com/blog/2016/mar/15/dont-use-markd... https://dev.to/practicalprogramming/we-need-a-new-document-markup-language---here-is-why-5d4c https://dev.to/practicalprogramming/we-need-a-new-document-m... https://mister-gold.pro/posts/en/asciidoc-vs-markdown/ https://mister-gold.pro/posts/en/asciidoc-vs-markdown/
- Whatitat90 7y agoThat's what I was looking for, thanks!
- cmroanirgo 7y agoOne of the main failings of markdown (for me) is it's lack of expressiveness, always forcing us to revert to html to get certain things done. Markdown's great for simple readme, or if you don't need to (say) right align an image, of apply a class to a paragraph (eg. To turn it into an inset). While I personally prefer textile (which is a deader dodo than asciidoc), they are both able to do significantly more than markdown. I look at the problem as: if markdown forces me to write html, then I may as well use html... (Ps: in textile "> hello world" at the start of a line sets right alignment, "=" for justified, "p.inset#my_id hello world" applies an "inset" class to the para and gives it the id "my_id". Asciidoc is similar, but I'm not familiar enough with it to write it on my phone just now)
- Iwan-Zotow 7y agoBabUshka!
- Razengan 7y agoIt’s a pun on “bash”
- cosmodisk 7y agoOk, fair enough!
- Iwan-Zotow 7y agoAh, I see...
- type0 7y agobabashka scripting could be overkill if you just want to rerun your generator every time some file changes. There's Entr is for that. What sort of automation can babashka do that isn't easier done with Python or Lua?
- Borkdude 7y agoBabashka's target audience is primarily Clojure developers that just want to keep writing Clojure instead of switching to a language like Bash or Python for shell scripts. It's not a matter of better, just more familiar.
- Scarbutt 7y agoThis one of those cases of: "were so preoccupied with whether or not they could, they didn’t stop to think if they should"
- Whatitat90 7y agoArch Linux, AsciiDoc, git - sounds great! But why keybase? (Serious question, I wonder if it's for communication or sharing encrypted data or...)
- malcolmjuxt 7y agoSome of our documents contain confidential details (personal data, client confidential details). Keybase provides a filesystem (kbfs), accessible by authorized individuals, with team management, and git repositories for recording history.