This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-15
Channels
- # alda (1)
- # beginners (24)
- # biff (9)
- # calva (55)
- # cherry (1)
- # clj-kondo (36)
- # cljs-dev (3)
- # clojure (37)
- # clojure-austin (2)
- # clojure-brasil (1)
- # clojure-europe (14)
- # clojure-nl (1)
- # clojure-norway (24)
- # clojure-spec (3)
- # clojure-uk (1)
- # community-development (6)
- # core-typed (1)
- # datalevin (5)
- # datomic (28)
- # emacs (14)
- # events (1)
- # gratitude (9)
- # hyperfiddle (27)
- # instaparse (3)
- # joker (16)
- # lsp (89)
- # malli (24)
- # missionary (2)
- # nbb (5)
- # off-topic (59)
- # re-frame (12)
- # reitit (17)
- # releases (4)
- # sci (14)
- # spacemacs (1)
- # squint (7)
- # xtdb (41)
Morning
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.
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!
@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 😉
@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)
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 😉