ldnclj

Find us on #clojure-uk
thomas 2015-07-16T07:47:02.001969Z

Ma Lie

jamiei 2015-07-16T07:54:22.001970Z

Morning

pupeno 2015-07-16T07:59:08.001971Z

Good morning.

mccraigmccraig 2015-07-16T08:10:07.001972Z

moaning

thomas 2015-07-16T08:49:40.001973Z

has anyone here tried cljc yet (reader conditionals)?

mccraigmccraig 2015-07-16T08:58:07.001974Z

@thomas yes : i've just been working on a lib for message encoding/decoding/validation which is shared between the cljs ui and clj backend

mccraigmccraig 2015-07-16T09:00:54.001975Z

the only difficulty i had was with expectations tests... the lein-expectations plugin didn't seem to recognise tests in .cljc files, so i had to separate out .cljs and .clj test files which were basically identical... this looks to be a problem with lein-expectations though

thomas 2015-07-16T09:10:10.001976Z

so where should I put my cljc file? so that it will get picked up by both my clj and cljs code?

pupeno 2015-07-16T09:16:25.001977Z

Hello.

mccraigmccraig 2015-07-16T09:16:40.001978Z

thomas: you can have a merged source-tree of clj, cljs and cljc files : have a look at : https://github.com/funcool/cats/

thomas 2015-07-16T09:17:23.001980Z

thanks @mccraigmccraig I'll have a look at that

mccraigmccraig 2015-07-16T09:19:53.001981Z

thomas: there are also examples in cats of how to do macros for cljs consumption in the same cljc file as the non-macro code : https://github.com/funcool/cats/blob/master/src/cats/core.cljc#L41

agile_geek 2015-07-16T09:42:42.001982Z

I know it’s a long way off and not a Clojure specific conf, but is anyone planning to go to QCon 2016 in London in March? I’m thinking of booking before Sept.

malcolmsparks 2015-07-16T12:05:34.001984Z

I've ported bidi to cljc (in a branch) but can't figure out how to get the cljs tests to pass - hoping someone will figure out cljc+ cljs testing so I can copy 😞

malcolmsparks 2015-07-16T12:05:52.001985Z

but if anyone can point me to anything, i'd be really grateful

mccraigmccraig 2015-07-16T12:27:43.001986Z

malcolmsparks: cats (url above) has tests working from cljs : "lein cljsbuild test" ... i copied their approach to my repo straightforwardly