This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-22
Channels
- # announcements (1)
- # aws (4)
- # beginners (73)
- # bristol-clojurians (1)
- # calva (7)
- # cider (5)
- # cljs-dev (11)
- # cljsrn (3)
- # clojure (30)
- # clojure-europe (24)
- # clojure-italy (2)
- # clojure-nl (3)
- # clojure-spec (7)
- # clojure-uk (69)
- # clojurescript (109)
- # cursive (21)
- # datascript (1)
- # datomic (72)
- # events (1)
- # fulcro (5)
- # graalvm (2)
- # helix (12)
- # hoplon (12)
- # jobs (2)
- # juxt (2)
- # kaocha (7)
- # keechma (1)
- # lambdaisland (5)
- # meander (18)
- # off-topic (52)
- # pathom (9)
- # re-frame (18)
- # reagent (5)
- # reitit (7)
- # sci (6)
- # shadow-cljs (76)
- # sql (9)
- # testing (4)
- # tools-deps (14)
- # xtdb (28)
Mornin'
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.
Not something for me - but I did watch "Once upon a time in Iraq" last week. That is a very powerful documentary.
Yeah, not sure Jay would be up for that. She's not a fan of 20th/21st century war history.
She's done a lot of historical re-enactment but most Cavalier period π
I'm taking Wednesday off this week. Nice to have a pair of 2-day weeks π
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
Ooh! IoW! Haven't been there for a long time!
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 π
Re: add-lib
-- I still rely on the old t.d.a. branch. See the :git/url
and :sha
in my dot-clojure repo.
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.
It'll be the first time (since a baby) that the kid will be on a ferry. He'll love it!
I remember when the hovercraft used to go to the IoW... does it still?
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 π
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.
Looks like that stopped about twenty years ago http://www.digitaljournal.com/article/31858
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'...
Nah, it was dead long before then π
Actually no... interesting.. Eurostar started in '96. Hoverlloyd shuttered in 2000
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
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 π
(or so my Leeds United-supporting next door neighbor told me... ahem...)
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!
the ferry was climbing near vertical walls of water (or that was my impression anyway, as I rolled about the ship)
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 π
It was a 10 day cruise and we had force 10 storms twice...
@seancorfield I think I saw that one
interesting
morning
Morning.
mΓ₯ning
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...
is there a generally accepted
function getIn(m, ks) {
that I can pinch?
do I have to write my own?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;
}
honestly I would check lodash or ramda to see if there's an option
_.pick
? can't remember if it can do tunneling into nested
ah okay, will look
thanks
never heard of those libs before not spent much time in JS world
ah didn't see the every level bit
cos foo.bar.baz
is going to throw an actual Error if one of those is undef, gotcha
possible to use a reduce like in this https://hackernoon.com/accessing-nested-objects-in-javascript-f02f1bd6387f
in our current TS code base we'd literally go `try { foo.bar.baz } catch(err) { do-something-graceful };
but we're not having to do much that's sophisticated, just grabbing individual keys from deeply nested aws events mainly