clojure

New to Clojure? Try the #beginners channel. Official docs: https://clojure.org/ Searchable message archives: https://clojurians-log.clojureverse.org/
2021-07-04T01:18:37.350200Z

So, has anyone tried Github's Copilot with Clojure yet?

reefersleep 2021-07-06T09:24:48.387800Z

Is the jury not still out on whether it’s unethical?

reefersleep 2021-07-06T09:25:09.388Z

(per Hacker News, I’ve only read cursorily about it)

fubar 2021-07-04T01:52:13.351900Z

I was browsing for wireframing tools and found one called Whimsical, was surprised to find out it was made in Clojure! Looks like it might be a good alternative to Balsamiq. Has anyone tried it?

lukasz 2021-07-04T15:43:01.354700Z

It's amazing - my team uses it for diagrams, mockups, designs and lots of other things. Recently they've added docs support so it makes it a simple alternative to notion/confluence/etc

fubar 2021-07-04T01:53:09.352200Z

Here is the blog link from that screenshot https://whimsical.com/blog/how-we-built-whimsical

danielgrosse 2021-07-04T19:27:39.356300Z

How could I write a let in a clojure test and in the body some is statements?

seancorfield 2021-07-04T19:44:20.356700Z

@danielgrosse Do you mean like this:

dev=> (deftest example
 #_=>   (let [x 1 y 2]
 #_=>     (is (= 1 x))
 #_=>     (is (= x y))))
#'dev/example
dev=> (example)

FAIL in (example) (dev.clj:4)
expected: (= x y)
  actual: (not (= 1 2))
nil

danielgrosse 2021-07-04T20:23:44.357700Z

Yes. But running it in Cider doesn’t recognize the test so I thought it is not possible.

Ed 2021-07-05T09:11:33.359100Z

how are you running the tests? is the test in what cider would consider a test namespace? (ie. it ends in -test, and the file name is correct). This works for me in multiple projects using Cider.

vemv 2021-07-05T10:56:09.359500Z

The snippet looks good (assuming that is refers to clojure.test/is) No assertions (or no tests) were run.Did you forget to use 'is' in your tests? indicates that your tests were run. But for some reason it didn't detect that is was in fact run (it detects so for ensuring that the ran deftests are valid). First I'd check if lein test <the namespace> succeeds and reports at least 1 assertion being run. If that succeeds, then you might find help in #cider

vemv 2021-07-04T20:32:41.357800Z

doesn't sound like that's the case. cider in fact recognises arbitrary custom macros that would expand to deftest could you post a snippet?