braveclojure / babooka Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://www.braveclojure.com/quests/babooka/
Home Page: https://www.braveclojure.com/quests/babooka/
... yields broken links on the side panel navigation of https://www.braveclojure.com/quests/babooka/
<ol class="toc">
<li><a href="/quests/babooka/babooka/#Sponsor">Sponsor</a></li>
<li><a href="/quests/babooka/babooka/#What_is_Babashka_">What is Babashka?</a></li>
<li><a href="/quests/babooka/babooka/#Why_should_you_use_it_">Why should you use it?</a></li>
<li><a href="/quests/babooka/babooka/#Installation">Installation</a></li>
...
<li><a href="/quests/babooka/babooka/#Summary">Summary</a></li>
</ol>
In my system (MacOS Ventura on Apple M1 + brew) Babashka's output is not printed. Thus, bb -f script.clj
just silently returns the prompt, and not the value of the last expression in the script.
I figured eventually that I needed to add another option bb --prn -f script.clj
works fine. Maybe some system-wide default settings somewhere causes this.
The reason why I'm reporting it, as this is in the first chapter and for making the key argument about the coolness of babashka.
@@ -810,11 +810,11 @@ in the journal
file. That file should now look like this:
:desc "A unix timestamp, when you recorded this."
:coerce {:timestamp :long}}})
(def table
[{:cmds ["add"] :fn #(add/add-entry (:opts %)) :spec cli-opts}
Great Book, you did it again. Thanks!
I posted it on our blog, hope you don't mind.
https://blog.3vyd.com/blog/posts-output/2023-11-20-Babashka-Babooka/
Kevin.
On the book's HTML version, the Chapter Sections that acts as a table of content is lacking the headers
which are preceded with a single *
or surrounded by single =
s in the README.adoc or README.org files.
Hello, have you considered adding a chapter about bb --nrepl-server
?
For me, the support of nrepl in babashka is yet another game-changer that babashka brings to the table. It's really awesome to be able to code fully interactively in your favourite editor, being connected to bb
process internally running nrepl server.
Sometimes, if I need "full clojure experience" (better editor support - especially docs popups), I also use bb --print-deps > deps.edn
, and code the script using regular clojure repl+nrepl. Then, once I'm happy with the result, I turn back to the bb
and make sure the script is still bb
-friendly.
Although it is feels Victorious to see that running bb hello.clj
does not result in any error, it is slightly less so, as you seem to insist that the text "Hello inner world!"
ought to be printed.
Since babashka version 1.1.171 included a breaking change to make printing results an opt-in, the flag --prn
should be used to have such text thrown into the world at large.
babooka/project/src/journal/add.clj
Line 15 in 2c35967
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.