Fork me on GitHub
#announcements
<
2023-03-02
>
borkdude13:03:49

https://github.com/babashka/neil: a CLI to add common aliases and features to deps.edn-based projects See the https://blog.michielborkent.nl/new-clojure-project-quickstart.html blog post for a gentle introduction into neil. 0.1.57 (2023-03-02) Changes since last announcement in thread! Join #babashka-neil for details

🎉 10
🙌 6
borkdude13:03:10

https://github.com/babashka/neil/pull/166: Update neil new -h output to include list of provided templates (@U3X7174KS) • Upgrade git libs using explicit :git/url when available • https://github.com/babashka/neil/issues/163: Upgrade libraries, including deps-new to 0.5.0, which no longer uses https://github.com/seancorfield's tools.build wrapper in project templates • Bug fix for kaocha alias and script typos (https://github.com/KingMob) • https://github.com/babashka/neil/issues/159: fix pmap + requiring-resolve issue • Clojars search improvements (https://github.com/tobias) • Fix fetching versions from maven central • Fix neil dep add • Provide bbin install instructions installing a development version (https://github.com/teodorlu) • Fix incorrect "Requires clean working directory" error in neil versionhttps://github.com/babashka/neil/issues/148: Always add latest kaocha version • https://github.com/babashka/neil/issues/148: Print instructions for making a bin/kaocha script • https://github.com/babashka/neil/issues/146: Prefer stable versions when running neil dep upgrade. Versions with any qualifier (like -rc1, -alpha, etc). are considered unstable. • Fix neil dep search helptext formatting (https://github.com/teodorlu) • Move neil dep upgrade helptext into subcommand (https://github.com/teodorlu) • https://github.com/babashka/neil/issues/150: swap babashka.curl for babashka/http-client

serioga16:03:55

First non-beta releases of undertow and ring-undertow libraries are available. • https://github.com/strojure/undertowhttps://github.com/strojure/ring-undertow

👍 16
🎉 2
borkdude17:03:57

Announcing https://github.com/borkdude/deflet: Make let-expressions REPL-friendly! > Let them have their inline-def and eat it too

🎉 34
🆒 14
ericdallo17:03:26

with clj-kondo config export supported OOTB 💅

borkdude17:03:11

probably not an optimal clj-kondo config but good enough for the first release :)

👍 2
Noah Bogart18:03:19

this is very cool

orestis19:03:17

Nice but I think I'm missing something... you can't really evaluate the expressions one by one, can you?

(deflet
  (def x 10)
  (inc x) ;; => 11
  (dec x) ;; =? 9
  ) 

orestis19:03:48

Unless somehow your editor is aware of this?

borkdude19:03:16

(def y (inc x))

borkdude19:03:50

yes, you can evaluate these expressions one by one

orestis19:03:20

In Calva, I have to do "evaluate from start of the list to cursor, closing brackets". If I just evaluate the single (inc x) obviously it's looking for an x in the global environment.

borkdude19:03:38

you first evaluate (def x 10)

borkdude19:03:43

and then (inc x) and so on

borkdude19:03:26

similar to how you would evaluate expressions in a rich comment form. you don't evaluate them all in one go, right? at least, I never do that

borkdude19:03:47

@U7PBP4UVA I hope this helps:

👍 2
orestis19:03:47

Right, so during REPL development you are polluting the global environment (by creating a var) - but then you can copy the entire snippet into a test case and the def will be converted into a let, right?

borkdude19:03:49

I found myself translating these def-like "stories" to let a lot when writing / debugging UI tests

orestis19:03:23

That is a good tactic! Thanks for clarifying, for a bit I was confused. I do the same top-level def in production sometimes and I’m a bit worried I’ll mess something up globally. So I thought this would fix my issue without changing me workflow.

borkdude19:03:49

In that case, maybe I would use a careful convention, like:

(def dbg:x 1)

borkdude21:03:09

A demo of how you can use this in nbb to write UI tests!

🤯 4
borkdude11:03:27

deflet is now available on clojars (0.1.0) and the clj-kondo hook has been improved (it expands exactly like the macro, lsp navigation works)

Danilo Oliveira07:03:04

borkdude train has no brakes lol keep the good work!