These are chat archives for jdubray/sam

29th
Nov 2016
Vincent Jo
@inrix-vincent-jo
Nov 29 2016 00:56
one thing I thought about doing also when I was growing out of the plain JS was using jQuery... or just JS to represent the dom without JSX or HTML language in string templates. I still might consider that when I build a new project, though it looks ugly without JSX; there are so many good jQuery components out there it seems like to build projects.
Edward Mulraney
@edmulraney
Nov 29 2016 09:21
there are some fairly rich React UI lbraries out there now
Fred Daoud
@foxdonut
Nov 29 2016 13:20
thanks @edmulraney I didn't know about ant-design, looks great!
Edward Mulraney
@edmulraney
Nov 29 2016 13:21
nw - it's by the alibaba guys, they're pumping out some really cool shit: https://github.com/dvajs/dva
@devinivy i'm going to start looking at polymer soon - does it fit naturally into a reactive loop? what are the pain points you've found using it?
i guess does it fit naturally into v=f(m)?
Fred Daoud
@foxdonut
Nov 29 2016 13:27
based on redux, redux-saga and react-router
that makes me turn around and go the other way :( personally I don't like using these frameworks/libraries that mash up a bunch of other frameworks/libraries.
Edward Mulraney
@edmulraney
Nov 29 2016 13:28
that doesn't hold any bearing on the quality of the project
other than the effects use generators like sagas
but its the concept that's interesting and powerful
also that's an assumption that it's a "mash up". it could be a very powerful "synthesis" of these concepts :P
Fred Daoud
@foxdonut
Nov 29 2016 13:31
if it was based on the ideas, maybe, but.. it's actually dependent on all of those.
  "dependencies": {
    [...],
    "react-redux": "4.4.x",
    "react-router": "^2.7.0",
    "react-router-redux": "^4.0.5",
    "redux": "^3.6.0",
    "redux-actions": "^0.12.0",
    "redux-saga": "^0.12.0",
    [...]
}
Edward Mulraney
@edmulraney
Nov 29 2016 13:31
oh i see what you mean
it is all hidden from the user via wiring
and it makes sense to build upon solidly tested/used code rather than spinning up your own thing to achieve the same output
Fred Daoud
@foxdonut
Nov 29 2016 13:32
not saying it can't be good. just saying that personally, I don't like using these types of frameworks.
Edward Mulraney
@edmulraney
Nov 29 2016 13:32
yeah thats fair
Fred Daoud
@foxdonut
Nov 29 2016 13:33
I've tried a bit of material-ui, can't wait to take ant-build for a spin
I mean ant-design
dammit, blame it on 20 years of Java (where ant is a build tool)
Edward Mulraney
@edmulraney
Nov 29 2016 13:36
haha :)
devin ivy
@devinivy
Nov 29 2016 13:59
@edmulraney it fits into a reactive loop. as far as v=f(m) goes, you're all set– you have declarative component templates. you will find there are not good tools for handling application state within the polymer ecosystem. the polymer ecosystem is currently more concerned with creating web apps that compete (performance- and feel-wise) with native apps.
Edward Mulraney
@edmulraney
Nov 29 2016 14:00
nice! cheers for he heads up
devin ivy
@devinivy
Nov 29 2016 14:00
the view updates using observer-like things. you have two-way binding, but polymer provides a way to specifically one-way bind into components, and you should make sure to use that. :)
welcome!
Edward Mulraney
@edmulraney
Nov 29 2016 14:01
oh cool
devin ivy
@devinivy
Nov 29 2016 14:02
(so as not to be mysterious, one-way binding amounts to using [[someProperty]] rather than {{someProperty}})
Edward Mulraney
@edmulraney
Nov 29 2016 14:09
nice and simple
Zach Dahl
@schtauffen
Nov 29 2016 16:58
IDK... reminds me of angular2 which I think can be confusing:
(input) vs [value] vs [(ngModel)]
which then still uses {{greeting}} in the templates
devin ivy
@devinivy
Nov 29 2016 17:00
what? it's not like that. it's just one-way [[]] or two-way binding {{}} in component templates.
in SAM-land we would know to just always use [[]]
Fred Daoud
@foxdonut
Nov 29 2016 18:27
@edmulraney : er... some pages not translated in ant-design? :confused: https://ant.design/docs/spec/typography?locale=en-US
Vincent Jo
@inrix-vincent-jo
Nov 29 2016 23:31
lol
it's in chinese
I'm starting to think that REST is weird
my company uses it but it looks funny when you make these long url calls
or maybe we got REST all wrong