This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-11
Channels
- # announcements (21)
- # aws (2)
- # babashka (20)
- # beginners (47)
- # bristol-clojurians (2)
- # calva (63)
- # cider (24)
- # clj-kondo (22)
- # cljs-dev (3)
- # cljsrn (6)
- # clojars (3)
- # clojure (147)
- # clojure-europe (21)
- # clojure-france (2)
- # clojure-italy (3)
- # clojure-losangeles (1)
- # clojure-nl (3)
- # clojure-spec (2)
- # clojure-uk (70)
- # clojurescript (37)
- # core-logic (6)
- # cursive (4)
- # data-science (2)
- # datomic (99)
- # events (1)
- # figwheel-main (20)
- # fulcro (26)
- # graalvm (6)
- # graphql (5)
- # kaocha (8)
- # leiningen (20)
- # meander (22)
- # nrepl (4)
- # off-topic (27)
- # pathom (5)
- # pedestal (3)
- # re-frame (20)
- # reagent (4)
- # shadow-cljs (43)
- # spacemacs (11)
- # tools-deps (55)
- # tree-sitter (6)
- # vim (8)
- # xtdb (18)
- # yada (14)
månmån
mornin'
wow, just found out you can do this
[camel-snake-kebab
[core :refer [->kebab-case]]
[extras :refer [transform-keys]]]
haha; the beholder that's you in a month's time is generally less charitable than the beholder that's you today

I'd say anything that splits names into parts, such that the full name cannot be searched in text, is going to be a pain
the only thing that saves you from this pain, somewhat, is an IDE that tracks imports and uses across the codebase (like IDEA)
it's usually easier for (:requires
to stay formulaic and boring
(but I 100% admit that it looks nice, and presses that little "neatness" button in the brain)
Camel/Snake/Kebab always sounds like it should be a logic problem
(its on my list of pet peeves of Things That Cause Unnecessary Errors with very little upside)
Everything should be case insensitive with all hyphen and underscores treated as invisible
well, I'm wasn't picking on a library per-se, just the ability to split the import into a "group" name, with sub divisions
yeah I know I'm wandering off your point
There's a lot of stuff in the taoensso libs that makes me go WTF and we've stopped using them -- which was a lot of work because we were all-in on Timbre, Carmine, Nippy, and several others at one point.
and the world would be a simpler place
I was looking at their source code to see what it was doing and I saw the way they were doing a requires, which I never saw before.
We've had a few meetings to discuss what to do if (when?) the whole country goes into lock-down
we have... all our devs are already WFH, and all our office-based people are taking their laptops home every night, so we can switch to everyone WFH at a moment's notice
re covid-19 I wrote to my MP yesterday pointing at Italy, saying they need to persuade the government to take more urgent action. The situation there is dire, and it’ll be us too in an estimated ~12 days or so. https://twitter.com/markjhandley/status/1237119688578138112?s=21
https://en.m.wikipedia.org/wiki/2020_coronavirus_outbreak_in_Japan#Phase_2:_Prevention
that thread on the measures china has taken is also fascinating: https://twitter.com/NAChristakis/status/1237020518781460480
they closed schools until the spring holiday
which must have the knock-on effect of preventing parents from going to work I suppose
Anyone use add-watch
? Is there a nice way to clear
the atom without triggering a watch? Or is the only approach removing the watch, resetting and then adding it back again?
why would you want to?
shouldn't the watchers know how to act?
True, my add watch is basically sending across state changes over a wire, but if someone actually re-init’s the state I need to differentiate that from general state change, looks like calling, reset! with nil
, then reset with the init
will allow the watcher to differentiate it.
can you have a sentinel value of :init
as the first thing that happens
That or just throw away all the protocol, record stuff and just use maps/multimethods…
don't you get the old and new state in add-watch
and couldn't you do something with that?
Yea, moving to something like setting a sentinel value as Ben suggested is not a bad approach 😃…
@dharrigan here's a nice model to help you decide when to close your office - https://docs.google.com/spreadsheets/d/17YyCmjb2Z2QwMiRRwAb7W0vQoEAiL9Co0ARsl03dSlw/htmlview?usp=sharing&sle=true (replace the htmlview
bit of the link with copy
to get google-drive to copy the sheet so you can edit it). the model was created by the author of this article: https://medium.com/@tomaspueyo/coronavirus-act-today-or-people-will-die-f4d3d9cd99ca
i filled it in with details from the new PHE dashboard: https://www.arcgis.com/apps/opsdashboard/index.html#/f94c3c90da5b4e9f9a0b19484dd4bb14
i don't particularly like the arcgis dashboards (the johns hopkins global one is also arcgis)... the filtering is quite rubbish