News for hackers. Stuff that matters.
Re:Vue Passes React's Star Count on GitHub by shams93 on Friday June 15, 2018 @11:29AM (#17320426)
State management is more sane and easy to understand in vue. I'm build an extremely complex application with vue and pulling it off. The extra layers of complexity with react like having to use container components was too much cognitive load for me as a single developer building a very complex app that it was crash and burn for me. Vue's simple and clear approach wins for me over perhaps the power of a purely functional environment like react. I don't doubt that react is a powerful tool but the combined cognitive load of learning react and redux compared to vue and vuex was what caused me to go for vue, its clarity reduces cognitive load and enables you to focus much more on the problem domain than the learning curve.
Re:Vue Passes React's Star Count on GitHub by jordache on Friday June 15, 2018 @11:40AM (#17320553)
>The extra layers of complexity with react like having to use container components was too much cognitive load for me

Wait, Vue doesn't prescribe the notion of a component tree with top level / parent components being containers for stateless feature agnostic granular components? In that context, the concept of a container component isn't too hard to digest, and you can see how all the modern component oriented frameworks work similarly.

So how does Vue differ in this respect? From my limited playing around with Vue, I'm pretty sure it prescribes to container components as aforementioned.

Re:Vue Passes React's Star Count on GitHub by dmortin on Friday June 15, 2018 @11:36AM (#17320514)
The question is if I want to learn one or the other which should I learn? Is React the better choice if I want to learn something which may also potenitally be useful when applying for new jobs?
Re:Vue Passes React's Star Count on GitHub by klodolph on Friday June 15, 2018 @11:42AM (#17320567)
There are a bunch of factors at play for getting jobs but which web frameworks you know is typically far down the list, at least for the decent jobs.
Re:Vue Passes React's Star Count on GitHub by majkinetor on Saturday June 16, 2018 @11:13AM (#17327697)
There are always bunch of factors. Its called 'context'.

If you ask a general question, there is no context. So the answer is simple - use Vue, not React.

Its way easier to on board and get you up and running, and mature enough that you can develop complex apps if you need that.

Other people usually tell 'it depends', but that is just excuse for not being able to draw a line.

Re:Vue Passes React's Star Count on GitHub by wolco on Friday June 15, 2018 @12:04PM (#17320803)
For jobs Angular is best for corporate dev. React is a requirement for most new startups.

Things change quickly though.

Re:Vue Passes React's Star Count on GitHub by shams93 on Friday June 15, 2018 @11:31AM (#17320461)
Also the rate of breaking changes with react is pretty intense. While you can author react without a build tool, and I certainly am using webpack with vue myself, your same vue know how also works for spots where you may not have a build tool available, like freelancing updates to wordpress for people for side money. In those cases you're stuck sticking js into a CMS editor. But vue has you covered in all scenarios from the complex app with webpack and vuex to simple reactive code entered into a cms editor without the benefit of a build tool.
Re:Vue Passes React's Star Count on GitHub by poxrud on Friday June 15, 2018 @11:47AM (#17320626)
What breaking changes? React's API has been very stable. As of version 16 the entire core has been rewritten without breaking the API.
Re:Vue Passes React's Star Count on GitHub by richeyryan on Friday June 15, 2018 @11:48AM (#17320636)
Can you elaborate on the rate of breaking change? As far as I'm aware React's API has been backwards compatible for many versions at this stage. There have been deprecations introduced with React 16 but they don't come into effect until 17 which seems pretty reasonable.
Re:Vue Passes React's Star Count on GitHub by wolco on Friday June 15, 2018 @11:39AM (#17320538)
The rate of change is the biggest issue. If you are not working with react day to day you are at a big disadvanage.
Re:Vue Passes React's Star Count on GitHub by fourseventy on Friday June 15, 2018 @11:34AM (#17320494)
Thats a great point about the CMS use case!
Re:Vue Passes React's Star Count on GitHub by thomasedwards on Friday June 15, 2018 @11:27AM (#17320412)
Regardless of the technicalities of the two frameworks, it’s good to have a community-backed alternative to stop a Facebook-owned product from completely dominating Web development.
Re:Vue Passes React's Star Count on GitHub by AngeloAnolin on Friday June 15, 2018 @12:52PM (#17321303)
The star count that should matter for me would be as follows:

1. The happiness and productivity level I have when perusing one over the other.

2. The actual application being shipped and the level of happiness and satisfaction that I get from the customers.

3. The number of features I can quickly ship on top of the application.

4. The ease of maintainability / support for the application. Easier to maintain = more stars in my world.

The feature set that both frameworks offer are pretty much on par, although I would say (IMHO) that Vue is far easier to understand and seems to be less complex, over all the other frameworks I have used (React, Angular, Ember, Knockout).

