These are chat archives for jdubray/sam

3rd
Sep 2016
Anthony
@tribals
Sep 03 2016 09:33
@foxdonut yes, i'm still very interested
generally, i'm very interested in frontend UI development at all, and have been looking for architecture/design patterns/tooling in that area
Jean-Jacques Dubray
@jdubray
Sep 03 2016 14:04
Every Angular2 "release candidate" is testing my love for the "framework". Not sure what they are thinking, less is definitely more in Web frameworks.
devin ivy
@devinivy
Sep 03 2016 14:07
what changes are they making?
Jean-Jacques Dubray
@jdubray
Sep 03 2016 15:18

@$&*@#($&

During the last couple of months Angular 2 was substantially redesigned/improved in several areas.

Now the app consists of modules, where one is a bootable module that identifies the root component of your app and declares other modules, components, directive, pipes, providers, and routes that are used in this module.

It's hard to find a word to describe how people feel when they invest all this time to implement their app with an "RC". Screwed comes to mind.
devin ivy
@devinivy
Sep 03 2016 15:22
i guess i don't fully understand the change– i havent tried angular 2 yet.
devin ivy
@devinivy
Sep 03 2016 15:22
is it true that ng2 uses web components?
Jean-Jacques Dubray
@jdubray
Sep 03 2016 15:22
what do you mean by "web components"?
devin ivy
@devinivy
Sep 03 2016 15:24
the w3c standard(s) for componentized/encapsulated "web-stuff" (html, css, js). includes html templates, html imports, the shadow dom, etc. it's really nice and pretty well-supported.
Jean-Jacques Dubray
@jdubray
Sep 03 2016 15:29

Not sure if that's what you are talking about, but here are some examples of ng2 "components", https://github.com/jdubray/sam-samples/tree/master/angular2-admin-master/src/app/pages/dashboard

For instance the "rss feed" components

Once you pass the architectural goop, ng2 is pretty decent. What I like compared to react is that you seem to have more control upon updating the props. In other words, you can make components subscribe to prop updates.
devin ivy
@devinivy
Sep 03 2016 15:34
so the views are not directly v=f(m)– you actually subscribe and make incremental changes?
Jean-Jacques Dubray
@jdubray
Sep 03 2016 15:34
For instance the State function can publish its state representation to every component:
constructor(private ref: ChangeDetectorRef, private _state:State, private) {
      this._state.subscribe('dashboard.feed', (feed) => {
           this._feed = feed;
      });
  }
I have several implementation models including v = f(m), but that's not how people implement ng2.
devin ivy
@devinivy
Sep 03 2016 15:35
@jdubray if you like that, you might enjoy polymer. given your expertise, i think you might really like web components. or hate them. but i imagine you'll find them interesting nonetheless.
Jean-Jacques Dubray
@jdubray
Sep 03 2016 15:35
sure, I'll take a look at it, polymer is definitely on my list, including PRPL. I feel SAM is a good candidate for PRPL
devin ivy
@devinivy
Sep 03 2016 15:35
polymer is a great platform that could use a lot of love/help when it comes to education about state management.
Jean-Jacques Dubray
@jdubray
Sep 03 2016 15:35
:-)
devin ivy
@devinivy
Sep 03 2016 15:36
also– i'm implementing server push right now for the hapi nodejs server framework!
:)!!
PRPL :thumbsup: can't wait to get good at that
Jean-Jacques Dubray
@jdubray
Sep 03 2016 15:37
you are a contributor to Hapi?
devin ivy
@devinivy
Sep 03 2016 15:38
yes, a core contributor to hapijs. i maintain topo, which is used directly by hapi.
(hapi is a closed ecosystem– very few modules are used internally that live outside the hapijs org)
but server push will be implemented as a plugin, not directly into the framework.
unfortunately node-http2 still needs a lot of work...
Jean-Jacques Dubray
@jdubray
Sep 03 2016 15:43
I have been using express, but will give hapi a try when I can.
devin ivy
@devinivy
Sep 03 2016 15:46
it really offers a lot of control– it understands the HTTP spec incredibly well. anything that part of the HTTP spec or related specs (CORS, authorization, etc) has an analogous feature in hapi. very easy to componentize and test portions of your server. if you ever look into it and have questions feel free to ping me!
it's definitely heavier than express because it offers many more features, and comes with a little bit of a learning curve.
not as bad as angular, though :P
to compare apples and oranges...
Jean-Jacques Dubray
@jdubray
Sep 03 2016 15:51
I usually help my clients with replacing their old XML-based middleware (WSO2, MuleSoft, Tibco...) with Node+Express, that's a really sweet spot. I am not married to express. You also have a very respectable traction:
blob
devin ivy
@devinivy
Sep 03 2016 16:08
:)
another approach there i like is to unify multiple (say) XML-based middlewares with node in front of the whole thing, perhaps performing unified auth and data-transformation. then you can incrementally replace the old services.
This message was deleted