clojure-europe

For people in Europe... or elsewhere... UGT https://indieweb.org/Universal_Greeting_Time
RAMart 2021-03-26T06:10:21.369800Z

Good Morning! "Sun is shining, the weather is sweet..." 🎶 ☀️

😎 3
djm 2021-03-26T06:37:33.370200Z

👋

simongray 2021-03-26T06:43:01.370400Z

morning

2021-03-26T06:45:04.370700Z

:rain_cloud:

2021-03-26T06:45:15.371Z

But good for the garden

simongray 2021-03-26T06:47:56.372400Z

Sunny here. Going to a colleague's flat to work on some Docker setups, but I think I might leave early and go for a walk first.

mccraigmccraig 2021-03-26T07:09:06.372700Z

mawning

jkxyz 2021-03-26T07:16:34.373Z

Good morning!

javahippie 2021-03-26T07:17:14.373200Z

Morning!

ordnungswidrig 2021-03-26T07:40:29.373500Z

Guten Morgen!

dharrigan 2021-03-26T08:35:40.373700Z

Morning!

2021-03-26T08:43:28.374Z

Oh, and good day

2021-03-26T08:44:04.374300Z

:morning:

pez 2021-03-26T08:59:46.375700Z

@simongray, awesome. I haven’t had my yearly Copenhagen fix in soon to be two years. Missing it!

simongray 2021-03-26T09:01:57.375800Z

@pez Just done drinking my morning coffee in this spot 😉 hope it scratches that itch.

❤️ 1
ordnungswidrig 2021-03-26T09:03:20.376200Z

Hey, I’ve been there 🙂

🤘 2
thomas 2021-03-26T09:05:22.376400Z

morning

thomas 2021-03-26T09:05:36.376700Z

Sunny here as well

simongray 2021-03-26T09:06:02.376900Z

@ordnungswidrig It's Dronning Louise's Bridge AKA the hipster bridge, separating the city centre and the Nørrebro district.

orestis 2021-03-26T09:40:54.377200Z

I used to cycle up and down that bridge every day, sigh.

1
slipset 2021-03-27T16:05:41.438200Z

How can you get lost in Oslo?

2021-03-28T09:04:23.438500Z

I still don't know, but I did. It was snowing and I was tired

pez 2021-03-26T09:57:20.378200Z

Oh, such a wonderful spot!

borkdude 2021-03-26T10:00:09.378700Z

Can someone explain to me why this spot is so wonderful? I have the feeling I'm missing some point/context ;)

pez 2021-03-26T10:04:29.383Z

My family have a crush for Denmark in general and some places in particular, among those Copenhagen. We visit there often and all six of us just love walking around there and now and then stay for food, snacks, coffee, ice cream, beer, wine, whatever. We’ve been walking and pausing on Queen Louise’s bridge quite a few times. It is a beautiful place and just brings beautiful memories back for me.

borkdude 2021-03-26T10:05:07.383700Z

Ah, thanks for clarifying! I visited Kopenhagen once, we rented a bike and, like most cities in the Netherlands, it's a good place for going by bike.

pez 2021-03-26T10:07:11.385100Z

I imagine we would enjoy those places as well. 😃 Not that we bike much, but I think it correlates with things we appreciate.

borkdude 2021-03-26T10:08:49.386300Z

Later in the trip we went to Stockholm, we had a buffet at a very nice vegetarian/vegan place at the river place called Hermans, including bbq.

borkdude 2021-03-26T10:11:02.386900Z

Sorry, slightly off topic haha

javahippie 2021-03-26T10:11:48.387400Z

Not off-topic, as Stockholm is in fact in Europe ☝️

pez 2021-03-26T10:21:23.391600Z

Stockholm is nice too, maybe I am home blind though, because I’d move to Copenhagen on the jiffy, should my wife agree with me about it. Stockholm is not a place where you can just stroll and find random nice places to visit for food and drinks. If you know the where to go it is a different matter. Now I know about Hermans. Will check out. My daughter has started a relationship with a vegan so extra good to know about it right now. 😃

borkdude 2021-03-26T10:23:19.392300Z

I liked Stockholm better since Kopenhagen still felt a bit like home, but Stockholm was different enough to feel like I was somewhere else

borkdude 2021-03-26T10:23:43.392700Z

Except for the Danish language, that sounded super weird to me, probably weirder than Swedish even :)

2021-03-26T10:23:47.392800Z

Are there ups and downs in Copenhagen that aren't stairs in buildings?

borkdude 2021-03-26T10:26:45.393900Z

We did it all by train. Our train went on a boat from Hamburg to Denmark, that was cool too. Although there is now a bridge instead.

