This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-03
Channels
- # aws (1)
- # beginners (5)
- # boot (46)
- # cider (6)
- # cljs-dev (421)
- # cljsrn (74)
- # clojure (77)
- # clojure-greece (1)
- # clojure-italy (7)
- # clojure-russia (12)
- # clojure-serbia (42)
- # clojure-sg (1)
- # clojure-spec (10)
- # clojure-uk (38)
- # clojurescript (40)
- # core-async (14)
- # data-science (1)
- # datomic (18)
- # emacs (2)
- # events (1)
- # garden (4)
- # gorilla (4)
- # graphql (5)
- # hoplon (69)
- # luminus (1)
- # lumo (1)
- # off-topic (31)
- # om (31)
- # om-next (2)
- # overtone (3)
- # pedestal (1)
- # precept (4)
- # re-frame (23)
- # reagent (2)
- # remote-jobs (1)
- # ring-swagger (23)
- # rum (7)
- # spacemacs (7)
- # sql (4)
- # unrepl (9)
- # untangled (5)
- # vim (11)
- # yada (5)
Singapore Clojure Meetup tomorrow night, welcome to join. https://www.meetup.com/Singapore-Clojure-Meetup/events/240601551/
For testing cljs during CI is this a good way to go https://github.com/bensu/doo ?
Is it possible to globally intercept http requests/responses in https://github.com/r0man/cljs-http/ ? Is there any other cljs lib provides that
Hello, is there some trick to getting debugf from timbre working in node.js now? infof works, and debugf was working a few weeks ago for me.
@theasp guessing here...
(set! js/console.debug js/console.log)
?What’s a good way to mock out external javascript libraries during unit tests?
@pesterhazy Awesome, that did it, thanks!
My question is pretty ambiguous. I’ll give a more concrete example. I’m trying to test a function that calls a js library like so (.view obj {})
. In Clojure, I would use
(defprotocol Viewable
(view [v]))
(defrecord SpyViewable [called]
Viewable
(view [_] "viewed"))
(.view (SpyViewable. {}))
In this example, in ClojureScript, I cannot call the view
fn with the dot notation .view
.
Is there a way to do this in ClojureScript?
thanks @rauh
there really needs to be a meta-guide on javascript objects and clojurescript objects/protocols and the mechanics of their relationships
Re testing clojurescript apps - are there any recommendations along the lines of karma or something ?
That would definitely help me @bhauman, though I must admit that I know the JVM better than JavaScript, so I may just be ignorant of the details.
@len, I currently use https://github.com/bensu/doo
thanks @tankthinks
It abstracts out the JS environment; that way you can run on phantom
, slimer
, chrome
, etc
it’s a good place to start
Hi, I've been scratching my head for a while already with this one, it's an extern / umd related problem - how to use a webpack compiled library (umd) in cljs? I posted the question with code samples on SO: https://stackoverflow.com/questions/44893233/using-webpack-compiled-library-as-external-in-cljs
Hi there, I am wondering if someone knows a way to jsonify a data structure that contains namespaced keyword into json that keeps the namespaced in the strings. clj->js
only keeps the name
of the keywords.
@len we use Karma directly for CLJS testing in CI
https://github.com/Day8/re-frame-http-fx/blob/master/test/day8/re_frame/test_runner.cljs is a good example
@dohxis I use here... we are all newbies in a way or in another
I am just playing around with clojurescript and I am trying to do something strange and I dont even know if its possible. Here is a little example what I am trying todo
dohxis: you should just be able to do
(def functions {:inc inc :dec dec})
((get functions :dec) 5)
that is cool!
you should use partial function
it should end up in something like
(def functions {:increment (partial inc) :defrement (partial dec)})
((get functions :increment) 1)
=> 2
my turn to ask a newbie question, why does some variable are surrounded by asterisks. for instance *anti-forgery-token*
in some ring modules.
I guess this answers your question https://stackoverflow.com/questions/1986961/how-is-the-var-name-naming-convention-used-in-clojure
@dohxis is does, thanks!