News for hackers. Stuff that matters.
Re:Show HN: FuelDOM – A React-compatible virtual DOM impleme... by davedx on Wednesday March 29, 2017 @02:53PM (#13989421)
React is pretty damn good. I don't really see the problem all these clones are trying to solve, including the latest Vue hype.
Re:Show HN: FuelDOM – A React-compatible virtual DOM impleme... by ben_jones on Wednesday March 29, 2017 @03:01PM (#13989502)
Going to digress a bit but I'm working on a project in Vue and while at first it seemed like a literal breath of fresh air I came to the awful conclusion that no matter what SPA framework/library you're using, if it's javascript, you gonna be using webpack + a medium size build pipeline for es2015, jade, scss, bundling, file watching, hot-reload etc. The arguments for small libraries aren't as strong anymore because the advantages of the larger ones have enough cost/benefit that you're going to be pulling them in EVENTUALLY so might as well do it from the beginning.
Re:Show HN: FuelDOM – A React-compatible virtual DOM impleme... by beaconstudios on Wednesday March 29, 2017 @04:02PM (#13990032)
You don't happen to know how to get vuex working idiomatically with deeply nested data do you? I can work with it but only if I start passing around object references, which seems like a terrible idea.
Re:Show HN: FuelDOM – A React-compatible virtual DOM impleme... by ben_jones on Wednesday March 29, 2017 @07:07PM (#13991447)
No clue, haven't used vuex yet :/ .
Re:Show HN: FuelDOM – A React-compatible virtual DOM impleme... by beaconstudios on Wednesday March 29, 2017 @07:29PM (#13991578)
ah ok, no worries - I think it's similar to Redux largely, which unfortunately includes being severely incompatible with nested state values.
Re:Show HN: FuelDOM – A React-compatible virtual DOM impleme... by girvo on Thursday March 30, 2017 @10:21AM (#13995545)
In redux I use functional lenses to create composoable getter/setter functions to handle deeply nested data safely. I do that even without redux, but it is very useful there. Take a look at the lens functions in Ramda, or safety-lens
Re:Show HN: FuelDOM – A React-compatible virtual DOM impleme... by beaconstudios on Thursday April 06, 2017 @05:54AM (#14049215)
I'd never thought to use lenses for this. Thanks for the advice, that actually really helps!
Re:Show HN: FuelDOM – A React-compatible virtual DOM impleme... by carlosdp on Wednesday March 29, 2017 @06:10PM (#13991098)
Yea agreed, super confused on what's wrong with React. I know the renderer is being re-worked, but that only matters for Facebook-sized projects afaik, which 99.9% are not.
Re:Show HN: FuelDOM – A React-compatible virtual DOM impleme... by twsted on Wednesday March 29, 2017 @03:57PM (#13989990)
> including the latest Vue hype

I don't see anything here exceeding the hype on React...

Re:Show HN: FuelDOM – A React-compatible virtual DOM impleme... by xaduha on Wednesday March 29, 2017 @05:01PM (#13990561)
> including the latest Vue hype

yeah, what's about that? AFAIK Vue isn't new and wasn't that special back then.

Re:Show HN: FuelDOM – A React-compatible virtual DOM impleme... by IanDrake on Wednesday March 29, 2017 @06:20PM (#13991166)
I've only previewed vue at this point so I can only say this about why it's "better": preference.

When I looked at vue2 I saw a lot of the same features as angular2 except the binding syntax looks better to my eyes and way of thinking.

When I look at jsx I go cross-eyed.

When I look at HTML, I want to "see" the view and construct it in my head. I don't want JavaScript mixed in it.

Note: I realize vue and angular bindings are essentially JavaScript in attributes, but they can (and should) be minimal and fade into the background IME.

Re:Show HN: FuelDOM – A React-compatible virtual DOM impleme... by tracker1 on Wednesday March 29, 2017 @08:17PM (#13991862)
If you look at React components as components, it makes a bit more sense, at least to me that the view rendering is part of the component, and not the inverse.
Re:Show HN: FuelDOM – A React-compatible virtual DOM impleme... by tracker1 on Wednesday March 29, 2017 @08:15PM (#13991853)
Well, Vue is a different approach... I find Vue closer to WebComponents than to React.