Fork me on GitHub
#clojure-uk
<
2020-07-22
>
dharrigan05:07:00

Good Morning!

seancorfield05:07:15

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.

πŸ‘€ 3
dharrigan05:07:06

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

dharrigan05:07:13

That country was really screwed over.

dharrigan05:07:41

that's on iPlayer

seancorfield05:07:17

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

seancorfield05:07:43

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

seancorfield05:07:56

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

dharrigan05:07:00

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

dharrigan05:07:18

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

dharrigan05:07:27

get some sun sea and icecream!

seancorfield05:07:42

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

seancorfield05:07:29

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 😐

seancorfield05:07:00

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

seancorfield05:07:35

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.

dharrigan05:07:46

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

seancorfield05:07:16

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

dharrigan05:07:22

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 😞

dharrigan05:07:48

no idea if hovercraft goes. letmecheck

dharrigan05:07:21

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

seancorfield05:07:56

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.

dharrigan05:07:29

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

seancorfield05:07:44

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

dharrigan05:07:53

a british pipe dream πŸ™‚

dharrigan05:07:33

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

seancorfield05:07:01

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

dharrigan05:07:19

I guess eurostar killed it

seancorfield05:07:31

Nah, it was dead long before then 😞

seancorfield05:07:06

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

dharrigan05:07:13

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

dharrigan05:07:22

I like ferries πŸ™‚

dharrigan05:07:34

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

seancorfield05:07:15

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 πŸ™‚

πŸ˜„ 3
seancorfield05:07:55

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

dharrigan05:07:56

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!

dharrigan05:07:38

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

seancorfield05:07:22

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 😐

🀒 3
seancorfield06:07:04

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

dharrigan06:07:15

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

alexlynham08:07:12

@seancorfield I think I saw that one

maleghast10:07:54

I managed to get here before noon for once!

Ben Hammond10:07:54

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

Ben Hammond10:07:52

is there a generally accepted

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

Ben Hammond11:07:52

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;
}

alexlynham11:07:44

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

alexlynham11:07:02

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

Ben Hammond11:07:02

ah okay, will look

Ben Hammond11:07:36

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

alexlynham11:07:40

ah didn't see the every level bit

alexlynham11:07:07

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

alexlynham11:07:58

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

alexlynham11:07:32

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

dharrigan11:07:35

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

dharrigan11:07:46

deep deep down πŸ™‚