clojure-uk

A place for people in the UK, near the UK, visiting the UK, planning to visit the UK or just vaguely interested to randomly chat about things (often vi and emacs, occasionally clojure). More general the #ldnclj
dharrigan 2020-07-22T05:39:00.085800Z

Good Morning!

seancorfield 2020-07-22T05:39:22.086Z

Mornin'

dharrigan 2020-07-22T05:40:00.086800Z

πŸ™‚

seancorfield 2020-07-22T05:41:15.087600Z

We've been watching a BBC show about historical fashion... They just did Edward, the Black Prince's armor and jupon (padded jacket, that was hanging up in the cathedral until WWII). Fascinating stuff.

πŸ‘€ 1
dharrigan 2020-07-22T05:42:06.088200Z

Not something for me - but I did watch "Once upon a time in Iraq" last week. That is a very powerful documentary.

dharrigan 2020-07-22T05:42:13.088400Z

That country was really screwed over.

dharrigan 2020-07-22T05:42:41.088600Z

that's on iPlayer

seancorfield 2020-07-22T05:45:17.089200Z

Yeah, not sure Jay would be up for that. She's not a fan of 20th/21st century war history.

seancorfield 2020-07-22T05:45:43.089700Z

She's done a lot of historical re-enactment but most Cavalier period πŸ™‚

seancorfield 2020-07-22T05:46:56.090800Z

I'm taking Wednesday off this week. Nice to have a pair of 2-day weeks πŸ™‚

dharrigan 2020-07-22T05:48:00.091600Z

Do you know what the state of including the functionality of add-lib into deps? I find the need to experiment adhoc with a library very compelling. I don't think the add-lib or add-lib2 has been updated recently

dharrigan 2020-07-22T05:48:18.092Z

I have next friday (31st) off, going to Isle of Wight for the weekend.

dharrigan 2020-07-22T05:48:27.092300Z

get some sun sea and icecream!

seancorfield 2020-07-22T05:48:42.092600Z

Ooh! IoW! Haven't been there for a long time!

seancorfield 2020-07-22T05:49:29.093600Z

I'm off 30th/31st too. I'm generally taking at least a day off every two weeks. Just to break up the strange monotony of time passing in quarantine 😐

seancorfield 2020-07-22T05:50:00.094200Z

Re: add-lib -- I still rely on the old t.d.a. branch. See the :git/url and :sha in my dot-clojure repo.

seancorfield 2020-07-22T05:50:35.095100Z

That's what I use day-to-day at work, although t.d.a. now requires mvn to build because it contains Java code as well as Clojure.

dharrigan 2020-07-22T05:50:46.095400Z

It'll be the first time (since a baby) that the kid will be on a ferry. He'll love it!

seancorfield 2020-07-22T05:51:16.096100Z

I remember when the hovercraft used to go to the IoW... does it still?

dharrigan 2020-07-22T05:51:22.096300Z

hmm, would perfer to wait until it becomes part of tools deps, it just feels sooooo slow to get out, given it's quite very usable 😞

dharrigan 2020-07-22T05:51:48.096600Z

no idea if hovercraft goes. letmecheck

seancorfield 2020-07-22T05:51:59.096800Z

https://www.hovertravel.co.uk/

dharrigan 2020-07-22T05:52:03.097200Z

yup

dharrigan 2020-07-22T05:52:21.097700Z

maybe next time πŸ™‚ Ferries are fun 'tho too πŸ™‚

seancorfield 2020-07-22T05:52:56.098400Z

That is much more fun than a ferry! I'll have to check if the Channel Crossing is still done by hovercraft... I suspect not.

dharrigan 2020-07-22T05:53:29.099Z

I like their slogan "...hover responsibly."

seancorfield 2020-07-22T05:53:44.099300Z

Looks like that stopped about twenty years ago http://www.digitaljournal.com/article/31858

dharrigan 2020-07-22T05:53:53.099600Z

a british pipe dream πŸ™‚

dharrigan 2020-07-22T05:54:33.100100Z

great ideas, fantastic technology, but no real public interest.

seancorfield 2020-07-22T05:55:01.100800Z

35 minutes to cross the channel. They were noisy and it was a very rough ride -- it couldn't operate in high seas. I loved it tho'...

dharrigan 2020-07-22T05:55:19.101Z

I guess eurostar killed it

seancorfield 2020-07-22T05:55:31.101300Z

Nah, it was dead long before then 😞

seancorfield 2020-07-22T05:56:06.102100Z

Actually no... interesting.. Eurostar started in '96. Hoverlloyd shuttered in 2000

dharrigan 2020-07-22T05:56:13.102300Z

