@khalid true re: trade offs... also, good to diversify.... thinking in just
one tech all day can be a path to ideological stuckness ... :)

On Wed, May 20, 2015 at 7:11 AM, Khalid Jebbari <[email protected]>
wrote:

> @David, I didn't know this feature. Good to know !
>
> @Marc : it's a matter of trade-offs. Node.js and the JVM are very
> different platforms. If developer convenience is very important, isomorphic
> the node.js way with Nashorn or Node could be a good thing. Depends on the
> developers :)
>
> Khalid aka DjebbZ
> @Dj3bbZ
>
> On Wed, May 20, 2015 at 4:01 PM, Marc Fawzi <[email protected]> wrote:
>
>> << Use CLJX/CLJC to split what goes to the JVM and what goes to the
>> browser from the same source. Nice, and you get Clojure everywhere>>
>>
>> I love this idea in principle but seeing how confusing reader
>> conditionals can be to a beginner I would personally stick with the
>> Om/Reagent isomorphic path (nashorn or node) ....
>>
>>
>> On Wed, May 20, 2015 at 6:56 AM, Khalid Jebbari <[email protected]
>> > wrote:
>>
>>> Javascript developer speaking. The problem with isomorphic apps the
>>> Node.js way (not the Meteor way) is that you want to run the SAME code both
>>> sides, and client-side concerns aren't server-side concerns. Given it's the
>>> same language, and some thing are side-agnostic, indeed a great amount of
>>> code is shareable like templates (and event handling with React.js), which
>>> make the 1st render fast. But other concerns can't really be written the
>>> same way on both sides.
>>>
>>> Current solutions :
>>> - Use CLJX/CLJC to split what goes to the JVM and what goes to the
>>> browser from the same source. Nice, and you get Clojure everywhere
>>> - Use JS/Node.js, and use a build tool like Browserify/Webpack that
>>> allow you to replace 1-to-1 some files for server-side and client-side. So
>>> you need to write your own common interfaces, not easily done.
>>> - Use Meteor, and have simple "if(isClient/isServer)" in your code to
>>> split the concerns and let Meteor deal with rest. The thing is that Meteor
>>> is not really compatible with the rest of Node.js/npm ecosystem, and they
>>> make lot of choices for you about the stack.
>>>
>>> Something lacking with CLJX/CLJC AFAIK is that you can't target *both*
>>> Node.js and the browser from the same Clojure code base.
>>>
>>> --
>>> 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 Google
>>> Groups "ClojureScript" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/clojurescript.
>>>
>>
>>  --
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "ClojureScript" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/clojurescript/T6no_srtBzc/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/clojurescript.
>>
>
>  --
> 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 Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
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 Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to