Fork me on GitHub
#clojure-europe
<
2023-08-15
>
genRaiy07:08:16

Potato Tuesday. Good morning.

🥔 2
genRaiy07:08:11

It’s Assumption today. So it’s a holiday. Also potatoes.

schmalz08:08:22

morning all

genRaiy19:08:29

As I do more CLJS, inevitably I learn more JS. I’m thankful for shadow, nbb, scittle et al for shielding us from actually needing to use it.

lemuel19:08:28

It’s a great ecosystem. I use nbb for any scripting task I can get away with and am excited about Cherry/Squint potential I write JS at work every day and I’ve found sticking to a small subset of the language and writing in a Clojurey style to be effective. I’ve even got a bit of REPL-driven development going. I’m still grateful I’ve been able to avoid using PHP for the most part!

❤️ 4
genRaiy22:08:28

I'm using nbb too and it's a joy.

Ed08:08:07

@U017AGUF30R I'm interested in your repl driven setup for a js env ... I'm a contractor that is currently struggling with not having a decent repl in a typescript project and would appreciate any tips you can give me 😉

lemuel11:08:05

@U0P0TMEFJ I’m using Neovim + Neoterm with its TREPLSend commands to send JS to a Node.js REPL in a separate split window. I suspect it’s trivial to do something similar in emacs. This mostly works for pure functions and non-browser stuff. I use var and avoid import/export while working in this way to allow reassignment and then add const/let/export etc when I’m finalising things I’ve found it a nice way to iterate on logic and then lock down in tests although it’s nowhere near a Lisp REPL I imagine you could use the Deno REPL to do something similar with TypeScript but I’ve not tried that (I mostly write vanilla JS)

👍 2
Ed13:08:28

thanks ... I'll have a look into that - I'd started looking into this https://github.com/emacs-typescript/ts-comint, but had an issue that I didn't immediately solve and went back to copy / pasting code to a shell process 😜 ... although today my day is full of terraform state problems ... there's a special place in hell for the inventor of terragrunt 😉