Fork me on GitHub
#clojure-uk
<
2020-02-21
>
marcus08:02:08

Morning chaps!

guy08:02:43

Morning!

guy08:02:18

Er sorry about that fat fingered

guy08:02:26

Not sure if I can undo that

marcus08:02:45

Here one about language and its sounds: If rhetorician => rhetoric (notice how the c sound changes) then surely from associate => assoc (same ending sound that in rhetoric) I know that is obvious for the lucky ones having English as mother tongue, but for me it strikes me as odd! I suppose I try to speak following some sort of rules.. 😁 My colleagues at work should be hating me by now for saying assok 😁

dharrigan08:02:36

I pronouce it assok too 🙂

dharrigan08:02:45

assok-iate 🙂

😁 4
dharrigan08:02:50

english is a crazy language

👍 4
Andrew08:02:05

Morning 👋

Conor08:02:45

Ultimately, though rhetoric has a Greek root and associate a Latin root, in ye olden dayes associo (the Latin root verb of associate) would have been pronounced with a k-sound

Conor08:02:19

So it is perfectly OK to say assok IMO (and I do it myself)

😍 4
dharrigan08:02:11

Ah, this must be clojure, for now we are doing etymology!

dominicm09:02:07

Assosh, no?

dominicm09:02:20

It's an abbreviation, not a new word

marcus09:02:54

It is a Clojure word! It is very real to me 😛

marcus09:02:52

What I’ve learned so far is that the English speaker always tries to find the path of less resistance when pronouncing words.. (like law’r*and’order) and asso*sh to me is difficult to say.. But I’ll learn 😄 Thanks for the discuKion guys 😁

Conor09:02:20

Show your erudition by pronouncing Caesar as Kaiser

dominicm09:02:23

Depends where you are. My enunciation is terrible. Wa'er instead of water. Etc

dharrigan09:02:27

As I'm from Norn Iron, don't get me started 🙂

mccraigmccraig09:02:39

uh - do people say "assosh" ? TIL - i've always said assok

Ben Hammond09:02:27

Americans say assosss

Ben Hammond09:02:49

far too long a sound to be convenient though

Ben Hammond09:02:14

a-sock is alot easier to say

mccraigmccraig09:02:03

ay-sock or ass-ock though @ben.hammond?

Ben Hammond09:02:11

actually I picked up the American pronunciation when I was working with them

Ben Hammond09:02:21

which still irritates me

Ben Hammond09:02:27

because its harder to say

cddr09:02:45

I guess the first time I did lisp “with others” was in America too so I’m another ass-oss-er

cddr09:02:39

I might have infected a fairly large population of UK clojure users with this tradition :rolling_on_the_floor_laughing:

acron09:02:24

+1 ass-ock :rolling_on_the_floor_laughing:

acron09:02:13

disjis my least favourite fn to say out loud

rhinocratic10:02:14

Morning. "A sock". 🧦 (and another sock)

Ben Hammond10:02:34

sock it to 'em

🙂 4
jarohen10:02:16

morning 🙂 another assosher here :raised_hand:

Ben Hammond10:02:37

oooh yellow warning for snow

rickmoynihan10:02:06

ass-oh-sh, diss-oh-sh here

acron11:02:30

Surprised at how many people use lein run in production

rickmoynihan11:02:17

Yeah that surprised me too

rickmoynihan11:02:34

It has the benefit that dev and prod are more similar; and you can essentially bootstrap the environment in the same way you do in dev (i.e. you can use lein to fetch the app dependencies etc… But that also has disadvantages

maleghast15:02:14

I thought everyone was a-soh-sh

maleghast16:02:00

I don't run Clojure on my Mac anyway, but still...

Conor16:02:12

There are some spicy takes going on on that Github issue

mccraigmccraig15:02:49

i think on first seeing assoc i thought of malloc and so it has forever been ass-ockfor me

kipz15:02:53

ditto! :rolling_on_the_floor_laughing:

mccraigmccraig16:02:13

showing my age... it's been a very long time since i had to use malloc in anger

kipz16:02:38

For me, over 20 years - thankfully! 🙂

mccraigmccraig16:02:40

gc seemed like a wonderful thing for a while, but these days i'm looking enviously at rust and carp and thinking that no-gc would be even better

kipz16:02:25

I'm feeling even older now 😛

seancorfield17:02:14

I use to say assock but Rich said it's assosh so I switched (as often as I can remember to!).

Conor17:02:43

Prescriptivism in language is trying to hold back the tide

3Jane17:02:23

good to know, i'd have said assots

mattford21:02:19

I would like to pass in an integrant dependency publisher (could equally be component) to some Sente Event dispatcher code. The publisher in this code could be Kafka/Kinesis handler etc.

(defn start-router! [{:keys [publisher]}]
  (defmethod -event-msg-handler ;; this looks horrible!! Must be a better way...
    :pubsub/publish
    [{:as ev-msg :keys [?data]}]
    "Publish data to pubsub"
    (publisher (:text ?data)))
  (sente/start-server-chsk-router! ch-chsk event-msg-handler))
Whilst this works it feels all sorts of wrong....

dominicm22:02:50

Don't do that. You're having a global effect.

dominicm23:02:21

The simple answer is that you can't scope multi methods. They'd need to take a "context" argument or something with the state in.

mattford08:02:46

yeah - I've been shying away from that as it's only one defmethod that needs this right now.

dominicm08:02:10

I've had quite a few ideas about this in the past, but they all involve dropping the multi method

dominicm08:02:43

For example, you could replace it with a direct subscription into a pubsub bus of some kind.

mattford08:02:02

I think I'll swap out sente/start-server-chsk-router! with an almost exact copy but that also let's me pass some additional state in for the event-msg-handler to use.

dominicm08:02:22

You could use something like an atom to store the function and pass the atom around as a "registry". Although I'd probably deref it once start was complete.

mattford08:02:35

Cool - some ideas to have a play with - cheers!