[ClojureScript] Re: re-frame with a large application

2015-03-17 Thread Mike Thompson
On Tuesday, March 17, 2015 at 6:53:59 AM UTC+11, Michael Campagnaro wrote: > First off, re-frame looks really great, Mike. Thanks for writing it. > > My team has been working on a Reagent SPA for half a year and it's our first > CLJS project so we are feeling some pain due to design choices that

Re: [ClojureScript] Re: re-frame with a large application

2015-03-17 Thread Mike Haney
Text input is one of the cases where local state can make sense, I was just pointing out some of the problems you can run into. Like if you need to validate as the user is typing instead of when you submit the form. If undo/redo is a requirement, then you have a valid point. Personally, I thi

Re: [ClojureScript] Re: re-frame with a large application

2015-03-17 Thread Marc Fawzi
But there is transient state and state that you care to keep. I'm not sure why you would want to put transient state like keyboard input into global state before you actually need to transition app state. At that point grab the input component state and put it in global state, then transition, and

Re: [ClojureScript] Re: re-frame with a large application

2015-03-17 Thread Mike Thompson
On Wednesday, March 18, 2015 at 1:09:12 PM UTC+11, Mike Haney wrote: > In my experience, using component local state seems harmless enough in the > beginning, but I almost always find a need to move it to global state as an > app matures. A few common examples: > > - text input: local state wor

Re: [ClojureScript] Re: re-frame with a large application

2015-03-17 Thread Marc Fawzi
That's insightful, but let me poke at these statements anyways, and please correct me where I'm wrong... an exercise in learning: << - text input: local state works great until you start to add validation, then it is usually better to have it in global state. Also, clearing form fields on submiss

Re: [ClojureScript] Re: re-frame with a large application

2015-03-17 Thread Mike Haney
In my experience, using component local state seems harmless enough in the beginning, but I almost always find a need to move it to global state as an app matures. A few common examples: - text input: local state works great until you start to add validation, then it is usually better to have

Re: [ClojureScript] [OM interop] is it possible to use Om components inside React javascript project?

2015-03-17 Thread Juan A. Ruz @tangrammer
Thanks Marc! El martes, 17 de marzo de 2015, 23:13:00 (UTC), marc fawzi escribió: > I think it's possible in Reagent so it should also be possible with Om. In > Reagent there is a "reactify" function > > > "Returns an adapter for a Reagent component, that may be used from > React, for example

Re: [ClojureScript] [OM interop] is it possible to use Om components inside React javascript project?

2015-03-17 Thread Juan A. Ruz @tangrammer
Hi David, currently we are using clojurescript->js compiled functionality inside this "example" project, and the idea was to keep using cljs but solving react views too. Can you give me some insights about how to (I mean ideal pattern) use this om components in common react app? Thanks for you

Re: [ClojureScript] [OM interop] is it possible to use Om components inside React javascript project?

2015-03-17 Thread Marc Fawzi
I think it's possible in Reagent so it should also be possible with Om. In Reagent there is a "reactify" function "Returns an adapter for a Reagent component, that may be used from React, for example in JSX. A single argument, props, is passed to the component, converted to a map." Good luck! In

Re: [ClojureScript] [OM interop] is it possible to use Om components inside React javascript project?

2015-03-17 Thread David Nolen
Yes it can be done but ClojureScript comes with a large standard library. This makes embedding ClojureScript in applications that need to serve JavaScript over a network less than ideal. ClojureScript is at a minimum a 20K gzipped dependency and it goes up (albeit reasonably) from there. David On

[ClojureScript] [OM interop] is it possible to use Om components inside React javascript project?

2015-03-17 Thread Juan A. Ruz @tangrammer
Hi guys, I suppose that it should be possible as soon as Om uses react.js and clojurescript compiles to javascript, but the question is more likely How could I use om js compiled components inside a normal javascript project that is currently using react.js too? Thanks! Juan PS: my situation a

Re: [ClojureScript] Anyone interested in some remote CLJS/Om development work?

2015-03-17 Thread Oliver George
Thanks Marc On Wed, Mar 18, 2015 at 9:03 AM, Marc Fawzi wrote: > > I started is a list for that. > > CC-ing > > Begin forwarded message: > > Hi All > > (I'm not sure how people feel about recruiting on this group. Please pull > me up if I'm out of line.) > > I'm a small software consultancy in

Fwd: [ClojureScript] Anyone interested in some remote CLJS/Om development work?

2015-03-17 Thread Marc Fawzi
I started is a list for that. CC-ing Begin forwarded message: > Hi All > > (I'm not sure how people feel about recruiting on this group. Please pull me > up if I'm out of line.) > > I'm a small software consultancy in Australia - two developers, two part time > graduates. I'd like extra

