These are chat archives for jdubray/sam-examples

4th
Mar 2016
Esteban Negri
@enbits
Mar 04 2016 22:31
Here's the standalone talk from Andrew Clark: https://www.youtube.com/watch?v=ZVYVtUFDf28
Jean-Jacques Dubray
@jdubray
Mar 04 2016 22:50
thank you, I'd really be curious if he read the article prior to preparing his slides.
Esteban Negri
@enbits
Mar 04 2016 22:52
I'm watching it for the first time and I see what you mean
Jean-Jacques Dubray
@jdubray
Mar 04 2016 22:55
I say that because in everything I had read about React prior to the article, I had never seen someone saying react is v = f(d), and for me that was the ah ah moment that started everything. Once you understand that it's that simple, then you want/can close the loop.
The react component model itself does not offer a good way to close the loop that's why they ended up adding Flux/Redux, then Thunks then Sagas, then GraphQL, then Relay...
that's a bit too much, if they had started with v = f(d) (and JSX) they probably would have created something that was 99% simpler.
You also see from his presentation that stream don't really add much to the architecture:
v$ = f(d$) or v[] = f( d[] ) does not change anything, just some wiring.
IMHO, react is out of control
Esteban Negri
@enbits
Mar 04 2016 23:01
That's what confusing me lately. Seems like the big ones (I mean, Google, Facebook, etc) doesn't know what to do. I'm pretty new at these Javascript frameworks and I wanted to use Angular as a base for all future developments, but with all this Angular 2 ramble I'm really lost and I thought it was just me, then found your article.
And PHP frameworks keep working with MVC so that adds more confusion when people talk about using Angular + Laravel to build apps
Jean-Jacques Dubray
@jdubray
Mar 04 2016 23:16
They sure don't make it easy. I say SAM gives you a good enough structure to start with, you can choose how much framework you really need on top of that.
For the sad part is all these frameworks tend to obscure the value of HTML5/CSS3 because they want you to use plain vanilla HTML
Esteban Negri
@enbits
Mar 04 2016 23:23
Well I like minimal stuff and Angular is a monster, never understood V1. So what are the key js libs that I should use if I want to implement SAM?
Gunar C. Gessner
@gunar
Mar 04 2016 23:27
You don't need absolutely any lib to implement SAM. That's the beauty of it.
That being said, I like myself some React (or any other VirtualDOM lib) for the View.
NB: There is no V in SAM, so it's really a matter of taste and doesn't change anything.
Jean-Jacques Dubray
@jdubray
Mar 04 2016 23:30
+1, you can use anything for V, Stateless React Component I believe are pretty good. You can take a look at the sample list: http://sam.js.org/#rocket
Esteban Negri
@enbits
Mar 04 2016 23:34
Thanks guys!