This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-10
Channels
- # admin-announcements (1)
- # boot (464)
- # braid-chat (4)
- # cider (6)
- # cljs-dev (7)
- # cljsrn (1)
- # clojars (1)
- # clojure (26)
- # clojure-france (1)
- # clojure-japan (6)
- # clojure-russia (35)
- # clojure-uk (3)
- # clojurescript (25)
- # cursive (5)
- # hoplon (389)
- # om (20)
- # om-next (1)
- # onyx (5)
- # other-lisps (1)
- # overtone (9)
- # planck (12)
- # proton (7)
- # re-frame (10)
- # reagent (13)
- # ring (23)
- # spacemacs (11)
Quick question (which y’all have probably seen a ton of times but google yields few results): Any idea why trying to make use of NavigateIOS yields the exception “put reactNavSuperviewLink back”?
NavigatorIOS, rather
whoops, wrong channel. Sorry
@mfikes: macros are definable in KLIPSE
But only for simple cases
For more interesting cases, it doesn’t work e.g. http://app.klipse.tech/index-dbg.html?cljs_in=(ns%20foo.core%24macros)%0A%0A(defmacro%20hello%20%0A%20%20%5Bx%5D%0A%20%20(prn%20%26form)%0A%20%20%60(inc%20~x))%0A%0A(foo.core%2Fhello%2012)%0A%0A(defmacro%20dbg%5Bx%5D%20(println%20%22form%3A%20%22%20%26form)%20%60(let%20%5Bx%23%20~x%5D%09%20(str%20%27~x%20%22%3A%20%22%20x%23)))%0A%0A%0A(dbg%20%27(map%20inc%20%5B1%202%2030%5D))%0A
How do you guys test macros? clojure tests "is" doesn't eval them?!
(deftest minimal
(is (=(core/make-chart {:initial {}} [])
(macros/defchart db))))
Gives me:
FAIL in (minimal) (:)
expected: (= (core/make-chart {:initial {}} []) (macros/defchart db))
actual: (not (= {:nodes {:initial {}}, :transitions []} (core/make-chart {:initial {}} [])))
Only info I found is: https://groups.google.com/forum/#!topic/clojure/nAybQ7tDgSw where Mr Sierra wrote "call the macro, the form of the macro is an implementation detail". That's what I did, without success
Hi all, I’m writing a Clojurescript app that (I think) needs a Clojure backend (it has to query a postgres database). I just want to run this code on my machine locally, I don’t need to deploy anywhere. How do I interact with that Clojure backend? Does the backend need an HTTP server like ring? Is there a simpler way? Any help majorly appreciated
@ccann: If I were doing it, I’d consider making a simple REST call to the backend, but with the data encoded using Transit. That way you can pass Clojure(Script) data back and forth painlessly.
@ccann: I'd use Transit because it is easiest. (Easier than JSON encoding.) Invoking the API for any of the serialization libraries typically involves very little code.
This question feels stupid to me but I’ve never really written code that spans server to client like this before. A server is necessary right? even if I’m running both client-side and server-side code on my laptop I have to serve up content from clojure and consume it via some protocol like HTTP right?
@ccann: just as alternative, if you want a prepackaged framework, Luminous does already a lot of the things you wrote
IIRC edn is faster than transit for small loads.
Hi all. Can anyone point me to the current state-of-the art solution for i18n (translation) in the client (cljs)? All the packages I find are either abandoned or pre-release.
I am also considering using FormatJS, but it requires JS interop and depends on the availability of window.Intl in the browser, which Safari doesn't support
@vincentdm: is Google Closure i18n suitable?