Fork me on GitHub
#clojure-europe
<
2021-10-15
>
dharrigan06:10:11

Good Morning!

borkdude08:10:55

🌄 Mourning Morning 😄

👋 1
jkxyz08:10:15

Good morning!

Michaël Salihi08:10:44

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!

👍 8
🎉 9
🍼 5
1
❤️ 1
borkdude08:10:04

Congrats!!! :)

simongray09:10:28

Congratulations! 🙂

👍 1
David Vujic10:10:47

Congrats! To both 👶 and work! 😄

👍 1
Michaël Salihi14:10:39

Thanks to all! 🙂

pez19:10:26

Congratulations! ❤️

❤️ 1
slipset09:10:44

Oh, I already did that 😕

😁 2
borkdude10:10:46

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

😮 3
pez19:10:17

Good morning!

dominicm20:10:42

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.

borkdude20:10:15

@dominicm I have tested several REPLs in my projects: nREPL, socket REPL, console REPL, prepl

borkdude20:10:28

Today and yesterday I wrote tests for the new #nbb repls

dominicm20:10:43

@borkdude just the man I need then! What's your approach?

borkdude20:10:14

In #nbb I approached this by just starting it in a new process, writing to stdin (or socket) and then read the expected results

borkdude20:10:27

similar for nrepl

borkdude20:10:05

I also have tests which launch the REPL in-process.

dominicm20:10:23

Doing it from clojure?

borkdude20:10:26

but with the Node stuff I found it easier to just launch a new process, it starts fast anyway

borkdude20:10:40

I wrote those tests in #babashka but the code would run in Clojure too

borkdude20:10:52

I basically wrote those as integration tests. They are all here: https://github.com/borkdude/nbb/tree/main/script

dominicm20:10:21

Hmm, for my purposes prepl is probably a better idea than a normal too. Otherwise I can't find returns.

genRaiy15:10:41

I have gone backwards and forward between sync and async but I’m sticking now

genRaiy15:10:08

To say you can check history if you want sync

dominicm17:10:56

That's gonna be handy, thanks @U04V5V0V4

dominicm17:10:01

Also a very cool project, I like it.

dominicm20:10:10

Thanks for the tip!

borkdude20:10:10

Note sure. Probably not necessary