r/web_programming • • Mar 23 '17

Vue, React or Angular2?

Ive been looking up on what to use, the pros and cons and would like some input from all you devs out there aswell other then the articles I see online.

From what I see I was going to go with Vue, but I would hope to hear peoples praises, critics and experience with these frameworks before I decide what to use.

5 Upvotes

20 comments sorted by

2

u/Moedig25 Mar 23 '17

I find a lot of these frameworks to just cause headaches in the long run for a multitude of reasons.

Do you really need to use one? Or are you just using it because that's what "the cool hip kids" are doing.

Do you want to invest time into learning a new framework? can you guarantee it will still be relevant and supported for the life of your project?

Will the authors and or community abandon and leave you lost scared and confused having to replace it all with the next "cool" thing to use to then go through it all again?

Will the implementation of the framework actually slow you down (learning time, standardisation, teaching colleagues how to use it etc) ?

Are you going to implement and integrate an entire massive framework into your project and then utilise only a tiny part of it, which you could have just written a native helper for?

These are the questions i ask myself when using any of these frameworks, some of them stand the test of time and are totally worth it, some take a nose dive.

Answer all of these honestly and look at the requirements of your project and the specs of the framework and find something that fits and then assess if it's worth it. We can't really choose for you without knowing all your usage scenarios, but don't jump into frameworks unless you are totally sure, they can be a pain to remove in the long run. Bear in mind angular 2 is out now, if angular was so good, why did they have to rewrite it?

2

u/azn_introvert Mar 24 '17

What you said makes sense, and its one of the reasons why Im hoping some people post their experiences with frameworks putting biased opinions aside and just their experience would help me determine what I would like to go with. ng2 is out for sure as a lot of my co-workers have had tons of struggle with it, but I have also met some people who like it. Im guessing we might be going with React or Vue depending on the project. Thank you so much for your detailed posts. You last sentence about ng2 is the perfect explanation why not to use ng2. Cheers

2

u/emd2013 Mar 24 '17

you share my exact sentiments

1

u/TakeTheBlack84 Mar 23 '17

What are you building? Just a front end? Do you need more than a view engine?

1

u/azn_introvert Mar 23 '17

Well, right now I am just in the planning stage, so Im just doing research on which framework to use where I wouldnt have to struggle as much as I should in the future. Vue has some nice docs and community but they arent as big as the React Community. Angular2 I personally dont like it but who knows if its gotten better. Right now I am just working on boilerplates for each framework and seeing how well and efficiently I can get these boilerplates working. So for now its just a view engine until I have decided on what framework to use.

1

u/TakeTheBlack84 Mar 23 '17

I like Vue. However the community is not quite big enough and I know I am going to run into issues and I won't be able to find the answers. I suggest you start with React. It seems to be winning out in the JavaScript front end department and there are plenty of resources to help you learn it.

1

u/azn_introvert Mar 24 '17

Yes I believe Im going with react, the community vue has gets me pretty skeptical

1

u/emd2013 Mar 24 '17

what to use for the MC since React is just View (or am I wrong in this assumption)

1

u/spazgamz Mar 24 '17

Simple. Just use redux for your state management and reselect for memoization, and that gets you down to where you're ready to make a request. You untangle this async mess with some good redux middleware like redux-saga. You can also use mobx, which is a pretty magic observer, and tie it to react with react-mobx. Now you're ready for the back end. REST. You can use hapi for http and routing which comes bundled with joy for validation. Then you use pg for the database or knex for query writing or sequelize for an ORM. And now you're ready for your build, bundling and deployment. Webpack is great. Have I mentioned babble? You totally want to get going with flow. Websockets are great! Immutable.js. Progressive web applications. Server side rendering.

1

u/azn_introvert Mar 24 '17

Thank you for comment! Ive read that react-mobx is good for small projects, that redux would be a better choice for bigger projects

1

u/emd2013 Mar 24 '17

yeah I didn't understand any of that

2

u/spazgamz Mar 29 '17

Me either.

2

u/TakeTheBlack84 Mar 24 '17

You're not wrong. There are plenty of boilerplates out there for React. Typically you will have React, React-router, Redux and few other libraries.

1

u/MoonMan2089 Mar 23 '17

I've written quite a few apps with AngularJS (1 & 2) and really like it. I was hesitant to dig into Ng2 because of Typescript and the move to components but after I got used to it I found it very worthwhile to have made the switch. I'll be sticking with Angular for the foreseeable future.

1

u/azn_introvert Mar 24 '17

Have you tried vue or react?

1

u/MoonMan2089 Mar 25 '17

I've tried React, not vue. Felt more comfort with Angular since I "get it". I'll stick with Angular for now.

1

u/jakehockey10 Mar 23 '17

I really liked reading this one over. Seems like some stuff was skated over pretty quickly, but this will help I think: https://medium.com/javascript-scene/angular-2-vs-react-the-ultimate-dance-off-60e7dfbc379c#.bz2pv2j7w

1

u/cristinereyess Mar 29 '17

I'm also using Vue I like this framework I know they have many pros and cons, But I'm using from last 4 years. If you have a lot of experience in this you should go with this, without waisting time on another framework, I'm saying because I'm working on that. You should read this -https://www.quora.com/What-are-the-pros-and-cons-of-AngularJS-versus-React