Fork me on GitHub
#clojure-europe
<
2021-03-26
>
RAMart06:03:21

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

😎 9
otfrom06:03:04

:rain_cloud:

otfrom06:03:15

But good for the garden

simongray06:03:56

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.

jkxyz07:03:34

Good morning!

otfrom08:03:28

Oh, and good day

pez08:03:46

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

simongray09:03:57

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

❤️ 3
ordnungswidrig09:03:20

Hey, I’ve been there 🙂

metal 6
thomas09:03:36

Sunny here as well

simongray09:03:02

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

orestis09:03:54

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

3
otfrom10:03:47

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

orestis10:03:25

There's the famous hill in Frederiksberg zoo 😄

simongray10:03:53

@U0525KG62 Copenhagen is flat as a pancake. Like @U7PBP4UVA says there is like one single hill.

❤️ 3
otfrom11:03:15

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

otfrom11:03:20

and in December

otfrom11:03:33

even though I got very, very lost

otfrom11:03:40

tho not as lost as I did in Oslo

slipset16:03:41

How can you get lost in Oslo?

otfrom09:03:23

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

pez09:03:20

Oh, such a wonderful spot!

borkdude10:03:09

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

pez10:03:29

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.

borkdude10:03:07

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.

pez10:03:11

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

borkdude10:03:49

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.

borkdude10:03:02

Sorry, slightly off topic haha

javahippie10:03:48

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

pez10:03:23

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. 😃

borkdude10:03:19

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

borkdude10:03:43

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

borkdude10:03:45

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.

simongray10:03:33

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

simongray10:03:08

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

simongray10:03:38

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

borkdude10:03:46

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)

simongray10:03:35

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

borkdude10:03:46

yes, Vasa it was

simongray10:03:59

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.

simongray10:03:35

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

😂 3
borkdude10:03:42

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

pez10:03:04

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. 😃

borkdude10:03:08

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.

6
simongray10:03:08

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

borkdude10:03:34

Also, a Clojure conference in Prague: count me in

pez10:03:03

Prague! Oh, that is wonderful.

borkdude10:03:20

I'm in love with that city

borkdude10:03:49

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

simongray10:03:52

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.

simongray10:03:11

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

simongray10:03:24

I could also see myself living in taiwan

simongray10:03:31

but only temporarily.

borkdude10:03:00

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

borkdude10:03:10

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

simongray10:03:27

yeah… and a bit crammed IMO

simongray10:03:56

for a European city, I mean

jasonbell12:03:36

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

otfrom13:03:43

it is hailing here now

dharrigan13:03:26

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

dharrigan13:03:48

time for suncream, sandals and chocolate ice cream!

otfrom13:03:37

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

otfrom13:03:41

which works for me. 😄

otfrom13:03:50

gonna be 14 in Dundee

dharrigan13:03:32

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 🙂

dharrigan13:03:42

up there in Dundee

agigao14:03:01

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

simongray14:03:43

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

agigao16:03:29

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?

borkdude16:03:38

@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.

mccraigmccraig16:03:01

anyone know/use any clj data-driven transformation libs ? i keep coming across variations on this theme: (transform <transformation-definition> <supporting-data> <input-record>) -> <output-record> and i'd like a common language for specifying the <transformation-definition> ... 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

simongray16:03:57

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

mccraigmccraig16:03:37

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

simongray17:03:12

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

mccraigmccraig17:03:39

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

agigao20:03:53

@borkdude thanks for the input!

agigao20:03:21

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

borkdude21:03:59

@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

borkdude21:03:10

@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)