Fork me on GitHub
#clojure-europe
<
2022-09-21
>
simongray07:09:12

good morning

simongray07:09:21

more stuff in my backlog

☝️ 1
reefersleep08:09:02

I compulsively read this channel

lread13:09:10

Dig in for a pleasant fireside chat starring @borkdude and @U6L5FFL95

🔥 2
lemontea15:09:10

oh I went juuuusst a little bit overboard yesterday haven’t I 😅

lread15:09:07

Nah, not at all @U6L5FFL95, it was a very nice conversation.

borkdude15:09:08

it was indeed like a fireside chat, I was also just about to go to bed, so I enjoyed talking ;)

👍 1
vemv08:09:58

happy morning! 🎂 today I'm 17r1e

🥳 6
reefersleep08:09:43

See, my math suckiness is showing. I don’t know what that’s supposed to be in base 10.

reefersleep08:09:53

(base 10 without fancy notation)

reefersleep08:09:04

but congratulations, regardless!

😊 1
vemv08:09:28

the repl will tell you right away clojure-spin

Ivar Refsdal08:09:44

oh wow, congratulations!

🙌 1
reefersleep08:09:02

Enjoy your youth! I’m at the other end of the 30s, and I feel like crap already.

reefersleep08:09:18

Some sleep and exercise would help 🙂 Perhaps, one day, when my kid is a bit older…

reefersleep08:09:28

Gonna do anything in particular for your bday?

borkdude08:09:06

Congrats!

❤️ 1
vemv08:09:13

Probably all my exercise is only accelerating aging 🤓 there's always a little surprise This week I'm sneaking into my friends' houses for dinner, I enjoy it more than one big gathering

👍 2
borkdude08:09:41

@U45T93RA6 Clever. I also like 1-1 conversations more (or a few people) than a big crowd

😊 1
1
reefersleep08:09:26

Also, several birthday dinners, yay!

🥩 2
lread12:09:30

Woah, you aren't even 0x20 yet! Happy birthday @U45T93RA6!

🍻 4
agigao12:09:16

@U45T93RA6 Happy birthday! 🍷

🍇 1
vemv12:09:15

I would love to 🍻 🍷 🍵 with yall!

borkdude13:09:25

@U45T93RA6 Have you ever been to a clojure conf or intend on visiting one?

vemv13:09:26

Euroclojure 2015 (because it was in bcn!) I'm kind of lazy about overdosing myself on info - I'm not a 'meetings' person at work anyway. Maybe I can intentfully go in a picky manner, say 20% watching talks, 20% being social, 60% enjoying whatever city the conf is in

borkdude13:09:49

Ah darn, that was the one Euroclojure I missed

borkdude13:09:10

or at least, since I went to Euroclojure 2014 which was probably not the first one

borkdude13:09:31

Ah EuroClojure 2012 (London) and 2013 (Berlin)

reefersleep08:09:44

I didn’t realize you were Dutch, @borkdude (are you? 😄 ). I was just in Groningen a couple of weeks ago to get my tongue tie cut. Lovely city, shame we didn’t have time to stay and enjoy.

thomas09:09:03

I'm from Groningen!!!!

reefersleep09:09:19

I’m envious!

reefersleep09:09:24

How do you find it?

thomas09:09:17

I left last century, but when ever I go and visit my mother it feels like home... even though things have changed a lot

reefersleep10:09:34

I came back to live near the “big city”, which is near where my parents live. So much has changed, and continues to change. I rarely come there, so there are windows for surprises every time.

borkdude08:09:30

Yeah, Dutch

borkdude08:09:01

Hope the operation went smoothly

reefersleep08:09:07

As butter, in 2 minutes, and completely painless. Kirsten is great!

borkdude08:09:31

Yeah we all know her, Dutchland is small you know ;)

😂 1
lread12:09:28

A new ability after the operation? simple_smile

reefersleep12:09:56

there’s more mobility, but I can’t do anything particularly funny-looking or interesting with it

reefersleep08:09:36

well, she’s well known in Denmark among people who’ve got a kid with a tight tongue tie. On the day that we were there to get treatment for me and my son, there were Danes waiting outside before, during and after our treatment.

simongray08:09:17

some professionals were also trying to push into going to NL to get Isak’s tongue cut, while others were like “don’t listen to those oher crazies”. In the end he turned out fine, nothing wrong with his tongue at all. We got the impression that while it is of course an issue for some, it is being over-diagnosed

simongray08:09:22

the ones telling us to go were different varieties of nurses, while the ones telling us the others were talking nonsense were doctors, so that made the difference to us (ignorant) first-time parents

reefersleep08:09:13

it’s tough to make decisions like that. We’re doing aftercare, which is stretching the wound to prevent it from healing back into the original shape. 3 times a day. Rumle hates it and cries and screams, but we feel we have to do it.

reefersleep08:09:20

We ended up on the other side; we feel like it’s being under-diagnosed, and that many adults are probably walking around with ailments that could be amended with a cut and the proper exercises.

reefersleep08:09:51

e.g. my shoulders loosened up suddenly after the cut, and I felt focused and calmer.

reefersleep08:09:09

There are many symptoms that could be caused by a tight tongue tie, so it’s an interesting field. And it’s getting a lot of attention (relatively) from parents now, and it’s controversial and touchy, so professionals can be in more or less violent disagreement.

reefersleep08:09:33

Rumle swallows with much greater ease now, which was the main mission. Any other positive side effects are much welcome 🙂

simongray08:09:44

yeah, sounds the like right choice for him then

reefersleep08:09:59

Indeed. We suspected a tight tongue tie since birth (also because he had trouble nursing), but only got around to really do something about it when he started losing weight.

