This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-26
Channels
- # announcements (3)
- # architecture (53)
- # babashka (6)
- # beginners (101)
- # bitcoin (3)
- # calva (4)
- # cider (3)
- # clara (7)
- # cljdoc (2)
- # cljsrn (14)
- # clojure (104)
- # clojure-europe (96)
- # clojure-germany (21)
- # clojure-nl (6)
- # clojure-serbia (3)
- # clojure-spain (1)
- # clojure-uk (13)
- # clojuredesign-podcast (4)
- # clojurescript (14)
- # cursive (5)
- # data-science (19)
- # datomic (16)
- # emacs (15)
- # fulcro (33)
- # graalvm (5)
- # honeysql (3)
- # instaparse (2)
- # jobs (3)
- # lsp (82)
- # malli (2)
- # off-topic (11)
- # pedestal (4)
- # polylith (62)
- # practicalli (4)
- # shadow-cljs (56)
- # tools-deps (53)
- # vim (17)
- # xtdb (53)
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.
mawning
Morning!
Guten Morgen!
https://c.tenor.com/iKleRQhN73cAAAAM/willy-wonka-and-the-chocolate-factory-gene-wilder.gif
@simongray, awesome. I haven’t had my yearly Copenhagen fix in soon to be two years. Missing it!
@pez Just done drinking my morning coffee in this spot 😉 hope it scratches that itch.
@ordnungswidrig It's Dronning Louise's Bridge AKA the hipster bridge, separating the city centre and the Nørrebro district.
@U0525KG62 Copenhagen is flat as a pancake. Like @U7PBP4UVA says there is like one single hill.
Can someone explain to me why this spot is so wonderful? I have the feeling I'm missing some point/context ;)
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.
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.
I imagine we would enjoy those places as well. 😃 Not that we bike much, but I think it correlates with things we appreciate.
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.
Not off-topic, as Stockholm is in fact in Europe ☝️
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. 😃
I liked Stockholm better since Kopenhagen still felt a bit like home, but Stockholm was different enough to feel like I was somewhere else
Except for the Danish language, that sounded super weird to me, probably weirder than Swedish even :)
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.
I think Stockholm is quite pretty too. Went there for a conference one and visited the offices of DICE, which had a fantastic view.
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)
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.
that didn’t really work out. Just had a hangover in Hamburg on a Sunday when everything was closed anyway.
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
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. 😃
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.
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.
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
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 🙂
Hi there, can someone please point me at a well tested (perhaps ETL) project (obviously written in Clojure)?
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?
@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.
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
I know plenty, I documented them all here: https://github.com/simongray/clojure-dsl-resources#data-matchingtransformation-dsls
and I’m working on my own https://github.com/kuhumcst/cuphic
oh, that's awesome @simongray - there's loads of stuff i didn't know about there 🙂
np! I compile these lists to get an idea of what’s out there. Suggestions are always welcome.
cool - if i come across anything else, i'll let you know!
@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
@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)