This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (18)
- # beginners (16)
- # boot (13)
- # bristol-clojurians (1)
- # cider (41)
- # clojure (116)
- # clojure-berlin (1)
- # clojure-italy (2)
- # clojure-japan (6)
- # clojure-russia (94)
- # clojurescript (46)
- # clojutre (5)
- # core-matrix (2)
- # cursive (1)
- # datascript (14)
- # datomic (10)
- # devops (73)
- # editors (3)
- # emacs (19)
- # hoplon (382)
- # jobs (1)
- # ldnclj (8)
- # ldnproclodo (4)
- # off-topic (50)
- # onyx (3)
- # reagent (2)
- # yada (19)
Are there any down sides to having a bunch of (lets say 50-200) go-loops parked and waiting?
So much progress since 3 years ago: http://www.infoq.com/presentations/ClojureScript-Optimizations
Does anyone know how to get an attribute from an element using
clojure.browser.dom? I see how to set them, but not how to get them.
@andrewvida: not familiar w/ that ns but it's apparently not recommended for use: https://groups.google.com/d/msg/clojurescript/OqkjlpqKSQY/X_nG2ZF7j6EJ
hmm. I was checking out this wiki page (https://github.com/clojure/clojurescript/wiki/Google-Closure-Library) and it was mentioned to try the wrappers first.
@nullptr, you wouldn’t happen to know how to get a property of an element thru goog.dom would you? do I have to query for it?
yep, exactly! thanks! there’s closure libraries, jquery, jquery wrappers. so many ways to get the information we’re looking for. It seems I always forget about going straight interop.
yeah — note that google closure tends not to have wrappers for things that it doesn’t need to, so if you don’t find it that’s often intentional and in those cases going direct is fine
one other note — the above syntax will work for standard dom properties because they are externed, it won’t necessarily work if you have a custom attribute or something — there, you can either use
(.getAttribute element key) or
fwiw i’ve never needed to use jquery for anything in google closure land, it’s pretty much all there :)
@nullptr I’m in the process of removing all of the jquery references in our app because of that last statement. like you said, it’s all in there!
Still working on this ClojureScript FAQ, I added a section where I make some claims about the community. I really don't want to speak illegitimately in the name of everyone here, so I would really appreciate if some of you could review it. https://github.com/vvvvalvalval/reagent-phonecat/wiki/Questions-about-ClojureScript#community
what do you think about this hack? 😉 https://github.com/darwin/cljs-devtools/commit/962ee490c985d0fffff325c0d0f6c7632dac8092
@darwin: if it works as advertised that would be great, and cut down on my mental health treatment bills
@val_waeselynck > people are very reactive would this maybe be better : people are very responsive