This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-15
Channels
- # announcements (1)
- # babashka (81)
- # beginners (48)
- # calva (49)
- # clj-kondo (52)
- # cljdoc (7)
- # cljs-dev (39)
- # clojure (33)
- # clojure-australia (18)
- # clojure-europe (48)
- # clojure-italy (2)
- # clojure-morsels (2)
- # clojure-nl (3)
- # clojure-uk (6)
- # clojurescript (5)
- # community-development (2)
- # conjure (6)
- # cursive (3)
- # data-science (29)
- # datalog (4)
- # datomic (14)
- # events (1)
- # fulcro (1)
- # graphql (18)
- # gratitude (2)
- # helix (11)
- # introduce-yourself (2)
- # java (15)
- # keyboards (2)
- # lsp (6)
- # luminus (4)
- # membrane (32)
- # minecraft (1)
- # missionary (7)
- # nextjournal (2)
- # off-topic (28)
- # portal (28)
- # releases (1)
- # ring (1)
- # shadow-cljs (3)
- # sql (6)
- # xtdb (23)
morning !
morning!
Good Mornings everyone! I want to share with you that I'm very happy! First, I just got my second baby girl! 😄 👶 And secondly, I currently works as Clojure/Script contractor for a San Francisco startup on a very exciting project. The best part about it is that they contacted me after seeing some of personal open source projects like: https://github.com/prestancedesign/pingcrm-clojure Deep down I knew it. I don't regret spending so much time learning Clojure/Script and developing these projects at all! I can only advise it. Cheerz!
Thanks @borkdude! :)
Thanks to all! 🙂
Morning!
good morning!
Anyone wants to play with the new nbb console REPL? :-D
$ npm install -g nbb
$ nbb
user=> (+ 1 2 3)
6
user=> (require '["fs" :as fs])
nil
user=> (fs/existsSync "README.md")
true
måning
How would you test a REPL? As in, how would you write a test that confirms you can start a REPL, do some stuff and see a particular result? An integration test for templates. I'm thinking about how you could test a template.
might be of inspiration? https://github.com/clojure-emacs/refactor-nrepl/blob/0306180b932f8363204d5196955565810a0ff48a/.circleci/integration_test.sh#L8
@dominicm I have tested several REPLs in my projects: nREPL, socket REPL, console REPL, prepl
In #nbb I approached this by just starting it in a new process, writing to stdin (or socket) and then read the expected results
but with the Node stuff I found it easier to just launch a new process, it starts fast anyway
I basically wrote those as integration tests. They are all here: https://github.com/borkdude/nbb/tree/main/script
Hmm, for my purposes prepl is probably a better idea than a normal too. Otherwise I can't find returns.
That's gonna be handy, thanks @U04V5V0V4
@dominicm Here's one of my prepl tests: https://github.com/babashka/babashka/blob/3f72507f77aaf6c603a24a0f221588dcc2a73934/test/babashka/impl/socket_repl_test.clj#L99
@borkdude https://github.com/babashka/babashka/blob/3f72507f77aaf6c603a24a0f221588dcc2a73934/test/babashka/impl/socket_repl_test.clj#L113-L114 why the sleep after waiting for the port?