Fork me on GitHub
#clojurescript
<
2015-08-25
>
ricardo06:08:44

@martinklepsch: Thanks for mentioning closure-defines, I didn’t know of it.

martinklepsch06:08:30

@darwin: @tel: When you use symbols in the :closure-defines map you don't need to "munge" the keys by hand.

darwin07:08:11

@martinklepsch: that didn’t work for me for some reason

cfleming07:08:18

So WebKit continues to be totally awesome: https://www.webkit.org/blog/3846/

martinklepsch08:08:22

@darwin: repro/bug report would be great :)

pxlpnk08:08:38

cfleming: doesn't chrome already have something like this?

cfleming08:08:07

@pxlpnk: I don’t know, I’m not really up with the state of JS debug tooling

pxlpnk08:08:27

me neither. I don't do clientside stuff if I don't have too

cfleming08:08:32

I know it has some profiling info, but I don’t know if it has the type profiling.

cfleming08:08:55

@pxlpnk: Comments in HN suggest no, paulirish is Mr Chrome Devtools.

pxlpnk08:08:25

oh. I also ignore HN 😄

cfleming08:08:43

It’s occasionally useful simple_smile

pxlpnk09:08:30

If I start reading the comments I mostly get sick and angry. so i prefer not to. 😄

caskolkm09:08:19

Can anyone recommend an analytics tool to track behaviour of users?

escherize09:08:19

I have had a good experience with inspectlet

Oliver George11:08:53

Thanks @timgilbert I'll check it out.

afhammad12:08:37

Are there any down sides to having a bunch of (lets say 50-200) go-loops parked and waiting?

robert-stuttaford12:08:58

don’t think so simple_smile

robert-stuttaford12:08:16

it’s all just event handlers under the hood

robert-stuttaford12:08:43

here’s 10,000 running in parallel

afhammad13:08:47

@robert-stuttaford: ok, thought so but wanted to make sure, thanks!

andrewvida15:08:37

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.

jackjames15:08:03

@andrewvida: not familiar w/ that ns but it's apparently not recommended for use: https://groups.google.com/d/msg/clojurescript/OqkjlpqKSQY/X_nG2ZF7j6EJ

andrewvida15:08:03

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.

nullptr16:08:53

andrewvida: nice catch, I updated the wiki entry

andrewvida16:08:40

welcome @nullptr! thanks for updating that!

andrewvida16:08:40

@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?

nullptr16:08:30

you want to get the value of a dom property element?

nullptr16:08:08

(.-propname element-reference)

andrewvida16:08:46

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.

nullptr16:08:57

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

nullptr16:08:41

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 goog.dom.dataset

nullptr16:08:18

fwiw i’ve never needed to use jquery for anything in google closure land, it’s pretty much all there :)

andrewvida16:08:20

@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! simple_smile

andrewvida16:08:36

@nullptr thanks again for all of your help!

nullptr16:08:05

any time — welcome to the [google closure] dark side!

andrewvida16:08:13

haha! it’s working out pretty well. more people should give it a try!

val_waeselynck19:08:49

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

danielcompton20:08:56

@darwin: if it works as advertised that would be great, and cut down on my mental health treatment bills

andre.richards21:08:14

@val_waeselynck > people are very reactive would this maybe be better : people are very responsive

noisesmith23:08:17

I don't know about anyone else but if you put me in a smaller bounding box I definitely reconfigure