[ClojureScript] Anyone interested in some remote CLJS/Om development work?

2015-03-17 Thread Oliver George
Hi All (I'm not sure how people feel about recruiting on this group. Please pull me up if I'm out of line.) I'm a small software consultancy in Australia - two developers, two part time graduates. I'd like extra bandwidth to help me with some clojurescript work. Finding local experience is dif

Re: [ClojureScript] Re: Chrome debugging tips for CLJS

2015-03-17 Thread Oliver George
Thanks On Wed, Mar 18, 2015 at 12:27 AM, Antonin Hildebrand < antonin.hildebr...@gmail.com> wrote: > Hi Oliver, > > cljs-devtools[1] is still experimental, but I use it on daily basis and it > has helped me a lot in last few weeks of my Om adventures. > > Sample-integration is here[2] > Real-worl

[ClojureScript] Yet another error starting weasel....

2015-03-17 Thread Jonathon McKitrick
This time in the browser 16:25:10.455 "goog.require could not find: cljs.core"1 main.js:19687:6 goog.require() main.js:19687 weasel.repl.connect main.js:85280 It's really frustrating that I used to have this working perfectly -- Note that posts from new members are moderated - please b

Re: [ClojureScript] Coordinating app state changes with the server.

2015-03-17 Thread Colin Yates
For communication I use https://github.com/ptaoussanis/sente On 17 March 2015 at 18:47, John Chijioke wrote: > Was the most popular way Clojurescript developers use to coordinate changes > to their application state with the server? > > Regards, > John. > > -- > Note that posts from new members

[ClojureScript] Coordinating app state changes with the server.

2015-03-17 Thread John Chijioke
Was the most popular way Clojurescript developers use to coordinate changes to their application state with the server? Regards, John. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the G

[ClojureScript] Re: Mac OS X Classpath issue in Getting Started?

2015-03-17 Thread Mike Fikes
On Monday, March 16, 2015 at 7:35:40 PM UTC-4, Josh Nursing wrote: > I am being frustrated in trying out the latest Clojurescript release on Mac > OS X Yosemite. Not sure what I am doing wrong. I follow the Getting Started > instructions and get this error on launching "java -cp cljs.jar:src > c

Re: [ClojureScript] Re: re-frame with a large application

2015-03-17 Thread platonovadim
On Tuesday, March 17, 2015 at 4:27:30 PM UTC+1, marc fawzi wrote: > << > The main difference with re-frame is that we allow components to subscribe to > events in order to manage their local state as we don't keep everything in > the app state. > > >> > > > That's very cool if what you mean is

Re: [ClojureScript] Mac OS X Classpath issue in Getting Started?

2015-03-17 Thread David Nolen
I don't know what else to suggest other than you're going to need to try some experiments to figure out what going on, the Clojure REPL you started can help you: (System/getProperty "java.class.path") (require 'cljs.closure) etc. David On Tue, Mar 17, 2015 at 2:07 PM, Josh Nursing wrote: > Ye

Re: [ClojureScript] Mac OS X Classpath issue in Getting Started?

2015-03-17 Thread Josh Nursing
Yes, that works and drops me in Clojure 1.6.0 with the user=> prompt. On Tuesday, 17 March 2015 07:30:56 UTC-4, David Nolen wrote: > And `java -cp cljs.jar clojure.main` drops you into a regular Clojure REPL? > > David -- Note that posts from new members are moderated - please be patient with y

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-3115

2015-03-17 Thread Leon Grapenthin
Thanks :) On Tuesday, March 17, 2015 at 12:41:56 PM UTC+1, David Nolen wrote: > > Yes I said earlier that you'll want SNAPSHOT releases of both weasel and > piggieback. The current release of piggieback doesn't include this commit > https://github.com/cemerick/piggieback/commit/966c811ab817df0e8

[ClojureScript] Fwd: [reagent] angular phonecat in re-frame

2015-03-17 Thread Marc Fawzi
Fwd: angular phonecat done in re-frame/reagent -- Forwarded message -- From: Dhruv Parthasarathy Date: Tue, Mar 17, 2015 at 2:30 AM Subject: [reagent] angular phonecat in re-frame To: reagent-proj...@googlegroups.com Hey all, I've ported the angular phonecat tutorial to re-fram

Re: [ClojureScript] Re: re-frame with a large application

2015-03-17 Thread Marc Fawzi
<< The main difference with re-frame is that we allow components to subscribe to events in order to manage their local state as we don't keep everything in the app state. >> That's very cool if what you mean is storing state that no other part of the app needs to know about, like the keys being en

[ClojureScript] Re: re-frame with a large application

