These are chat archives for jdubray/sam

13th
Apr 2017
Zach Dahl
@schtauffen
Apr 13 2017 01:48
I like aspects of React, but agree that JAMStack is going to be huge (though I didn't give it such a fancy name... its a static site :P)
its gonna be like the 90s up in here
devin ivy
@devinivy
Apr 13 2017 02:46
in the end all this stuff is for users. presumably we build SPAs because they feel like apps users are now used to using on their phones. it's a certain type of experience. a static, multi-page site is simply a different product from my point of view. seems like a cheat to not solve the live-UI problem in-browser.
Daniel Neveux
@dagatsoin
Apr 13 2017 07:03
@jdubray Cordova is essentially a web view, I doubt that Node could run into.
The only way I think is to build a native plugin which run node in a container. But it seems that is already what jxCore does.
Fred Daoud
@foxdonut
Apr 13 2017 12:05
Everyone is entitled to their opinion, but personally I disagree with that "react hype" post and really don't see the point. To me it just sounds like someone had one bad experience with React and decided to lash out.
devin ivy
@devinivy
Apr 13 2017 12:06
i agree with you, @foxdonut. i do understand that the culture in js-land isn't always great– but i think that's mostly due to the developers (us!) thinking we'll find a silver bullet that solves all of our UI woes.
Fred Daoud
@foxdonut
Apr 13 2017 12:07
Well said, @devinivy
Probably better to accept there is no perfect solution and to find what works best for the given project (and that may be something different for the next, different project.)
Paolo Furini
@pfurini
Apr 13 2017 12:09

Probably better to accept there is no perfect solution and to find what works best for the given project (and that may be something different for the next, different project.)

:+1:

devin ivy
@devinivy
Apr 13 2017 12:09
thanks– i think we're on the same page :) i really think that the solution to this will be creating a better shared mental-model of the "live UI", which is what we're working on in this very chatroom. libs will help, but most of the heavy-lifting is conceptual.
the main epiphany given to us by libs is that we can mutate the DOM in a declarative way, i.e. V = f(M). this is huge, and now we have a plethora of tools to help us do that. we need to work on the M.
Jean-Jacques Dubray
@jdubray
Apr 13 2017 13:34
@dagatsoin actually there was as fork of node that was running in Cordova (jxcore). Since the project is abandoned I was wondering if it was possible to run node inside Cordova, probably not enough use cases.
Daniel Neveux
@dagatsoin
Apr 13 2017 13:37
Maybe worse to look in the react native repo. RN runs an instance of Node. So maybe there is a repo just for that. If so, you should be able to make a binding in Cordova (a plugin) to the Node instance. My 2cts.
Jean-Jacques Dubray
@jdubray
Apr 13 2017 13:38
@dagatsoin excellent, thank you. All I would need is node running in the client. Heck, I could even use React if that was the only way...
Daniel Neveux
@dagatsoin
Apr 13 2017 13:39
We will see if they detached it ;)
Jean-Jacques Dubray
@jdubray
Apr 13 2017 13:47
@devinivy yes, for me too, when I saw V=f(M) there was no turning back.
The problem with hype is that it creates isolated communities, it's not so much that hype is bad in itself or it promotes half-baked technologies that one day you would regret adopting (nobody can predict the future). We should all know by now there will be always trade-offs.
For instance the trade-offs I see with V = f(M) are:
a/ HTML is not 100% ready for that paradigm to work evenly
b/ it does not cover every possible UX patterns, by a large margin
but all things being equal, it's a big step forward compared to direct DOM manipulations within the context where it works well.
devin ivy
@devinivy
Apr 13 2017 13:50
agree. another reason i enjoy polymer is that you're not shunned if you do some imperative dom manipulation. with the vDOM approach, it's a pretty serious "no-no."
Jean-Jacques Dubray
@jdubray
Apr 13 2017 13:51
@dagatsoin thank you so much exactly what I was looking for!!
Jean-Jacques Dubray
@jdubray
Apr 13 2017 15:56
Here are some links on React Native and node.js: https://github.com/mvayngrib/rn-nodeify
Full TCP Server embedded in React Native: https://github.com/PeelTechnologies/react-native-tcp