Re:Vue Passes React's Star Count on GitHub by davidjnelson on Friday June 15, 2018 @02:17PM (#17322135)
Productivity level and customer satisfaction are great metrics. There are successful businesses created in measuring customer satisfaction ( foresee, medallia etc ), but has anyone tried to or cracked measuring software productivity? Seems like an interesting and valuable space.

Edit: found one. This looks awesome https://www.gitprime.com

Re:Vue Passes React's Star Count on GitHub by otto_ortega on Friday June 15, 2018 @11:47AM (#17320630)
Good, hopefully that will encourage more newcomers to try Vue instead of React, I find Vue to be more elegant and easy to learn (and understand) than React.

Hopefully as the Vue community grows that will drive more resources to the development of cool projects like Weex either directly by having members of the community getting involved on the development of those projects, or indirectly by motivating companies to develop tools to cater a sizable market.

Re:Vue Passes React's Star Count on GitHub by mcescalante on Friday June 15, 2018 @01:47PM (#17321863)
This was also discussed with the topic "Has Vue passed React yet?" yesterday. Discussion here: https://news.ycombinator.com/item?id=17316267
Re:Vue Passes React's Star Count on GitHub by announcerman on Friday June 15, 2018 @11:19AM (#17320334)
What conclusions can be drawn from this? If any?
Re:Vue Passes React's Star Count on GitHub by ronnier on Friday June 15, 2018 @11:26AM (#17320389)
Not many. I read that Vue is popular in China.

From a comment on Reddit:

> 1.6 million weekly downloads for React vs. 200k weekly downloads for Vue. I don't think the GitHub stars measure much. People are downloading react at approximately 8 times the rate of vue.

* https://www.npmjs.com/package/react

* https://www.npmjs.com/package/vue

Re:Vue Passes React's Star Count on GitHub by Reedx on Friday June 15, 2018 @11:43AM (#17320579)
Something to note though: This doesn't count the mirror registries in China. Also Vue devs may be more likely to use CDN links.

