News for hackers. Stuff that matters.
Re:Switching From React To Vue.js by __BrianDGLS__ on Sunday May 28, 2017 @07:53AM (#14434013)
I have built applications using React and most recently Vue2.

Both are very very similar and if you are familiar with one you will be able to pick up the other quite easily.

In regards to webpages both are capable of doing the same things and fit the same uses cases.

That said however if I was to start a greenfield application today, I would choose React. The reason for this is that react is better known, it is easier to find solutions for, and it has more mature guidelines for things like project structure and best practices.

Vue is good competition for React and it will certainly help keep it on it's toes. However in regards to longevity, I feel React will be around a lot longer than Vue. React has the full support of facebook and is being used by other major vendors. Vue is also used by some big sites, however it has no official backing that I know of and is maintained by a "Benevolent dictator for life".

In a year or two I predict that I will see another article with a title along the lines of "Switching From React To <insert new hotness here>". It is very unlikely in my opinion that I will see a "Switching From Vue To <insert new hotness here>" article.

Re:Switching From React To Vue.js by amauta on Sunday May 28, 2017 @08:52AM (#14434190)
Vue is backed by one of the biggest companies in China. You need to do more research. Vue is more popular in China than React. I would say I would rather start a new an app using Vue because of the learning curve is a lot faster to pick up than React.
Re:Switching From React To Vue.js by subpixel on Sunday May 28, 2017 @09:01AM (#14434224)
A non-trivial amount of info and discussion around Vue (esp. third-party packages) is in Chinese. Whether that's a plus or a minus depends on whether you understand the language.
Re:Switching From React To Vue.js by agnivade on Sunday May 28, 2017 @02:48PM (#14435575)
I have started to use museUI. A material UI library based on vuejs. It is also mostly in Chinese. I was reluctant initially but made the jump.

Then one day I had an issue. Posted it. Interestingly some other guy posted a PR to solve that. And it got merged the next day. So it ended well for me. But can't say that for other repos. Just my experience.

Re:Switching From React To Vue.js by piva00 on Monday May 29, 2017 @07:35AM (#14438590)
That's for sure a minus, even if you speak the language. You are restricted to a smaller subset of developers that can improve the ecosystem (and let's be frank that most good developers should know English but not Chinese, internationally speaking).
Re:Switching From React To Vue.js by echaozh on Monday May 29, 2017 @10:52AM (#14439376)
The logic may not be sound as you cannot tell for sure if there are more English speaking front end developers or Chinese-only speaking ones, given the population of China.
Re:Switching From React To Vue.js by voidr on Tuesday May 30, 2017 @12:13PM (#14446325)
There could roughly be as many front end developers in India ... which has 23 languages.

China also has multiple languages and dialects, see: https://en.wikipedia.org/wiki/Languages_of_China#/media/File...

English is the lingua franca of software development and I don't see that changing anytime soon.

Re:Switching From React To Vue.js by myth_drannon on Sunday May 28, 2017 @02:36PM (#14435526)
Too many VueJS repos I see on Github have Chinese only readme
Re:Switching From React To Vue.js by untog on Sunday May 28, 2017 @04:42PM (#14436002)
> I would say I would rather start a new an app using Vue because of the learning curve is a lot faster to pick up than React.

When we're talking frameworks that you'll use again and again I don't really think this is a factor. You'll only need to pick it up once. I'm a lot more concerned about long term maintainability.

Re:Switching From React To Vue.js by wolco on Sunday May 28, 2017 @10:50AM (#14434566)
If we move away from only spa appications vue has other use cases. For a Rails / PHP site that only needs small amount of javascript vue feels like a natural choice to replace some of the existing jquery
Re:Switching From React To Vue.js by bdcravens on Sunday May 28, 2017 @02:40PM (#14435542)
Isn't the same true of React however?
Re:Switching From React To Vue.js by Can_Not on Monday May 29, 2017 @09:57AM (#14439103)
It's not the same. VueJS's documentation to add to an existing non-es6 jQuery based project is ahead of react's, and vuejs is a lot smaller.
Re:Switching From React To Vue.js by jaequery on Sunday May 28, 2017 @07:46PM (#14436603)
no, React will replace your Rails routers.
Re:Switching From React To Vue.js by jimsmart on Sunday May 28, 2017 @08:24PM (#14436732)
That's not strictly true: vanilla React doesn't even use a router until you wire one up. It's perfectly cromulent to use just few bits of React on an existing web app/site.
Re:Switching From React To Vue.js by alttab on Sunday May 28, 2017 @10:07AM (#14434416)
I read through the differences, and they seem small enough that for any decently sized project with a non-trivial team you'd choose React and in most cases probably not even consider Vue.
Re:Switching From React To Vue.js by coldtea on Sunday May 28, 2017 @10:01AM (#14434399)
>In a year or two I predict that I will see another article with a title along the lines of "Switching From React To <insert new hotness here>". It is very unlikely in my opinion that I will see a "Switching From Vue To <insert new hotness here>" article.

That might also be because once people get to Vue, they don't leave it for any "new hotness".

Re:Switching From React To Vue.js by c0achmcguirk on Sunday May 28, 2017 @10:44AM (#14434536)
Nah, today's hotness is tomorrow's tech debt. Always.
Re:Switching From React To Vue.js by coldtea on Sunday May 28, 2017 @12:13PM (#14434913)
In JS maybe. But I don't think there's anything fatalistic about it. There are still C, C++, Lisp, even Pascal etc codebases maintained and liked just fine.

It's about maturity and churn, not something inherent in programming.