These are chat archives for jdubray/sam

5th
Sep 2017
Jean-Jacques Dubray
@jdubray
Sep 05 2017 00:37
@hex13 Great question, my favorite!

So I am not at all talking about:

some sort of abstraction/wrapper or/and to put them in different layer.

The key question is how these API (Ajax) calls relate to the view or view components
Most projects I worked on, the API is a subject to the view and that coupling tends to organize the application architecture in "vertical slices", a specific view requires a specific APIs. In general that is often driven by data binding. The front-end developers want to "bind" the API request or response to their template, they feel it saves time.
Jean-Jacques Dubray
@jdubray
Sep 05 2017 00:42
I wrote a 4-part blog post on that topic if you care to read it, the most relevant section is that one: http://www.ebpml.org/blog15/2016/08/services-apis-and-microservices-part-2/
In a nutshell SAM tends to collapse a 6-layer application architecture into 4
Paolo Furini
@pfurini
Sep 05 2017 22:07
Ok, this is really cool guys: https://youtu.be/UfD-k7aHkQE
Paolo Furini
@pfurini
Sep 05 2017 22:14
This is THE future of Web Components.. I couldn't see the real value in them, because I have pretty much seen them as a synonym of polymer, and I've never seen a well architected app written with it.. but the stencil approach is a novel one, that promotes real universal components, without external dependencies, and with the lowest possible friction when used in pretty much framework, or vanilla JS
Paolo Furini
@pfurini
Sep 05 2017 22:22
Speaking of data flow, the stencil components promote one way reactive bindings (hurrah, no two way hell!), an embedded vdom, jsx, server side rendering, well pretty much everything you need. What do you think? I personally think they provide the best part of react without the fuss of react itself..
Paolo Furini
@pfurini
Sep 05 2017 22:42
To clarify: what's really cool in this approach, is that stencil is actually a compiler, and the output is a vanilla js web component, without dependencies.. if polyfills are needed they are loaded on demand at client side
Paolo Furini
@pfurini
Sep 05 2017 22:48
@jdubray if you see any value in the stencil project, please tell them to avoid introducing state management stuff ala redux! they mention it at the end of the presentation, and I started to feel the pain.. 😓
Jean-Jacques Dubray
@jdubray
Sep 05 2017 22:54
ah ah, I will. I plan to watch the video tonight.
Jean-Jacques Dubray
@metapgmr_twitter
Sep 05 2017 23:39
better than react, no webpack required! simple as angular, where do I sign up?
Jean-Jacques Dubray
@metapgmr_twitter
Sep 05 2017 23:47
I like that, #UseThePlatform
Template Literals beyond JSX! what a novel idea!