Re: [ClojureScript] Re: re-frame/reagent - calling via () or []

2015-03-30 Thread Colin Yates
Hi Mike - sure. I have a significant deadline approaching so I won't get to it for the next few days, but yep. On 30 March 2015 at 02:54, Mike Thompson m.l.thompson...@gmail.com wrote: On Sunday, March 29, 2015 at 11:38:44 PM UTC+11, Colin Yates wrote: Hi all, I have read the docs but might

[ClojureScript] [Reagent, React] value of select/option's attribute is incorrect.

2015-03-30 Thread Bin Li
I created this reagent component: (defn duallist [] [:div.row [:div.col-md-7 [:select {:multiple multiple :size 10 :name duallistbox_demo :class demo :style {:display none}} [:option {:value option1} Option 1] [:option

[ClojureScript] [Reagent][React] select/option attribute value is not populated

2015-03-30 Thread Bin Li
I have a reagent component : (defn duallist2 [] [:div.row [:div.col-md-7 [:select {:multiple multiple :size 10 :name duallistbox_demo :class demo :style {:display none}} [:option {:value option1} Option 1] [:option

[ClojureScript] Good/Bad of React Native

2015-03-30 Thread Marc Fawzi
To start the conversation, http://unredacted.redalemeden.com/2015/initial-thoughts-about-react-native/ (via HN, #1 link right now) I've been thinking hard if I should keep my hopes up in React Native based on the potential for a ClojureScript version, but after reading this article (plus some

Re: [ClojureScript] Good/Bad of React Native

2015-03-30 Thread Lucas Bradstreet
Personally I see some of the cons as pros. Some examples: * JavaScript means we can use clojurescript, and also means live updating of applications that have been approved in the App Store. * Component based file structure: I'm not sure what this means within the context of react native, but

Re: [ClojureScript] Good/Bad of React Native

2015-03-30 Thread Mike Fikes
With respect to it being ready for prime time within a year or two: The Facebook Ads app is evidently written using React Native. There is a tremendous amount of interest in it (for example, the #reactnative IRC channel is very active). Facebook appears to be very responsive―my guess is that a

Re: [ClojureScript] Good/Bad of React Native

2015-03-30 Thread Marc Fawzi
Hi Lucas I totally agree with you on the components comment. Hi Mike: I'm watching your Ambly REPL project and Nolen's experiment with JSX ( https://github.com/swannodette/jsx-fun) The part of the article that highlights my concern is: Unless you want to subclass an unhealthy amount of UIKit

[ClojureScript] [Help] Requiring Om stop me from connecting to browser repl via fireplace

2015-03-30 Thread Eric Pak
I know about chestnut, but this is a learning exercise for me to be more familiar with the development environment. I have been trying to setup a workflow like the one in chestnut from scratch, but I have hit a roadblock when I try to add Om in my setup. Before I have required Om, I could

Re: [ClojureScript] Private def/defn

2015-03-30 Thread Brandon Adams
To be fair, xyz isn't *that* private. I.e. you can still get at the function via a namespaced var #'xyz and execute it if you want (#'xyz). On Mon, Mar 30, 2015 at 10:23 AM, Marc Fawzi marc.fa...@gmail.com wrote: Does the :private limitation below mean that defn- xyz and def ^:private xyz

[ClojureScript] Private def/defn

2015-03-30 Thread Marc Fawzi
Does the :private limitation below mean that defn- xyz and def ^:private xyz won't make xyz inaccessible from outside the namespace? Any reason this would be difficult to implement for cljs? just curious. def notes def produces ordinary JS variables :private metadata is not yet enforced by the

Re: [ClojureScript] Private def/defn

2015-03-30 Thread Marc Fawzi
right but you couldn't do it accidentally On Mon, Mar 30, 2015 at 8:34 AM, Brandon Adams emi...@gmail.com wrote: To be fair, xyz isn't *that* private. I.e. you can still get at the function via a namespaced var #'xyz and execute it if you want (#'xyz). On Mon, Mar 30, 2015 at 10:23 AM, Marc

Re: [ClojureScript] Private def/defn

2015-03-30 Thread David Nolen
The various means of attaching ^:private metadata has always been for supporting documentation - both human machine (i.e. autodoc) - not encapsulation. No there are no plans to actually encapsulate anything. David On Mon, Mar 30, 2015 at 11:37 AM, Marc Fawzi marc.fa...@gmail.com wrote: right

Re: [ClojureScript] Private def/defn

2015-03-30 Thread Marc Fawzi
Ok if the CLJS compiler doesn't throw an error when it sees ^:private then I suppose that's much better than naming stuff using underscores ___xyz___ although the latter has the advantage of being easy to spot (when used in a different namespace) How about warning during compilation that a

Re: [ClojureScript] Good/Bad of React Native

2015-03-30 Thread Colin Fleming
Another option if you don't want to go the Swift route is RoboVM, which is actually a very impressive project. It would be great to see a React-style UI diff library for it. Apparently you can use Clojure with it, however I'm not sure it really plays to Clojure's strengths - everything must be

Re: [ClojureScript] Private def/defn

2015-03-30 Thread Jamie Orchard-Hays
I really like the idea of a var/fn being declared pirate. :) Some typos are just perfect. Jamie On Mar 30, 2015, at 12:52 PM, Marc Fawzi marc.fa...@gmail.com wrote: Ok if the CLJS compiler doesn't throw an error when it sees ^:private then I suppose that's much better than naming stuff

Re: [ClojureScript] Private def/defn

2015-03-30 Thread Marc Fawzi
;) t's just metadata, right? It could be anything in including ^:_Do_Not_Use_Me___ but I guess what ClojureScript needs is a tool like JSHint something that ca be configured to warn when say something declared with ^:private is used from another namespace Is there such a tool already?

[ClojureScript] Issues between Clojurescript.test 0.3.2 and 0.3.3 and using SlimerJS

2015-03-30 Thread Jonathon McKitrick
Issue #1: Running my test suite under 0.3.2 passes. Running it under 0.3.3 fails with this message: TypeError: 'null' is not an object (evaluating 'a.appendChild') and can be tracked down to this function used for testing React components: (defn add-test-div [name] (let [doc js/document

[ClojureScript] Re: [Reagent, React] value of select/option's attribute is incorrect.

2015-03-30 Thread Francis Avila
Generally the React elements mirror dom objects rather than html tags and attributes. For example, :multiple and :selected are booleans, not strings. Also, the select element has a value property you can set directly instead of messing with :selected.