Fork me on GitHub

Good morning


Good Morning!


Good morning. I’m in dependency hell with Calva right now. It’s pretty rare, but hellish anyway.


good morning


I'd rather not mention that I was fighting Scala build problems for the last days.

😢 3
😭 6
🏗️ 2

does npm's first-class module approach reduce dependency hell suffering ? it seems to me like it might, but i've no idea if there are other consequences which are as bad or worse


I'm not familiar.


a module is just an object/map, and its exports are values on the object... there is no global namespace, and any private data is hidden inside a closure, so you can have multiple versions of the same lib imported into the same program


then an import looks like this:

const {opt,
       PRODUCTION_API_HOST} = require('../build/gulp/config');
which is just using standard object destructuring to give local names to the module's exports - require is a function returning the module object


i've always thought it very simple and neat, but i haven't used #js enough to really get a feel for consequences


We use that a lot in Calva. I have just been thinking about it as similar to :refer


the js instance style dependency thing allows for multiple versions of something to be loaded and runnable, so it is more resistant to breakages, but it also means you can't redefine a function at the repl in the way clojure does (or at least it works like when you have multiple macros and you change the one at the bottom of the stack, so you now need to re-eval all the call-sites) .... it also makes it more effort to make sure that you've definitely removed a vulnerable version of a dependency ... so, there are trade-offs 😉


With Rust it's a bit similar. Another problem is when a dependency is kind of exposed in a library. Like when you convert it to 'Avro' data, or with an async framework. If the versions don't match you get weird errors because the byte code doesn't match. Something like: "this Foo is not an instance of Foo".


those are exactly the sort of consequences i haven't done enough raw #js to experience @U0P0TMEFJ 😬 - a global namespace does seem like it will make repl usage much easier


👍 ... it's fine if you just expect to restart your process all the time ... or refresh the webpage ... but as soon as you change that assumption you get trouble 😉


i end up using c.t.n.r/refresh a fair bit in clojure because of "this Foo is not an instance of Foo" errors (e.g. when a defprotocol gets re-evaulated but the dependent defrecord and deftypes don't), so maybe it's not so very different


I used to have the refresh problem, but I have it less these days. I think I took the need to a full refresh as a sign that I'd done a bad job in dividing up the namespaces and these days I have it less ... I feel like the messages the universe gives you are subtle and it's your job to work out the meaning , and sometimes more tooling isn't the answer 😉


I try to avoid classes / records alltogether in favor of ad hoc generated reifytations.


A big consequence of the npm stuff is that you can't always pass objects between libraries, as they might be using distinct & incompatible versions of objects (even if the API is compatible, even!).


This comes up if you use a library that wraps or enhances another library.


Clojure doesn't have this problem as much because of data.




finally got a vaccine appt (Thurs afternoon)

🎉 8
💉 2

just got my second appt today... i've been checking everyday for weeks, and suddenly there are appointments available 3 weeks earlier than the appointments i was previously being offered (which i won't be around for)


maybe the code-change to allow old dudes to bring their appointments forward just hit production


I drove 200km to another county to get my first shot last week.


Got my second on the 22nd... but then I'm really old and I had first one on 6th April!


The AZ vaccine has a bigger window between 1st and 2nd dose? (than Moderna/Pfizer)


They’ve maintained a very strict four week appointment window over here for Moderna/Pfizer. When anyone gets their 1st shot, the 2nd appointment is made immediately, at that time, for almost exactly four weeks in the future. But mum and her hubby in England waited about 12 weeks between 1st and 2nd AZ shots I think?


going to be ~8 weeks between 1st and 2nd shots of moderna for me, in brighton UK


And congrats on your shots everyone! We got our first shots almost as soon as we became eligible (April 1st for my wife and April 9th for me — April 1st was the date they opened it up to 50+ — and we got a nurse friend to help get my appointment since my wife had gotten so lucky with hers). Such a weight off our minds to be fully vaccinated — just in time for our 21st anniversary so we felt safe to eat indoors at a nice restaurant!


@U0524B4UW My folks live in West Chiltington nearby and he has several properties in Brighton.


ha, i'm not actually in brighton itself ... i'm in ditchling which is another village nearby - had your folks lived in east chiltington we would almost have been neighbours, but it appears west chiltington is quite a long way away from east chiltington


The quirks of little English villages 🙂


it took a while for NHS Scotland to find me (as I had moved from NHS England, and there are 3 NHSs and 1 HSCNI in the UK despite what some URLs would have you believe)


Are vaccination records coordinated centrally in the UK? (they are here, via the CDC, but getting actual vaccination appointments here is a labyrinth of individual health care companies, not even at the county level, let alone state level)


@U04V70XH6 centrally as in each devolved nation?


probably. I'm not sure what will escape the hospitals and GPs as it is more about reporting upwards when required by local or national practice.


Well, I guess I was asking at what level are vaccination records tracked… I’m guessing the answer is at the “NHS” equivalent organization level?


for Covid, probably at the national level, but most things will be at the GP hospital level (tho hospital events are reported upwards usually)


the covid vaccination records appear to be centrally co-ordinated in england... not sure if scawtland is included in the same database though


definitely different databases


My COVID-19 vaccination card is an official CDC (national, federal) document.


Interesting. Thanks.


as I was getting notifications from my old surgery in London, even tho I'd registered in Scotland


the site also uses a integer counter to determine appointment ids 🙈


and chasing the appointment has been through the Scottish NHS website


I can't chase a Scottish appt via, as it isn't really a UK service, but actually an English service


Heh, when our GP switched offices, it took six months to get his own patients’ records moved over to the new system… we didn’t move anywhere and he only moved about a mile in the same town 🙂


my vaccination card is issued by "public health england". no idea how that is or isn't related to the nhs


Yeah, I’ve seen a lot of references to PHE and I hadn’t heard of it until the pandemic…


7 weeks interval here for pfizer


I think PHE happened b/c they wanted to take a lot of the PH responsibilities away from local authorities (tho some LAs still do some on their own)


Some study showed immune response is actually better with more than 4 weeks for pfizer iirc, that's why a lot of countries increased it. I think the study went as far as 11 weeks


it is weird being so early days in a lot of the vaccine stuff that we don't know what is most effective as there just hasn't been that long to tell


(like how long the vaccine effectiveness will last, or if we'll need boosters)


Yes, it's difficult to know who to trust


obviously PHE has nothing to do w/Scotland/Wales/NI


it has been weird watching the news and seeing Boris Johnson as Prime Minister being really obviously only Prime Minister in England

🤢 2

(tho Westminster Parliament can write a law to reverse devolution in health whenever they want, or take all the doctors from one part of the country and put them in another if they want. The amount of power washing around is pretty worrying tbh)


(and current PM and gov't get very excited about their parliamentary sovereignty and Henry VIII powers)


@U050SC7SV re:trust - yeah, having to become an expert on vaccines and viral spread of deadly diseases during a widespread failure of public health orgs (WHO, CDC, PHE, others) has been a lot of fun.


It's fine. It only counts in Rugby Union!