Fork me on GitHub
#clojure-uk
<
2017-10-08
>
guy08:10:30

morning all

guy08:10:52

Anyone used websockets before? I was gonna try them out using https://github.com/ptaoussanis/sente

maleghast10:10:50

@guy - Morning 🙂 Sorry to say that I can’t comment, but FWIW, I do hear good / positive things about the library in question, or at least I have, things may have changed while I wasn’t looking…

mccraigmccraig10:10:00

@guy we use chord on the client and aleph server-side... never a hitch

guy10:10:28

thanks @mccraigmccraig ill check it out!

mccraigmccraig10:10:07

ptaoussanis’ stuff is usually good too though, and iirc sente has some nice behaviours for free, so it might be a good choice if it fits in to your stack

mccraigmccraig10:10:05

huh, i wonder why slack didn’t spot the @guy above

guy10:10:04

i think theres two guys

guy10:10:13

guy_do_or_die

guy10:10:18

so it cant disambiguate

guy10:10:39

oh no lol

guy10:10:46

its my settings xD

malcolmsparks11:10:49

I have 2 Thinkpads T420s at home that are still going strong after 5 years. Best part is I can replace parts and if needed buy a new one for about £200. They aren't fast, but force you to optimise your workflow and avoid docker-compose...

dominicm11:10:34

@mccraigmccraig I've noticed that a lot recently

dominicm11:10:32

I think it doesn't get resolved if the client lags

conan13:10:52

@guy I haven’t used it myself, but I’ve worked on an application that used it and never heard any complaints, it’s what I’d reach for.

guy15:10:55

thanks man

yogidevbear13:10:30

1st 10km race complete 🤜💥😄

yogidevbear13:10:38

And a PB :unicorn_face:

yogidevbear13:10:48

Feeling pretty good

yogidevbear13:10:27

Well, maybe not so good physically 😂

dominicm15:10:03

I've been exploring something I knew was theoretically possible, but hadn't actually tried it until today. Seeing the https://github.com/cognitect-labs/transcriptor/blob/master/README.md made me decide to have a go. It essentially does the reverse! Given:

(deftest foo
  (is (= 4 (+ 2 2)))
  (is (= 5 (+ 3 2))))
It produces
=> (+ 2 2)
4
=> (+ 3 2)
5
The intention is to pretty print results also. The ultimate purpose of this is to explore having your README/Docs code in the tests.

dominicm15:10:53

This is really interesting when composed with asciidoctor, which actually supports this. So,

= My new adder

[source, clojure]
----
include::
----

Look at how well it adds!
^^ this is a valid document.

cddr23:10:09

python has something similar with doctest: https://docs.python.org/2/library/doctest.html

maleghast15:10:20

Er… I think I’ve missed something here…

dominicm15:10:49

One sec, producing a readme now, with pictures

dominicm15:10:26

I'd be excited for someone else to give this a go and see the usefulness to a documentation system. I'm thinking that the bidi readme should go through this.

maleghast15:10:56

Hold on, looking at your link now…