My dad used to take me to see the big ferries when I was a kid. I loved the massive sound and smoke from the funnels

dharrigan 2020-07-22T05:56:22.102500Z

I like ferries πŸ™‚

dharrigan 2020-07-22T05:56:34.102800Z

slow as feck, but what's the rush! πŸ™‚

seancorfield 2020-07-22T05:57:15.104100Z

You could drink so much during the trip... and then buy mountains of alcohol cheap in Calais, and then drink all the way back to England πŸ™‚

πŸ˜„ 1
seancorfield 2020-07-22T05:57:55.105Z

(or so my Leeds United-supporting next door neighbor told me... ahem...)

dharrigan 2020-07-22T05:57:56.105200Z

One of my most interesting journeys was a ferry from italy to greece years ago. I used to think the med was a tranquil lake.No....I've never seen waves as high in my life, thunder and lightening, it was like poseidon and zeus were having a quarrel that night of my journey!

dharrigan 2020-07-22T05:58:38.106400Z

the ferry was climbing near vertical walls of water (or that was my impression anyway, as I rolled about the ship)

seancorfield 2020-07-22T05:59:22.107300Z

Yeah, as a kid we did the SS Uganda around the med... and coming out of Alexandria harbor, it was getting rough as we took the little boats back to the ship and I asked what it took to create 10' waves... a force 6 they said... by midnight, we had a force 10... that was... exciting 😐

🀒 1
seancorfield 2020-07-22T06:00:04.107800Z

It was a 10 day cruise and we had force 10 storms twice...

dharrigan 2020-07-22T06:00:19.108Z

fun times!

dharrigan 2020-07-22T06:01:15.108400Z

well, gotta go - kid is starting to gnaw at my leg. I think he's hungry

dharrigan 2020-07-22T06:01:32.108600Z

ttfn!

alexlynham 2020-07-22T08:21:12.109Z

@seancorfield I think I saw that one

alexlynham 2020-07-22T08:21:16.109200Z

interesting

alexlynham 2020-07-22T08:21:18.109400Z

morning

rhinocratic 2020-07-22T08:21:52.109600Z

Morning.

mccraigmccraig 2020-07-22T08:24:03.109800Z

mΓ₯ning

maleghast 2020-07-22T10:28:39.110Z

Morning All

maleghast 2020-07-22T10:28:54.110300Z

I managed to get here before noon for once!

2020-07-22T10:52:54.112300Z

pure Javascript question; I need the equivalent of get-in to pluck a value out of a deep data structure, but every level may return an undefined what is the generally accepted least clunky way to achieve this? sadly Cljs is not an option...

2020-07-22T10:55:52.113300Z

is there a generally accepted

function getIn(m, ks) {
that I can pinch? do I have to write my own?

2020-07-22T11:00:52.115200Z

something like this maybe?

function getIn(m, ks) {
   var v = m;
   for (k of ks) {
      if (v == undefined) break;
      if (v == null) break;
      v = v[k];
   }
   return v;
}

alexlynham 2020-07-22T11:01:44.115300Z

honestly I would check lodash or ramda to see if there's an option

alexlynham 2020-07-22T11:02:02.115400Z

_.pick? can't remember if it can do tunneling into nested

2020-07-22T11:03:02.115600Z

ah okay, will look

2020-07-22T11:03:03.115800Z

thanks

2020-07-22T11:03:36.116500Z

never heard of those libs before not spent much time in JS world

alexlynham 2020-07-22T11:06:40.116700Z

ah didn't see the every level bit

alexlynham 2020-07-22T11:07:07.116800Z

cos foo.bar.baz is going to throw an actual Error if one of those is undef, gotcha

alexlynham 2020-07-22T11:07:24.116900Z

possible to use a reduce like in this https://hackernoon.com/accessing-nested-objects-in-javascript-f02f1bd6387f

alexlynham 2020-07-22T11:07:58.117100Z

in our current TS code base we'd literally go `try { foo.bar.baz } catch(err) { do-something-graceful };

alexlynham 2020-07-22T11:08:32.117200Z

but we're not having to do much that's sophisticated, just grabbing individual keys from deeply nested aws events mainly

dharrigan 2020-07-22T11:32:29.117500Z

<https://deepdash.io/>

πŸ‘ 1
dharrigan 2020-07-22T11:32:35.117700Z

eachDeep, filterDeep, findDeep, someDeep, omitDeep, pickDeep, keysDeep etc.. Tree traversal library written in Underscore/Lodash fashion. Standalone or as a Lodash mixin extension

dharrigan 2020-07-22T11:32:46.117900Z

deep deep down πŸ™‚

alexlynham 2020-07-22T11:33:02.118Z

nice