Fork me on GitHub
#clojure-uk
<
2018-03-23
>
yogidevbear07:03:37

Morning. Why are you up so early @dominicm?

dominicm07:03:18

@yogidevbear Dog is taking new medication that he needs to have every 8 hours. I get the morning shift, Katie gets the night shift.

yogidevbear07:03:37

Sounds like the late shift isn't that late ๐Ÿ˜‰

yogidevbear07:03:01

Is this short term meds?

dominicm07:03:16

You're quite right ๐Ÿ˜›. Part of that is that we also have to balance with the dog sitter who can't do the tablets at certain times. Long term. His seizures have become more frequent, and this is the best drug to help with that. So far it seems to be working, which is great. There's little-to-no side effects either, very safe, compared to the alternatives anyway.

๐Ÿ˜” 8
๐Ÿ‘ 12
yogidevbear10:03:14

That's really good news. Hope they are a permanent working solution ๐Ÿ™‚

otfrom08:03:52

@dominicm I hope the tablets work

dominicm08:03:08

Thanks. Me too.

jasonbell09:03:55

morning friends

otfrom09:03:23

@jasonbell aren't you going to say good morning to me too?

jasonbell09:03:12

But @otfrom there are so many names to use and I'd think it rather prudent that others in the channel not see..

jasonbell09:03:29

I'll PM you though

otfrom09:03:55

:hugging_face:

maleghast09:03:28

Morning Chums!

maleghast09:03:04

@dominicm - new meds sound cautiously positive - will continue to keep fingers crossed, our two have their paws crossed too ๐Ÿ˜‰

maleghast09:03:44

How is everyone doin' on this VERY RAINY(*) Friday? (*it is VERY RAINY here anyway)

maleghast09:03:49

Also, for anyone able to "listen freely" wherever you are working, David Byrne is on Desert Island Discs! (Clearly you might want to wait until it's finished by this point and listen again, but in case anyone would be interested)

dominicm09:03:06

It's a bit grey here. But no rain. Doesn't it always rain in Scotland?

mccraigmccraig09:03:18

i can confirm that it always rains from manchester on up north @dominicm

maleghast10:03:17

Not always, no - was a lovely dry day with some blue skies yesterday ๐Ÿ™‚

mccraigmccraig10:03:49

sadly that's just a mass hallucination @maleghast

๐Ÿ˜‚ 4
maleghast10:03:08

Hahahahahahahahaha

๐Ÿคฏ 8
thomas10:03:41

moin moin... no rain here in Rotterdam either.... (for the moment being)

mccraigmccraig10:03:06

you are safe @thomas - south of the manchester permarain curtain - https://bit.ly/2IHkAAJ

yogidevbear10:03:25

Lovely day here down south... Walked the dogs, walked the little human to school, and went for a 5km run

yogidevbear10:03:39

โœจ โ˜• โœจ

yogidevbear10:03:22

It's like a summoning spell

chrjs10:03:11

Heh, indeed.

guy10:03:57

haha thats great ๐Ÿ™‚

thomas11:03:04

@mccraigmccraig hmm just under 7 hours... not bad actually.

otfrom11:03:38

@maleghast pay no attention to those who are trapped in lands down south

mario-star 12
8
mccraigmccraig13:03:29

a namespace layout question for y'all - i quite like the pattern of a top-level namespace for a module stuff.foo with various implementations in sub-namespaces stuff.foo.api stuff.foo.model etc and the top-level requiring the impl namespaces and maybe re-exposing stuff with potemkin or simple defs. however -

mccraigmccraig13:03:05

this doesn't play well with using the top-level namespace for namespaced keywords :stuff.foo/thing because you can't require stuff.foo in the impl namespaces (:require [stuff.foo :as foo]) (circ. dep) to get short-form keywords like ::foo/thing

mccraigmccraig13:03:33

so, does anyone have any favoured namespace layouts which also let you use aliased namespaced keywords ?

mccraigmccraig13:03:11

atm i'm only using longform for namespaced keywords in the impls, which works ok, but makes for some quite long lines sometimes

sundarj13:03:34

does using the alias function directly instead of requireing from the impl namespaces work?

chrjs14:03:28

Hmm, I see your problem @mccraigmccraig. In our code that has fully namespaced keys, theyโ€™re usually in a dedicated namespace for the datastructure(s) theyโ€™re describing. For instance stuff.foo has business logic, but we get a bunch of data describing, I dunno, say quuxes. Weโ€™d have a separate stuff.quux namespace that implements a repository pattern on quux and use ::quux/thing throughout all of stuff.foo.api and stuff.foo.model.

mccraigmccraig14:03:19

alias does appear to work @sundarj

chrjs14:03:38

Thatโ€™s not always applicable though and in our case is probably an accident of design/our particular codebase.

mccraigmccraig14:03:48

oops, rather @sundarj (alias 'foo (create-ns 'stuff.foo)) appears to work ๐Ÿ˜ฌ

mccraigmccraig14:03:23

it's a bit smelly though

sundarj14:03:25

i suppose there's always the option of having something like

boot.user=> (def main-kw (partial keyword "org.foo.bar.baz"))
#'boot.user/main-kw
boot.user=> (main-kw "hello")
:org.foo.bar.baz/hello
as well

mccraigmccraig14:03:31

yeah, it doesn't look like a kw then, which makes scanning code harder...

sundarj14:03:55

that is true

mccraigmccraig14:03:26

@chrjs i would do that where it makes sense - with the module i'm looking at atm they keyword is part of it's api, so it doesn't make sense there

chrjs14:03:13

Fairy nuff.

Richard21:03:29

If all goes to plan, the Bristol Clojurians will have a presentation next week: https://www.meetup.com/Bristol-Clojurians/events/246760597/ instead of the usual study group.

๐Ÿ‘ 16
dominicm21:03:07

I'm going to be there too :)

Richard22:03:04

Looking forward to meeting you :)