2015-03-17 Thread platonovadim
On Monday, March 16, 2015 at 8:53:59 PM UTC+1, Michael Campagnaro wrote: > First off, re-frame looks really great, Mike. Thanks for writing it. > > My team has been working on a Reagent SPA for half a year and it's our first > CLJS project so we are feeling some pain due to design choices that we

[ClojureScript] Re: Chrome debugging tips for CLJS

2015-03-17 Thread Antonin Hildebrand
Hi Oliver, cljs-devtools[1] is still experimental, but I use it on daily basis and it has helped me a lot in last few weeks of my Om adventures. Sample-integration is here[2] Real-world integration can be observed in my current project [3] [1] https://github.com/binaryage/cljs-devtools [2] htt

[ClojureScript] Re: Building ClojureScript locally.

2015-03-17 Thread Sander Dijkhuis
On Tuesday, March 17, 2015 at 6:24:45 AM UTC+1, Kristján Oddsson wrote: > I'm battling something similar to CLJS-1124 and so I wanted to try to figure > out if I could make some changes to the compiler myself and maybe even build > a custom build for myself. > > Is there any documentation on how

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-3115

2015-03-17 Thread David Nolen
We bumped the Closure Compiler dependency which now spews a few innocuous warnings. Feel free to report this one to the Google Closure mailing list. I've already reported the Object type one we get now when using browser REPL. David On Tue, Mar 17, 2015 at 5:46 AM, Max Gonzih wrote: > After upd

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-3115

2015-03-17 Thread David Nolen
Yes I said earlier that you'll want SNAPSHOT releases of both weasel and piggieback. The current release of piggieback doesn't include this commit https://github.com/cemerick/piggieback/commit/966c811ab817df0e818404943c473081337b286e In the case of weasel you might want to try a local install of m

Re: [ClojureScript] Mac OS X Classpath issue in Getting Started?

2015-03-17 Thread David Nolen
And `java -cp cljs.jar clojure.main` drops you into a regular Clojure REPL? David On Tue, Mar 17, 2015 at 6:37 AM, Josh Nursing wrote: > Yes, I had made sure yesterday to grab the latest Java. Removed the > CLASSPATH, re-checked PATH and access to the bin and script, which are > fine, but still

Re: [ClojureScript] Building ClojureScript locally.

2015-03-17 Thread Mike Fikes
You can run script/build and this will cause a locally-built version to be installed in your local Maven repo. Watch the number that gets built and you can use this in your project.clj. These are the same steps as in https://github.com/clojure/clojurescript/wiki/Patches#testing-patches

Re: [ClojureScript] Mac OS X Classpath issue in Getting Started?

2015-03-17 Thread Josh Nursing
Yes, I had made sure yesterday to grab the latest Java. Removed the CLASSPATH, re-checked PATH and access to the bin and script, which are fine, but still no go for me. lein new figwheel followed by lein figwheel appears to work for me though. On Monday, 16 March 2015 22:12:28 UTC-4, David No

[ClojureScript] Re: ANN: ClojureScript 0.0-3115

2015-03-17 Thread Max Gonzih
After update compilation with advanced optimizations displays following warning: WARNING: file:/home/gnzh/.m2/repository/org/clojure/google-closure-library/0.0-20140718-946a7d39/google-closure-library-0.0-20140718-946a7d39.jar!/goog/net/jsonp.js:269: WARNING - Misplaced f unction annotation.

[ClojureScript] Re: ANN: ClojureScript 0.0-3115

2015-03-17 Thread Leon Grapenthin
And stacktrace - looks like a piggieback issue: core.clj: 4577 clojure.core/ex-info analyzer.clj: 379 cljs.analyzer/error analyzer.clj: 376 cljs.analyzer/error analyzer.clj: 1249 cljs.analyzer/analyze-deps

[ClojureScript] Re: ANN: ClojureScript 0.0-3115

2015-03-17 Thread Leon Grapenthin
Here is the error I am still getting when compiling a ns via piggieback 0.1.5 /weasel 0.6.0 on cljs 3123: 1. Unhandled clojure.lang.ExceptionInfo No such namespace: cljsjs.react, could not locate cljsjs/react.cljs at line 1 file:/home/leon/.m2/repository/org/omcljs/om/0.8.8/om-0.8.8.jar!

[ClojureScript] Re: Again re-frame and external javascript lib needing db state

2015-03-17 Thread Sven Richter
Resumable does not support a callback, I managed to solve it differently. However, my question basically is, how do I access the app-db outside of register-handler or register-sub? Best Regards, Sven Am Samstag, 14. März 2015 23:56:11 UTC+1 schrieb Mike Thompson: > On Sunday, March 15, 2015 at