There’s a video of the basic form of the technique here: https://www.youtube.com/watch?v=5-3yQHUmAOw
And, for completeness. Here I demonstrate “include any previous let bindings”. Well, not in a thread, per se. The mechanism is more general. If there is a selection, any missing brackets will be closed and the result evaluated. But it is often extra handy in examining the steps of a thread.
@pez Very helpful! Thanks for creating those videos and sharing. I'm not a Calva user, so just to be clear, are these the keyboard shortcuts you're using? https://calva.io/evaluation/
Eg. "Evaluate From Start of List to Cursor" is ctrl+alt+enter, correct?
That’s correct. And if there is a selection ctrl+alt+enter will bind to Evaluate Selection, Closing Brackets. The shortcut for selecting from the cursor and backward up, list by list, is ctrl+up, at least on Mac.
@pez Very cool! I've been using VIM for years, but I've been meaning to try out Calva. Thanks for sharing. I appreciate it!
Hey everyone! Is anyone here interested talking to me about Clojure? There is so much to learn between the first time you fire up the REPL and being able to create a full featured application. As you know, I've discussed it for hours! Rather than doing all the talking, I'd love to hear from you. Would you be interested in telling me how you got started in Clojure and how it's going for you? DM me if you're interested. I'd love to hear from you!
I'm clueless, so if you're looking for someone like that I would love to talk. But if you want to make a podcast about it, it would have to wait until the new year. My employment agreement is restrictive about "social media".
@john.t.richardson.dev Not for the podcast. Right now I’m just asking questions to understand what obstacles people run into when learning Clojure and how they have benefitted from learning. I’ll DM you the info.
@leif.eric.fredheim, maybe ^something^ for you?. @neumann, I’d also be happy to talk to you, but I get the sense you want to talk with someone that am a bit earlier on their Clojure journey?
Nice! I'll have to check out your blog post. You can see my first-ever "real" Clojure code here 🙂 https://github.com/leifericf/leifs-utils/blob/main/src/leifs_utils/git.clj
Clean and neat!
You can pick up a REPL trick, that you might not have figured out yet, from my blog post: https://blog.agical.se/en/posts/changing-my-mind--converting-a-script-from-bash-to-babashka/
Awesome, thanks! I'm going to read through it after lunch with my afternoon coffee 😄 And I'm really enjoying Babashka! It's so much fun.
I have asked my team to assign to me all tasks which are even remotely related to shell scripts or automation, haha. And everyone else hates those tasks, so it's a win-win!
@leif.eric.fredheim Being brand new is great! You have a fresh perspective on learning Clojure. Using Clojure as a hobby is great too. You are time constrained, so you have to pick what to focus on. All of that would be great for me to understand!
@leif.eric.fredheim And thanks for sharing that code. Looks clean to me too!
@pez I'd still love to chat with you. We all had to get started at some point in time. Every conversation is helpful.
I'll DM you a sign up link.
Sure, I would love to! Although I feel like I might be too new and inexperienced to be useful to others 😅 I’ve been reading about Clojure, toying around with the language for learning, and engaging with the community for some years, but I wrote my first “real” Clojure program for a work-related task over the last two weeks (I’m replacing some shell script utilities with Babashka scripts).
That’s a very good start, @leif.eric.fredheim! Some weeks ago I wrote a blog post about converting a shell script to Babashka.