This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-15
Channels
- # admin-announcements (60)
- # adventofcode (37)
- # beginners (53)
- # boot (94)
- # bristol-clojurians (1)
- # cider (21)
- # clara (19)
- # cljsrn (1)
- # clojure (222)
- # clojure-chicago (1)
- # clojure-dev (2)
- # clojure-nl (11)
- # clojure-russia (301)
- # clojure-turkiye (1)
- # clojurecup (6)
- # clojurescript (30)
- # core-async (3)
- # cursive (64)
- # datascript (2)
- # datomic (55)
- # devops (16)
- # editors (1)
- # emacs (16)
- # ldnclj (6)
- # off-topic (18)
- # om (113)
- # onyx (3)
- # parinfer (1)
- # proton (48)
- # re-frame (20)
- # reagent (7)
Does anyone have an example project that reads an HTML file, converts it to a dommy tree and then run tests against that? I'm trying to pull out micro-data from various websites. Presently It takes around 10 seconds for me to know if I've made the right move in my Chrome extension. I'm just found that the recommended way to test is with cljs.test. I'm not really sure where clojure ends and clojurescript begins.
When I compile my projects there’s generated a directory called dev-resources
. There’s no reference to such a directory in my code and I haven’t been able to find any documentation for it. Can I prevent it?
@hkjels: it is created by leiningen, look here https://github.com/technomancy/leiningen/issues/2010
https://github.com/funcool/cuerdas is pretty cool for strings, though I find trim
not removing newlines a bit confusing.
I just copy-pasted a function from Stackoverflow, which suits the rest of the project better
is there a good/popular linter for clj/cljc/cljs?
@eyelidlessness: Kibit is apparently cljs compatible. It's pretty lightweight and focuses mostly on making forms a little more idiomatic.
i'm looking at kibit, thx. i'm hackily trying to shove an XML reporter into it to see if i can use it in CI (and then i may offer a PR for a proper formatter)
Which CI do you use?
CircleCI
any good reason why my record might be printing to the console as [object Object]
?
@erik_price: I dunno about why, but this is pretty cool for printing out Cljs values to the Console - https://github.com/binaryage/cljs-devtools
I guess “why” is the wrong question – what I should ask is, “is that expected”?
Doh. Thanks jaen but it turned out to be a PEBKAC
I had a function that i thought was returning a channel at the end of the function body, but the channel was inside of a go
block, so it was returning the go block channel, which delivered the actual channel i wanted to send (instead of the record)
i’ll check that out, too