This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-09
Channels
- # announcements (4)
- # beginners (44)
- # boot (15)
- # calva (66)
- # cider (66)
- # clojure (75)
- # clojure-austin (4)
- # clojure-europe (2)
- # clojure-finland (1)
- # clojure-italy (3)
- # clojure-nl (10)
- # clojure-russia (3)
- # clojure-sg (1)
- # clojure-uk (109)
- # clojurescript (18)
- # datomic (8)
- # emacs (1)
- # figwheel-main (1)
- # fulcro (5)
- # jobs (1)
- # jobs-discuss (8)
- # kaocha (7)
- # leiningen (11)
- # luminus (2)
- # off-topic (69)
- # pathom (5)
- # re-frame (7)
- # reagent (4)
- # reitit (18)
- # ring-swagger (3)
- # shadow-cljs (123)
- # spacemacs (1)
- # sql (35)
- # tools-deps (89)
- # uncomplicate (3)
- # vim (6)
- # yada (3)
Morning
n00b question; I was hoping that
(let [{:keys [channel throttle_value comms_count]
:or {throttle_value 0 comms_count 0}
:as row}
{:id nil, :channel nil, :throttle_value nil, :comms_count nil}]
[throttle_value comms_count])
would return
[0 0]
but it doesn't, it returns
[nil nil]
`(let [{:keys [channel throttle_value comms_count]
:or {throttle_value 0 comms_count 0}
:as row}
nil]
[throttle_value comms_count])
works as expectedis there a way to get :or
to substitute a default value for an existing but nil key
(let [{:keys [channel throttle_value comms_count]
:or {throttle_value 0 comms_count 0}
:as row}
{:this :that}]
[throttle_value comms_count])
works as expected; its specifically when you have a MapEntry that has a value off nil
that there's a gotcha
yeah, perhaps I'm just outside the pale
Associative destructuring, however, also allows you to supply a default value if the key is not present in the associative value with the :or key.
(def string-keys {"first-name" "Joe" "last-name" "Smith"})
(let [{:strs [first-name last-name]} string-keys]
(println first-name last-name))
;= Joe Smith
works with sym
also
there's a ton of stuff you are only gonna find out if you read the code
so I write something like
((fn [row]
(let [throttle_value (or (:throttle_value row) 0)
comms_count (or (:comms_count row) 0)]
[throttle_value comms_count]))
{:id nil, :channel nil, :throttle_value nil, :comms_count nil})
and get on with the rest of my lifethanks guys
oh its because this data map originates in Postgres
which has some funny ideas about the minus-sign
and I have another gripe about underscore-vs-minus-vs-:camelcase
and libraries that 'helpfully' convert them
To Be Honest, the introduction of lower-case in the mid-80s was an enormous backward step IMHO
NO IT DIDN'T JADE!!!!!
HELLO EVERYONE
Ah ... Fortran wistful memories
COBOL does
or did
some later PC based variants didn't
Anyway, the question would be Fortran IV or 77?
Early BASIC implementations were in uppercase because, as Ben pointed out, that's all most machines had.
I still haven't got over COBOL making the .
optional in some later variants! Madness, chaos and anarchy!
we're hiring a data scientist but still getting the JD right. Any thoughts on the following?
I would say it reads really well, but you focus a lot on client communication but only mention it once in the who you are section. So at a glance my interpretation is the responsibilities are heavily client and communication focused, but then the requirements are strong data science skills with a little communication on the side. But tbh i think its a great JD. Mine was just a minor nit :thumbsup:
hmm... tricky. I think both are essential, but having the data science skills are what make it a data science job rather than a "public sector consultant" job. I'll have a think about that. thx 🙂
I think its just a minor thing really, you know the job best, but I think communication sounds like a really strong part of the job. 😄, either way it looks good
@otfrom: The Job Description reads really, really well to my eyes. Much, much better than almost everything I’ve seen. My only comment; which isn’t so much about the JD; is that I think you’re probably a much more interesting company to work for than the advert implies. So you could perhaps consider including something about the interesting nature of the work you do; beyond just the mechanics of it, i.e. something to make this applicant really want to work for you, above anyone else they’ve applied to… IIRC that prescriptions stuff you did was pretty groundbreaking at the time. If you don’t want to increase the word length then you could possibly just link to stuff that addresses that point.
@rickmoynihan thx. We do need to be better at blowing our own trumpet. 🙂
Yeah, we’re pretty low key about that stuff too. It’s a tricky one to write in my book, as the kind of hyperbole you often see job ads is pretty grating - but it’s far too easy to find yourself writing out the standard cliches
I'm sorry, I take offence at the notion the prescription stuff you did was ground breaking. I wrote reports that analysed the exact same thing in 1992. OK most of it went to GPs and NHS professionals.
Interestingly, the percentages around generics haven't changed too much in all that time!
Well those were my words, not @otfrom’s who was steadfastly refusing to blow his own 🎺. As an impartial observer in all this, with no connection at all what I will say to defend the claim is something I learned from MIT’s entrepreneurship course which is that “Innovation is Invention + Marketing”, and that innovations are rarely original; and are almost always small increments on existing ideas; that come from an existing community zeitgeist… (Related Kuhn’s theory of scientific revolutoins.) More importantly, all hyperbole aside, it was a nice piece of work.
I agree on all counts.... I was just being a little protective of some cool work I did when I was fairly junior but never got the credit or the wide spread publication it deserved. It was a batch COBOL system that printed reports on massive laser printers (in colour no less!) that were run by there own dedicated mainframe (separate from the m/f that ran the jobs to produce the data). We had to hand code the stuff to produce histograms as there weren't any libraries for it.
We also wrote a fully interactive reporting system for the health authorities (in 1997) that enabled on line querying of prescribing data from practice level up to national level at any level of the BNF (individual drug/strength/volume/packaging up to the full BNF of all drugs). It was a home spun Java client server system that used applets in a browser to display the text and charts. Again all the charts were produced using our code to draw lines and bars as there were no libraries for that in Java. Effectively it was a bespoke reporting system that was also a bespoke Java application server. This was before servlets let alone JSP so all hand cranked mutli threaded stuff.
Both those systems were only retired last year!
Sounds really nice… I’ve definitely had the same feeling about some projects I’ve worked on which we’re pretty cutting edge at the time, but never widely known or appreciated… For example pitching, and building a bunch of mobile social networking J2ME apps to france telecom in 2001 (I’m sure we weren’t the only ones though), or my first production clojure project circa 2008 which did clinical trials recruitment, identifying eligible patients in GP practices, getting consent via the GP whilst they were in consultation… 80% of clinical trials are either substantially delayed or fail entirely because of recruitment problems, and every day a new drug is late to market is worth an estimated $800M… Sadly the startup folded due to an inadequate runway - despite having working technology deployed into maybe a dozen or more practices. The code was pretty cool too… a Clojure DSL/query language that mapped 1-1 to consort diagrams. We were targeting a GUI at the DSL so researchers could draw the diagram and it would generate a corresponding query. I think if that startup had been in silicon valley, we would have easily secured venture funding.
@U05390U2P I knew of your work after you told me before, so I don't see it as fundamentally groundbreaking, if anything was innovative, it was using the open data to create a story that was interesting to Economist/Independent/BBC/others that they should have seen in the same data, so the embarrassment should have been there really.
I'm going to extend that a bit, but I'd like to get people interviewing in mid-may really, so it will be a month from when it goes out.
I also found this when looking around from Thayer Prime (who knows what she's on about and has an awesome name) https://looperinsights.com/careers/
20% time, that’s how you can tell they’re serious
isn’t that a starbase, not a person?
if she's `Interim' Hiring Director, does that mean she's still on probabation?
or is looking out for own replacement
or should Interim
bind to 'People' rather than 'Director'?
well I'm in the process of becoming something else
so does she hire temps? or is she a temp?
(what does the monocle represent?)
a person is required constantly but might not be available
hence interregnum
sorry interrex
my bad
https://en.wikipedia.org/wiki/Interrex you always need a king or consul(s)
wonders: how are those two facts correlated? :thinking_face: :suspicious-narrowed-eyes:
I'm sure she's got some nefarious plan though that we should be suspicious of. I think you are right. :thinking_face:
there's definitely an emoji missing from the emoji pallette
with-respect-to-why?