This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-15
Channels
- # admin-announcements (7)
- # alda (1)
- # aws-lambda (1)
- # beginners (12)
- # boot (20)
- # cider (59)
- # cljs-dev (4)
- # cljsrn (69)
- # clojure (232)
- # clojure-austin (3)
- # clojure-austria (1)
- # clojure-belgium (2)
- # clojure-canada (3)
- # clojure-dev (16)
- # clojure-greece (33)
- # clojure-nl (4)
- # clojure-quebec (12)
- # clojure-russia (12)
- # clojure-spec (27)
- # clojure-uk (38)
- # clojurescript (29)
- # community-development (7)
- # component (53)
- # core-async (16)
- # core-logic (1)
- # datascript (7)
- # datomic (11)
- # editors (7)
- # emacs (69)
- # hoplon (157)
- # keechma (1)
- # lambdaisland (2)
- # lein-figwheel (31)
- # leiningen (8)
- # mount (3)
- # off-topic (11)
- # om (23)
- # onyx (64)
- # planck (2)
- # re-frame (18)
- # reagent (21)
- # specter (118)
- # untangled (145)
- # yada (1)
:type “submit"
:on-key-press (fn [e] (when (= 13 (.-charCode e)) (foo)))
:on-click (…)
@urbanslug: Looks fine, though I'd use google library to get more robustness: https://gist.github.com/rauhs/c4c250b965af0c4642517b4514e3597b
in clojure i’m used to do something like this: (defmethod print-method Point [v w] (.write w "P[" (:x v) "," (:y v) "]"))
an example usage: http://clojurescriptmadeeasy.com/blog/print-goog-datetime-as-inst.html
by the way, not sure that printing goog.DateTime as #inst is a good idea. Probably better to always store js/Date and convert to and fro as needed
@pesterhazy: it’s usually fine to do that for application code
@mfikes: exactly what I want to hear! heard you on Defn podcast as well. Lots of good info keep up the awesome work.
oh really that's great! (I mean planck on Linux), where where where 🐕
I’m thinking, I write useful functions in cljc so that they can be used in whatever,
And that will…. just work, provided I do a lein install
where those library functions are?
My mental model of how dependencies are the same and different for clj and cljs is not very solid, other than, I understand that macros require JVM at this time
@mathpunk: Generally dependencies in ClojureScript are handled by “being on the classpath”. (This also true for Planck.)
@mfikes: I’m a brand new JS developer at work. Is “being on the classpath” equivalent, or more or less equivalent, to “being in node_modules”?
@mathpunk: The idea of “classpath” is generally documented out there. If you want to see it with respect to ClojureScript, perhaps take a look at the QuickStart guide and note where -cp
is being used.
@kauko: is your regex issue with clojure.string/replace
similar to http://dev.clojure.org/jira/browse/CLJS-485?