Fork me on GitHub
#announcements
<
2022-04-04
>
curtis.summers10:04:08

HugSQL 0.5.2 (and followup 0.5.3) released with the following changes: 0.5.3 • cljdoc-related fixes; otherwise, same as version 0.5.2 0.5.2 • new (markdown-based) docs! (https://hugsql.org) https://github.com/layerware/hugsql/pull/131 • fix fn defs to be at compile-time https://github.com/layerware/hugsql/issues/126 (thanks https://github.com/kelvinqian00https://github.com/kelvinqian00)!) • fix file var metadata to be a string https://github.com/layerware/hugsql/issues/137 (thanks https://github.com/gtrakhttps://github.com/gtrak)) • allow % in keywords https://github.com/layerware/hugsql/pull/136 (thanks https://github.com/Rovanionhttps://github.com/Rovanion)) • update next.jdbc groupId https://github.com/layerware/hugsql/issues/127 (thanks https://github.com/dmarjenburghhttps://github.com/dmarjenburgh)) • update clojure.java.jdbc to 0.7.12 https://github.com/layerware/hugsql/pull/135 (thanks https://github.com/jonassvalinhttps://github.com/jonassvalin)) • markdown doc strings (for http://cljdoc.org) • linter fixes https://hugsql.org

9
borkdude11:04:13

@U065ZC1BP Awesome! Since a recent release of babashka, hugsql.core sqlvec fns can also be ran with that. There is a test in bb CI:

(ns hugsql.babashka-test
  (:require [babashka.fs :as fs]
            [clojure.test :as t :refer [deftest is]]
            [hugsql.core :as hugsql]))

(def sql-file (fs/file (fs/parent *file*) "characters.sql"))
(hugsql/def-db-fns sql-file)
(hugsql/def-sqlvec-fns sql-file)

(declare characters-by-ids-specify-cols-sqlvec)

(deftest sqlvec-test
  (is (= ["select name, specialty from characters\nwhere id in (?,?)" 1 2]
         (characters-by-ids-specify-cols-sqlvec {:ids [1 2], :cols ["name" "specialty"]}))))

👏 2
❤️ 1
curtis.summers12:04:51

@U04V15CAJ Very cool. I love what you're doing w/ babashka! Thanks!

borkdude14:04:53

#babashka 0.8.0 released. Major new feature is the ability to declare pods in bb.edn. This effort was largely driven by @cap10morgan 👏 See here for an example: https://book.babashka.org/#_pods_in_bb_edn Full changelogs with many other improvements: https://github.com/babashka/babashka/blob/master/CHANGELOG.md#080-2022-04-04 Next Saturday, @rahul080327 will present about #babashka at NovaLug: https://www.meetup.com/novalug/events/fzklrsydcgbmb/ - feel welcome to join!

❤️ 15
🎉 14
babashka 11
richiardiandrea15:04:27

The new pods addition is very nice, thanks @cap10morgan and @U04V15CAJ!

👍 2
Jarrod Taylor (Clojure team)15:04:04

Are you interested in learning how to use Datomic? Do you have a sense of humor and enjoy free retro interactive browser based tutorials? Then you really should checkout https://max-datom.com

👏 3
2
😆 6
sheepy 4
🙌 24
🎉 7
datomic 19
4
😎 8
metasoarous17:04:08

This is marvelous! Thanks for creating/sharing!

Kelvin20:04:47

Reminds me of a project I helped make for a college course which was a monad tutorial with a similar retro aesthetic

Tomas Brejla22:04:18

very nice 👏 🙂 2 small things I'm missing: • It would be nice if ctrl+enter in the code editor submitted the code. (ie. so that I don't have to click RUN QUERYbutton all the time) • showing "matching paren" (for the paren then my cursor is currently placed after) would help a lot with finding unbalanced form.

3
Jarrod Taylor (Clojure team)00:04:08

I pushed an update so matching braces are now highlighted.

🎉 3
❤️ 1
pez10:04:00

I find that I want to experiment a bit even after that snarky bot has concluded I might have learnt something. I think that a button that let's me evaluate ”outside” the script would do it for me. Not sure I am making sense... I'm thinking two Run buttons. One that asks for feedback from the bot/advances the story and one that just evaluates the code. Not sure how to not confuse the user with two Run buttons, but anyway. 😃

truestory 1
Tomas Brejla14:04:41

@U0508JRJC found a bit strange behavior. Adding just a single space or newline results in "unmatched delimiter". (see enclosed picture) I think I haven't seen this yesterday although I'm very sure I used to indent the db into its own new line.

Akiz15:04:47

@U02FU7RMG8M do you still have it?

Kelvin15:04:51

Unfortunately the repo is private and the Heroku app no longer seems to work. But here is a screenshot of the front page:

Kelvin15:04:19

And the lesson select page (complete with Gratuitous Japanese):

😆 1
👏 2
Kelvin15:04:04

Finally here's a sample lesson page, with the input being a Codemirror box:

👍 1
eggsyntax16:04:47

Oh my god, @U0508JRJC, that prologue is the funniest thing I’ve read in ages :rolling_on_the_floor_laughing:☠️

Jarrod Taylor (Clojure team)18:04:44

I am glad to know it made someone chuckle 😄. You never know when you are writing something like that if it will land with the reader.

Jacob O'Bryant19:04:09

Big news 🙂 Biff is a web framework I initially released about two years ago and have been using in my own business since. I've spent the past couple months giving it a major overhaul based on my experiences with it. It's now ready to go! https://biffweb.com/p/new-release

🕸️ 7
♥️ 12
🎉 28
clojure-spin 9
👍 1
jmayaalv19:04:22

Sold on htmx!! Really cool

🎅 1
borkdude21:04:07

Congrats!

🙂 1
jaide22:04:18

Very cool! Been interested in combining alpine js (or a cljs equivalent) with scittle for frontend where react is overkill, this seems to validate that concept and looks like a solid stack to explore.

tatut04:04:08

nice to see more people embracing server side rendering, congratulations on the release

👍 1
Luke Zeitlin16:04:09

TIL about htmx - looks like a really interesting choice

Michaël Salihi18:04:37

@UE7LPTG1L For htmx, you may be interested to take a look at https://github.com/prestancedesign/babashka-htmx-todoapp Easy to run and play with. 😉

👌 2
Jacob O'Bryant18:04:08

htmx (and hyperscript) are pretty great. This was a nice post about the general movement (it doesn't actually mention htmx, which is a shame, but it talks about other tools/frameworks in the same general category): https://github.com/readme/featured/server-side-languages-for-front-end

👍 1
pez18:04:25

Congrats! 🎉

😀 1