Live data from Hacker News

Vue.js 3

github.com

251–260 of 308 posts

Re: Vue.js 3

#252

Earlier quoted context omitted.

Angular is massive - MASSIVE - within large orgs you will have heard of but which I cannot name for obvious reasons. The twitterati and hobbyist crowd seem to love react, but anecdotally I've yet to see it used seriously at a BigCo, but Ng+TS is everywhere.

"I've yet to see [React] used seriously at a BigCo" you realize Facebook a) sponsors its development and b) just rewrote their core product in it?

Might be anecdotal, but the new site is pretty rough.

Re: Vue.js 3

#253
post #241

Earlier quoted context omitted.

This is also just plain false you aren’t shipping jsx and react doesn’t depend on anything but there being a stable host DOM node. It’s literally the other way around, vue uses global registration making it the only one of the three frameworks likely to give you any issue at all https://vuejs.org/v2/guide/components-registration.html

The JSX point boils down to this: you can't say with a straight face that using react without writing JSX is as idiomatic as pulling vue from a CDN, and you can't say that using JSX is as easy to setup on a legacy codebase. React doesn't depend solely on there being a stable host DOM node. It also generally assumes data is programmatically structured. Try rendering FAQs as HTML with PHP then sprinkling answer togglin…

I think I know how to code a faq I use react to create a tool for humans to help autonomous vehicles with react. Jsx has nothing to do with how easy it is to embed react in a host app. If you want to compare build systems, VueJS is also less practical and robust without its optional build system. This was used as a reason angularJS v1 would kill react and it’s a tired argument IMO

Re: Vue.js 3

#254
I don't know if React could allow set children's data via parent, like

$childRef.setData({ data })

When i see this code in a Vue codebase, my mind got hurt.

I still prefer React due to its consistent reasoning about data flow in the app.

Re: Vue.js 3

#255

I don't know if React could allow set children's data via parent, like $childRef.setData({ data }) When i see this code in a Vue codebase, my mind got hurt. I still prefer React due to its consistent reasoning about data flow in the app.

That sounds like the equivalent to React's forward refs. https://reactjs.org/docs/forwarding-refs.html

Re: Vue.js 3

#256
post #241

Earlier quoted context omitted.

This is also just plain false you aren’t shipping jsx and react doesn’t depend on anything but there being a stable host DOM node. It’s literally the other way around, vue uses global registration making it the only one of the three frameworks likely to give you any issue at all https://vuejs.org/v2/guide/components-registration.html

The JSX point boils down to this: you can't say with a straight face that using react without writing JSX is as idiomatic as pulling vue from a CDN, and you can't say that using JSX is as easy to setup on a legacy codebase. React doesn't depend solely on there being a stable host DOM node. It also generally assumes data is programmatically structured. Try rendering FAQs as HTML with PHP then sprinkling answer togglin…

Not true. In fact, the first page of the react guide shows setting it up with jsx entirely in the browser. You also include babel via cdn and you‘re done.

Re: Vue.js 3

#257

Earlier quoted context omitted.

React is winning in U.S. Vue is winning in China

Angular appears to be "winning" in Germany (or all of Europe?).

Not true. I work for Europe‘s largest web dev company, react and angular projects have a 50:50 market share I‘d say.

Re: Vue.js 3

#258
post #241

Earlier quoted context omitted.

This is also just plain false you aren’t shipping jsx and react doesn’t depend on anything but there being a stable host DOM node. It’s literally the other way around, vue uses global registration making it the only one of the three frameworks likely to give you any issue at all https://vuejs.org/v2/guide/components-registration.html

The JSX point boils down to this: you can't say with a straight face that using react without writing JSX is as idiomatic as pulling vue from a CDN, and you can't say that using JSX is as easy to setup on a legacy codebase. React doesn't depend solely on there being a stable host DOM node. It also generally assumes data is programmatically structured. Try rendering FAQs as HTML with PHP then sprinkling answer togglin…

You've moved the goalposts from "not possible" to "not as idiomatic"

Re: Vue.js 3

#259

Earlier quoted context omitted.

It's great you applied your vanilla JS skills to his totally metaphorical example. I still don't get why it's okay for every other programming language to use the STL or huge dependencies, but doing so with javascript is frowned upon for some people. You wouldn't write a JSON parser yourself in CPP, you'd install something from conan or use the STL or boost for that. Why is it so bad to do the same with js?

Not the end of the world, but the client will have to download it.

So what. Gzip is a thing. Most apps I build with react don‘t reach the 1MB mark even if they‘re gigantic.

Re: Vue.js 3

#260

One thing I'm really excited about with this version is Vite (the snowpack type version of Vue that doesn't require webpack). It should make development so much easier.

As someone who includes we pack in my build chain in order to use vue but doesn't truly understand it and has never used Cute, can you explain the advantages?
Post reply on HN