(I would still bet that React is used much more yet, just noting that the NPM comparison doesn't tell the whole story - nor does the stars comparison)

Re:Vue Passes React's Star Count on GitHub by wolco on Friday June 15, 2018 @12:07PM (#17320829)
How many are for udemy related tutorials verus new projects? I bet the numbers are closer.
Re:Vue Passes React's Star Count on GitHub by gooseus on Friday June 15, 2018 @11:31AM (#17320449)
If X is the number of times that a Github repo star button has been clicked, minus the times that it has been un-clicked, then as of today X_vuejs > X_reactjs.

I'd be curious of what other metrics Github stars correlates with (# of applications in production, $ in revenue/investment, etc.), but I suppose if Vue ends up replacing React in clear popularity that some will point to this as a significant moment in that history.

Re:Vue Passes React's Star Count on GitHub by mratzloff on Friday June 15, 2018 @11:21AM (#17320347)
1. People over-index on pointless measures.
Re:Vue Passes React's Star Count on GitHub by baybal2 on Friday June 15, 2018 @11:23AM (#17320362)
JS ecosystem's trends are as stable and predictable as English weather.
Re:Vue Passes React's Star Count on GitHub by borplk on Friday June 15, 2018 @11:52AM (#17320681)
That's a bit of an outdated meme.

There are lots of micro libraries because there's zero barrier to putting something on github and NPM, and there's a huge population of people wanting to practice and demonstrate their programming skill.

Many of those are irrelevant. Guess what? Me throwing a "cool-cucumber.js" library doesn't obligate anyone to learn or keep up with it.

It's like a random author publishing a random book. Who cares? you don't have to read it.

The rest is much more stable. There's a bit of fluff on the surface but underneath is not changing that much.

Re:Vue Passes React's Star Count on GitHub by WalterSear on Friday June 15, 2018 @09:17PM (#17325176)
People fear things outside their comfort zone, and resist understanding them.

My father is afraid of git. My sister in law is afraid of open source software. And, that fear is reflected in their career choices and the quality of their code.

Re:Vue Passes React's Star Count on GitHub by Cthulhu_ on Friday June 15, 2018 @11:32AM (#17320469)
FUD; what major upheaval has been in the field since idk, Vue was released?
Re:Vue Passes React's Star Count on GitHub by baybal2 on Friday June 15, 2018 @12:12PM (#17320883)
Major upheaval? I think big dotcoms efforts to forcefully push their vapourwares onto the dev community in attempt to gain developers' "mindshare" reaching a point when that becomes genuinely obnoxious.
Re:Vue Passes React's Star Count on GitHub by jonjojr on Friday June 15, 2018 @11:25AM (#17320381)
Angular and React are getting bloated.

Vue is still one of the few frameworks that stays lean.

Easier learning curve by new developers trying to pick a front end framework.

Re:Vue Passes React's Star Count on GitHub by Cthulhu_ on Friday June 15, 2018 @11:30AM (#17320444)
Angular has always been bloated, but, how has React gotten bloated? Do explain.
Re:Vue Passes React's Star Count on GitHub by paulirwin on Friday June 15, 2018 @11:43AM (#17320583)
I was also surprised by that comment. I just checked and React still has on the order of less than 30 methods/properties in its entire public API surface. Vue.js has quite a bit more.

If the parent means by byte count, React + ReactDOM is about 32.5KB, Vue is 30.3KB. Not a dramatic difference in byte bloat, either.

Re:Vue Passes React's Star Count on GitHub by wolco on Friday June 15, 2018 @12:09PM (#17320848)
It's the ecosystem that makes it seem bloated. 32k vs 30k is nothing.
Re:Vue Passes React's Star Count on GitHub by paulirwin on Friday June 15, 2018 @01:04PM (#17321419)
Wait, what? A large ecosystem of libraries that are not included by default but are available for you to use is somehow a bad thing (as "bloat" implies)?
Re:Vue Passes React's Star Count on GitHub by fapjacks on Friday June 15, 2018 @05:19PM (#17323654)
I agree with you, but there's a joke about npm and leftpad in here somewhere.
Re:Vue Passes React's Star Count on GitHub by sotojuan on Friday June 15, 2018 @11:34AM (#17320499)
Every new developer I know is picking React because that's what the jobs want.
Re:Vue Passes React's Star Count on GitHub by arvinsim on Friday June 15, 2018 @11:34AM (#17320489)
"When a measure becomes a target, it ceases to be a good measure."
Re:Vue Passes React's Star Count on GitHub by isakkeyten on Friday June 15, 2018 @11:43AM (#17320575)
It's actually currently behind by 1 star https://i.imgur.com/IHBBZX7.png

The empire strikes back

Re:Vue Passes React's Star Count on GitHub by rossdavidh on Friday June 15, 2018 @11:42AM (#17320568)
Having used GitHub at several employers in the past, I have to say I never once noticed a project's "star count" before. Is this just me?
Re:Vue Passes React's Star Count on GitHub by sidcool on Friday June 15, 2018 @02:35PM (#17322301)
React and Vue are both great frameworks. React is a bit more adopted and there is a ton of better documentation and Q&A.
Re:Vue Passes React's Star Count on GitHub by idbehold on Friday June 15, 2018 @11:21AM (#17320354)
Does this gratify anyone's intellectual curiosity?
Re:Vue Passes React's Star Count on GitHub by hitekker on Friday June 15, 2018 @11:26AM (#17320402)
On a meta level, I find it interesting that a maintainer of a React has been checking on a vanity metric of a competing framework, and felt the need to put out a congratulatory statement the moment it surpassed React.

"Accidentally", hm.

Re:Vue Passes React's Star Count on GitHub by bmelton on Friday June 15, 2018 @11:29AM (#17320429)
To be fair, it's probably more likely that they saw this thread[1] yesterday at some point after React 'won' than that they were dutifully monitoring competing product's star counts.

[1] - https://news.ycombinator.com/item?id=17316267

Re:Vue Passes React's Star Count on GitHub by danabramov on Friday June 15, 2018 @04:03PM (#17323066)
Hi, Twitter OP checking in.

I was laying in bed at 2:30am after watching a TV show and then playing checkers with my wife, and was about to go to sleep but decided to check Twitter one last time (yeah I'm pretty addicted!)

I usually search for "reactjs i" ("i" to filter out blog spam) and this time I saw a few people commenting on this "star race". I knew both React and Vue are close to 100k, and I found it amusing that just as I opened the website tracker, it was leading by 2 (!) stars.

I knew this would be exciting to a lot of people (folks don't hesitate to tell me they prefer Vue to React every day, as I often seek out negative opinions to learn more). So I shared it with some of my personal thoughts on Vue (see follow-up tweets).

Not sure if you implied I had some sort of hidden agenda but you can just chat to me. :-)

[dead]
Re:Vue Passes React's Star Count on GitHub by thomasedwards on Friday June 15, 2018 @11:29AM (#17320428)
Weird that your username is javascriptPhD and you haven’t heard of the two of the biggest JavaScript frameworks?
Re:Vue Passes React's Star Count on GitHub by mosselman on Friday June 15, 2018 @11:33AM (#17320483)
Maybe he meant ‘star count’ and ‘github’. Never assume ;)
Re:Vue Passes React's Star Count on GitHub by skinnymuch on Friday June 15, 2018 @11:51AM (#17320670)
Wouldn’t it also be puzzling if someone posting with that username on Hacker News doesn’t know what GitHub is?