Fork me on GitHub
#reagent
<
2015-12-07
>
mikethompson01:12:27

What toolchain or hosting option should we use for Reagent's docs: https://github.com/reagent-project/reagent/issues/209

eggsyntax03:12:28

Sounds to me like the commenter was expecting Reagent to be more like Rails or any of the other frameworks that mandates a very specific approach, rather than an architecture-agnostic tool. It's like saying that horses are lame because you can't milk them...

eggsyntax03:12:11

Or like saying bricks are terrible because you can build houses with them that fall down quickly 😉

trancehime03:12:41

I basically agree with the statement, he hurt himself using Reagent and is using his personal experience as a basis for shaming the entire thing, which is kind of faulty

trancehime03:12:04

That said, curiously, I noticed when running on-change in my standalone input tag (Not wrapped in a form object) anything I type into it gets casted into a string

trancehime03:12:28

Hmm, I'd do like to wonder how I can force it to be int

mikethompson04:12:04

@eggsyntax @trancehime I have no problem dismissing the content of his rants at all. His assertions are rubbish in my experience. BUT .... the fact someone got themselves into that much of a pickle isn't good. So I'd like us to provide some more advice. But first we have to solve the docs issue.

trancehime04:12:54

That much is certain. I have to admit that the docs weren't exactly amazing speaking as a new user of Reagent myself

trancehime04:12:09

(I actually started using CLJ+CLJS+related stuff at the start of November)

mikethompson04:12:56

(sorry if I'm stating the obvious but ...) you should definitely look through the "Reagent Tutorials" section at the bottom of https://github.com/Day8/re-frame/wiki#reagent-tutorials)

trancehime04:12:37

oh actually I made extensive use of your re-frame stuff

trancehime04:12:49

So thanks for that simple_smile

trancehime04:12:40

The README there was pretty enlightening

mikethompson12:12:24

I've written up a page on using stateful JS components from within Reagent/Re-frame: https://github.com/Day8/re-frame/wiki/Using-Stateful-JS-Components It is a very green document. Almost certainly has typos. Any feedback about content appreciated.

pepe13:12:45

@mikethompson: I just started with embedding of the google map to my app. Are you reading my mind?

pepe13:12:10

I used the reagent cookbook version, but I will try this instead. Thank you very much!

mikethompson13:12:13

In that case, you are the offical crash test dummy simple_smile

pepe13:12:17

😄

mikethompson13:12:39

Ohh, there is a cookbook version .... let me check

mikethompson13:12:49

I could be repeating what's already there

mikethompson13:12:23

They overlap a bit, but equally they both show slightly different things.

mikethompson13:12:37

I'll talk to @gadfly361 about merging

pepe13:12:43

I like your version more 😉

pepe13:12:04

but haven’t tried yet

mikethompson13:12:32

Yeah, my version is untest simple_smile ....I was more interested in showing the concept, and I needed an example.

mikethompson13:12:57

So I took one from a Gist I helped to develop some time ago .... but like I said ... it is untested by me

mikethompson13:12:07

As a result .... you are the crash test dummy simple_smile

pepe13:12:09

fully understand, I will test it in the moment

mikethompson13:12:13

Please report back, if you live

pepe13:12:17

😄

pepe13:12:26

yes sir!

mikethompson13:12:02

And feel free to hack away at the Wiki page to add what you think is needed.

mikethompson13:12:43

I'm off to bed.

pepe13:12:35

good nite, and thank you very much for your work! Sweet dreams

pepe13:12:46

@mikethompson: happy to report, that it works for me as advertised

gadfly36116:12:06

@pepe @mikethompson Woot, glad it works! We will update the cookbook soon to reflect this in some form

pepe16:12:44

@gadfly361: only thing, which I am just now solving is the advanced optimization. I added externs.js file and conf to project.clj to [:cljsbuild {:id „min“} :compiler], but somehow I am still getting: Uncaught TypeError: google.maps.ef is not a constructor

pepe16:12:50

ok, I am using more that Map and LatLng, so it could be it? I will try to add other classes

gadfly36116:12:59

Yeah, if you are using more than just those, try covering them in the externs

pepe16:12:11

@gadfly361: and :externs [„externs.js“] conf goes to :compiler part? Or the outer one please?

gadfly36117:12:53

Inside :compiler for the min build

pepe17:12:39

yeah, still no luck 😞. I must be doing something stupid. Still thank you. The cookbook saved me lot of research 😉.

gadfly36117:12:01

Np, not sure what's going wrong. In my experience working with externs is never painless lol

pepe17:12:01

😄 my first encounter to say the truth. So maybe I need some fight

gadfly36117:12:38

Ping me if you have any success, i plan to take a look tonight too when i see about including in the cookbook

pepe17:12:00

No luck. And unfortunately, I must go home (babysitting tonite), so tomorrow I will try it again from another angle 😉. Bye