borkdude 2021-03-26T10:31:03.394100Z

Oh wait, tunnel: https://en.wikipedia.org/wiki/Fehmarn_Belt_Fixed_Link

orestis 2021-03-26T10:32:25.394300Z

There's the famous hill in Frederiksberg zoo 😄

simongray 2021-03-26T10:34:33.395300Z

I think Stockholm is quite pretty too. Went there for a conference one and visited the offices of DICE, which had a fantastic view.

simongray 2021-03-26T10:35:08.396Z

but I think @pez is right that Copenhagen is more walkable/bikeable

simongray 2021-03-26T10:35:38.396900Z

and obviously, NL is the best at bikes stuff, but Copenhagen is pretty good

borkdude 2021-03-26T10:35:46.397100Z

We also visited the ancient ship in Stockholm, quite impressive. Also the city hall with the golden room (which has some controversial swastika's from long before the 20th century)

simongray 2021-03-26T10:36:35.397600Z

Never went there, but would love to go back. It’s the Vasa something ship, right?

borkdude 2021-03-26T10:36:46.397800Z

yes, Vasa it was

simongray 2021-03-26T10:37:59.398800Z

BTW the tunnel hasn’t been built yet, so the ferries are still there AFAIK. I once went to Hamburg with my friend while we were super drunk.

simongray 2021-03-26T10:39:35.400100Z

that didn’t really work out. Just had a hangover in Hamburg on a Sunday when everything was closed anyway.

😂 1
borkdude 2021-03-26T10:39:42.400300Z

Haha, I remember similar adventures in Leuven once. Went there with a friend, but all we did was hang out in bars and sleep in late so we missed all the touristy stuff

pez 2021-03-26T10:42:04.402600Z

The view from the DICE office is super. Yes, parts of Stockholm is very beautiful. It’s just that things are so unavailable compared to more civilised places. 😃

borkdude 2021-03-26T10:42:08.402700Z

Talking about Leuven, that's a super nice city too. If there will be a Heart of Clojure / EuroClojure / whatever-clojure there some time again, I won't hesitate to go.

➕ 2
simongray 2021-03-26T10:43:08.403200Z

Would be cool to attend Heart of Clojure - seems like everyone who went loved it

borkdude 2021-03-26T10:43:34.403700Z

Also, a Clojure conference in Prague: count me in

pez 2021-03-26T10:44:03.404200Z

Prague! Oh, that is wonderful.

borkdude 2021-03-26T10:44:20.404400Z

I'm in love with that city

borkdude 2021-03-26T10:44:49.404900Z

when I was a student I had a map of Prague hanging on the ceiling over my bed :P

simongray 2021-03-26T10:44:53.405Z

@otfrom Copenhagen is flat as a pancake. Like @orestis says there is like one single hill.

❤️ 1
simongray 2021-03-26T10:46:52.406900Z

Prague is cool too. Like most people in Copenhagen, I really love Berlin. I’m not ready to leave Copenhagen, but I definitely wouldn’t mind a couple of years in Berlin later in my life.

simongray 2021-03-26T10:47:11.407400Z

now the US… don’t particularly care for it.

simongray 2021-03-26T10:47:24.407900Z

I could also see myself living in taiwan

simongray 2021-03-26T10:47:31.408300Z

but only temporarily.

borkdude 2021-03-26T10:49:00.409600Z

Yeah, Berlin's cool too, already had a few Clojure confs there too. And Prague is quite near from Berlin too ;) There is a direct train from my city to Berlin, quite convenient

borkdude 2021-03-26T10:50:10.410Z

As for London: it's a nice city, but way too busy for my taste.

simongray 2021-03-26T10:50:27.410200Z

yeah… and a bit crammed IMO

simongray 2021-03-26T10:50:56.410400Z

for a European city, I mean

2021-03-26T11:16:15.410900Z

I enjoyed my one visit there, but it was waaaaaay back in 1992

2021-03-26T11:16:20.411100Z

and in December

2021-03-26T11:27:33.411300Z

even though I got very, very lost

2021-03-26T11:27:40.411500Z

tho not as lost as I did in Oslo

jasonbell 2021-03-26T12:09:36.412100Z

No idea of the mechanics of getting to a a European conference now.

jasonbell 2021-03-26T12:09:49.412300Z

Morning

2021-03-26T13:45:43.412800Z

it is hailing here now

dharrigan 2021-03-26T13:50:26.413100Z

This Monday/Tuesday here in Blighty, supposed to be in the 20's.

dharrigan 2021-03-26T13:50:48.413600Z

time for suncream, sandals and chocolate ice cream!

2021-03-26T13:51:37.413900Z

well, as long as you mean England when you say Blighty

2021-03-26T13:51:41.414200Z

which works for me. 😄

2021-03-26T13:51:50.414500Z

gonna be 14 in Dundee

dharrigan 2021-03-26T13:52:00.414700Z

<https://en.wikipedia.org/wiki/Blighty>

dharrigan 2021-03-26T13:53:32.415700Z

You're all hard up'north, so even if it's -10c, I'm sure I can find people walking around in shorts, sandals, short-sleeved tee-shirts and enjoying some magnums 🙂

dharrigan 2021-03-26T13:53:42.415900Z

up there in Dundee

2021-03-26T13:54:05.416100Z

taps aff

dharrigan 2021-03-26T13:54:15.416300Z

precisely

agigao 2021-03-26T14:03:01.418500Z

Hi there, can someone please point me at a well tested (perhaps ETL) project (obviously written in Clojure)?

simongray 2021-03-26T14:29:43.419100Z

you mean an open source project with a good set of tests?

agigao 2021-03-26T14:35:55.419700Z

Correct

agigao 2021-03-26T16:14:29.420500Z

In a nutshell I have a couple of questions regarding testing in Clojure and in general as well: 1. How granular should I go into depth?   - Should I test all functions or just “public” ones which puts each process together?   - How can I test private functions (defn-)? Or should I use them? 2. What's input of testing ns?   This question really depends on the previous one but still.   In real world it’s a log file, but in this case I wonder if I should take a couple of examples from the file manually or use a smaller subset of the file? 3. How many different cases should I aim at?

borkdude 2021-03-26T16:17:38.422600Z

@chokheli Taking clj-kondo and babashka as an example: I usually go with testing the entire command line invocation since that exercises all moving parts. I sometimes make unit tests for smaller parts if I want to make sure all edge cases are met. I don't use any private vars, but I use the .impl convention of naming implementation namespaces separately from public namespaces. I make a test for every single error that was ever reported to prevent further regressions. That's just my approach for these projects, not necessarily the best in all contexts.

mccraigmccraig 2021-03-26T16:55:01.428300Z

anyone know/use any clj data-driven transformation libs ? i keep coming across variations on this theme: (transform &lt;transformation-definition&gt; &lt;supporting-data&gt; &lt;input-record&gt;) -&gt; &lt;output-record&gt; and i'd like a common language for specifying the &lt;transformation-definition&gt; ... recent examples include [1] building JWT claims JSONs from user and tenant data [2] similar for SAML [3] building db record maps from various CSVs [4] pulling SOAP XMLs apart to generate db record maps

simongray 2021-03-26T16:56:00.428700Z

I know plenty, I documented them all here: https://github.com/simongray/clojure-dsl-resources#data-matchingtransformation-dsls

simongray 2021-03-26T16:56:35.429Z

and I’m working on my own https://github.com/kuhumcst/cuphic

simongray 2021-03-26T16:57:57.429800Z

which is also going to be some kind of Hickory-replacement, I guess

mccraigmccraig 2021-03-26T16:59:37.430800Z

oh, that's awesome @simongray - there's loads of stuff i didn't know about there 🙂

simongray 2021-03-26T17:00:12.431300Z

np! I compile these lists to get an idea of what’s out there. Suggestions are always welcome.

mccraigmccraig 2021-03-26T17:48:39.431800Z

cool - if i come across anything else, i'll let you know!

agigao 2021-03-26T20:48:53.432900Z

@borkdude thanks for the input!

agigao 2021-03-26T20:49:21.433300Z

I'll take a look at both projects (sources) 😊

borkdude 2021-03-26T21:09:59.434100Z

@simongray If you're interested from a DSL perspective, I'm in the process of developing a DSL for executing tasks (shell, clojure, babashka, etc), a bit like make. https://github.com/babashka/babashka/issues/756

borkdude 2021-03-26T21:18:10.435400Z

@simongray One problem currently at hand: A basic example of a task: {:tasks {:clean [:shell "rm" "-rf" "target"]}} I want to be able to give a task a description and possibly more options. So I thought I can do: {:tasks {:clean [:shell {:task/description "foo"} "rm" "-rf" "target"]}} but this reads a bit weird, because I expect :shell to get shell-related options and not some general task options. One alternative I came up with:

{:tasks {:clean ^{:task/description "foo"} [:shell "rm" "-rf" "target"]}}
A bit ugly maybe, but semantically correct: the metadata is about the task. However, processing EDN with metadata, it can be done, but it might lead to confusion. The other alternative, an explicit :task wrapper if you want to provide options:
{:tasks {:clean [:task {:description "foo"} [:shell "rm" "-rf" "target"]]}}
(also posted in #malli because they might have had a similar challenge)