reefersleep11:09:59

BTW, you can get a non-invasive evaluation of tongue mobility by an OMFT practitioner, should you ever decide to look at it again. OMFT practitioners are kind of like ergotherapists focusing on tongue mobility, so I’d expect them to have more in-depth knowledge than both nurses and GPs

simongray11:09:49

there is no issue, fortunately, just had some people trying to convince us there was one 🙂

reefersleep11:09:52

There’s enough to worry about already 😅

reefersleep08:09:46

She’s the best in Europe AFAIK

reefersleep08:09:04

Kirsten Slagter, Tongriem Klinik

borkdude08:09:32

Slagter.. nice name for a surgeon

reefersleep08:09:34

Fun fact: her last name means “butcher” in Danish, and her first name is a common Danish name as well.

reefersleep08:09:39

hah, Dutch too?

borkdude08:09:49

In Dutch it's slager, but close enough

🍖 2
genRaiy08:09:14

Good morning

4
genRaiy08:09:36

not bad for an iphone 11

simongray08:09:56

yeah, I generally prefer Android, but I bought an iPhone specifically because of the camera when my son was born (and I had just broken my old phone) since I wanted to make sure that I shot even the early parts of his life in glorious 4k 60 FPS video.

genRaiy08:09:20

we've got tapes somewhere :rolling_on_the_floor_laughing:

simongray08:09:52

Actually, my dad rented a video camera and just shot random parts of our family’s life back in early 1990 when I was a year and half and I still treasure that old tape. That is partly why I want to make sure that I capture important moments in the best possible way.

💯 1
reefersleep08:09:40

We could do with better phone cameras… But until we can afford them/they fit in our hands, our trouble is mainly organizing all of the bazillion pictures and movies we take.

genRaiy08:09:16

yes, curation is the killer

simongray08:09:28

The trick is to delete mediocre photos on the same day you take them.

1
👍 1
lemontea15:09:24

breathtaking photo/scenery 💯

1
lemontea15:09:56

(with some skill, it is possible to take award winning photos with mobile phones)

simongray11:09:01

what is the correct HTTP status code to return when you want to indicate that a POST request to an idempotent endpoint didn’t change anything this time around?

reefersleep11:09:34

huh, I hadn’t considered that as an individual status 🙂 I thought that the idempotence meant that you shouldn’t care, though I’d personally prefer to receive the status you talk about.

Ivar Refsdal11:09:39

Good question ... I don't have a "correct" answer, but I've used 200 for duplicates and 201 (created) for actual changes.

🙏 1
simongray11:09:56

yeah, 201 and 200 make sense!

❤️ 1
Ivar Refsdal11:09:59

Self (repo) promo if you are using Datomic: https://github.com/ivarref/double-trouble (I have a 200 vs 201 example down in the README) Could be relevant for other purposes as well, creating a hash of the "stable" http input should be a general solution...

djm11:09:50

(Or possibly a 202)

simongray11:09:29

@UGJE0MM0W I use Asami, not Datomic. I wonder if your libs are compatible with Asami??

Ivar Refsdal11:09:57

I don't know, but I doubt it unfortunately.. Give it a try if you like 🙂

Ivar Refsdal11:09:27

I have never tried Asami so far..

simongray11:09:23

it’s pretty great, even copies the Datomic API. The main difference is that Asami has an open world assumption (similar to RDF) and therefore doesn’t use schemas.

🚀 1
simongray11:09:33

and it’s open source, obviously…

simongray11:09:32

for someone like me who uses RDF in another project, Asami is perfect, since I don’t need to consider the subtle differences. It is effectively just an RDF triplestore reskinned as a Datomic clone.

👍 1
Ed12:09:18

304? I recall the advice going around that a POST request should return a 303 rather than a 2xx for a successful request ... but I don't really see people doing that very much 😉

djm12:09:37

Isn’t 304 for GET, to tell you that you can keep using the data you fetched last time?

Ed12:09:23

It's used by proxies and the like to say the data hasn't changed and you can use the version you already have. But POST requests shouldn't be cached. So it shouldn't cause a problem. I guess it depends on your setup. There's a fair amount of wiggle room in the definition of these things and if you're making an API, I guess you can interpret the http verbs however you like ;)

🙏 1
genRaiy13:09:50

should idempotency be detectable?

djm13:09:14

https://www.rfc-editor.org/rfc/rfc2616#section-10.3.5 seems to say that 304 is only for GET 🤷

simongray13:09:36

@U04V5V0V4 Perhaps not. I generally I like to design software in such a way that the data and metadata is all there and laid out in a way that conforms to a specification… unless it is impractical.

simongray13:09:09

I may see a use for it in this specific case… or I may not.

simongray13:09:12

To me it’s a separate concern…

genRaiy13:09:06

I guess I don't know why the client needs to know / be able to distinguish

genRaiy13:09:18

but it's your system 🙂

simongray13:09:43

maybe it makes sense to indicate that no changes were performed contrary to expectations or maybe the fact that no changes were made would indicate that a separate backend request should not be made as the existing cached instance can be used

simongray13:09:55

lots of use cases IMO

Ed13:09:47

@U015KH5ENEM ... well ... it says nothing about post requests, but sure you might call that undefined behaviour. It was just a suggestion 😉

Ed13:09:25

+1 to Ray's comment "but it's your system" ... 😉

simongray11:09:27

(because the change has already been effectuated in an earlier request)

lread12:09:34

Good morning!

3
borkdude13:09:05

This channel rules.

👑 11
❤️ 7
metal 5
clojure 3
1
thomas13:09:12

This is my family :heart_hands:

thomas13:09:24

Love you all!

❤️ 3
3