Lurker News

Comments (74) 18 threads

Show all comments

Showing thread 7 of 18

francislavoie1 reply#
Ooh, perfect timing. I'm switching to a team that uses React rather than Vue (which I have more experience with). This'll definitely come in handy.
matuszeg6 replies#
Im about to do the opposite switch. Any chance you have any good resources for someone new to vue
ggregoire#
Why not just read the doc?
BigJono9 replies#
No resources, but I do have some advice: Don't do it (if it can be helped). I made the switch and jumped into a Vue project at work, and I'm hating every second of it.

Vue is for noobs and back-end developers that don't know any better. There's no reason whatsoever to use it after you're familiar with React. Don't buy into the hype. There's lots of things that are intuitive or easy to learn in React, and have to be researched and memorised in Vue. Being a 'Vue' dev is a constant exercise in rote memorisation and remembering how things behave in certain edge cases.
Let me throw out an example I ran into 2 hours ago. I could do this basically any day of the past 6 months and give you a different example.
Say you need to render a component dynamically based on some data. Maybe you have the name of the component in a string (i.e it's come from a back-end etc) and know the scope it lies in, or maybe you're passed a component as a prop (you see this pattern all the time in higher order components in React, i.e '(Component) => ')
In React, you can simply do the above. If you've been programming in React for a while you probably intuitively know that you can just do (Component) => , why? Because the JSX transform is trivial, and you can do it in your head.
When you render a component in React, you know that the '' transpiles down to React.createElement(Foo). It doesn't matter how Foo enters the scope, whether it's imported at the top of the file (and therefore closured into your function) or comes in as a prop, it'll just work. As long as you're familiar with the Javascript language, you'll know this just works.
In Vue, it's not that simple. Because Vue components are all in this complex templating language, you need to look up how to do even slightly advanced things like this. There's always a 'Vue' way to do it, rather than a 'Javascript' way to do it. Or, as in this case, there's a "refactor your entire component to be a render function" way to do it, almost like an 'escape' to using actual JS, because the Vue templating language just isn't good enough to handle what you want it to do.
And god help you when you need to try and figure out the Vue way of doing something via Google instead of having an expert mentor on your team to help. Forget the official docs, they're garbage. And Vue (as well as React, to be fair) has the same problem PHP had 15 years ago, squillions of noobs have just flooded into the ecosystem and resources like Stack Overflow, chat rooms etc are swarming with "slightly experienced noobs" trying to help people a little bit newer than themselves. The quality of online resources is shockingly low. Even if you're an experienced front-end dev and know all the terminology and how to phrase your questions and search queries, there's no guarantee everyone else does, so you'll have to wade through 50 nonsensical answers to every problem you might run into. It's infuriating, inefficient, and soul sucking.
And, you know what, just in general I'd never recommend anyone switch front-end libraries unless you have literally nothing else to do. As far as your personal learning and career progression goes, it's always best to learn how to do something new. Failing that, it's sometimes good to learn a different way of doing something. But the absolute worst thing you can do is learn a different representation of the same way of doing the same thing. Vue and React are the exact same shit. You're better off learning the inner workings of one of them (try building your own, it's fun!) so you can bring that knowledge to the next trendy crap that comes along, rather than trying to learn all the trendy crap.

ivanhoe4 replies#
Oh, you mean you have to invest some time to learn it to be able to use it?

Continue this thread — 4 replies

burgerboy#
This might be the most pathetic comment I've seen on this site yet
pixard5 replies#
Your complaint is that in order to understand how to do something, you need to learn that thing first? As an experienced React dev, of course you know "intuitively" how to do things in React. As a Vue dev, your examples do not make sense to me.

FWIW I have found the Vue documentation excellent, and there are plenty of resources online to learn as well.
Both React and Vue are great solutions, the approach is just a bit different. This high and mighty attitude of "my thing is great, the other thing sucks" is a detriment to everyone.

Continue this thread — 5 replies

meesterdude#
your attitude is everything wrong with front end development
nimonian#
You are a noob
nimonian#
_mrmnmly1 reply#
I really try to convince myself that this is not a troll comment.

But I can't.
[edit]
Since somebody downvoted my previous form of comment (probably because of lack of constructive opinion) I'll fix it now:
Calling other programmers noobs doesn't make you a better person by any means.
On one side you're saying that Vue.js is that easy to learn so there's lots of noobs using it, but on the other side you're saying that you need constantly google/look into to docs for help.
Vue documentation is the best introduction to the tool I've ever encountered. Same for the rest of the docs for the Vue's ecosystem - they're written in consistent form, so you can just simply 'jump in' and learn progressively. Even templating language looks like already familiar good old HTML. I was prepared to build production-ready application after a week of messing around with Vue & its documentation.
I can't tell same much good words about React, since after spending a month with it I couldn't figure out how to solve some basic edge-cases (like finding proper way to style components - are you kidding me, React is like 3+ years old, used by thousands of developers and people are still arguing about proper way of styling its components? In Vue you just put it into `

Continue this thread — 1 reply

Telichkin#
Totally agree with you. React is just an API which enhances vanilla JavaScript. In React it's possible to use all prior knowledge and practices from other languages, eg functions/objects composition, and decoration.

Vue is different. With it, you can't confidently use your previous programming experience.

projectramo#
> Vue is for noobs and back-end developers that don't know any better.

For this comment alone, I thought I might downvote you but then you did something quite unexpected: you gave me a detailed example of what you mean.
It is quite compelling if this sort of pattern is widespread.
However, I will learn Vue because, unfortunately, I am still a noob. In a sense it is a recommendation.

tomglynch1 reply#
Instead you two should just swap jobs
francislavoie#
Ahahaha! I mainly do PHP though, so it probably wouldn't be a good fit. I mainly just fill the gaps in frontend tasks occasionally when needed (but used to do a lot more frontend at my previous job).
wiennat#
Vue, Vuex, and Vue-router official document are good enough. Many concepts in Vue are similar or quite simple compared to what you have to know in React. However, I find that Vuex is a little bit more verbose than Redux. You might it troublesome at first but will be better after you are familiar with it.

Agree with other comments that Vue and its companion libraries have much larger API surfaces and have a lot of magic while React's advance techniques can be built upon few basic fundamentals so you need more time to remember those. But I feel that most of APIs are practical solutions to problems you need to fix by yourself in React.

mlsarecmg#
Here's something that Swizec Teller wrote after having to use it on a project: https://medium.com/@swizec/some-thoughts-on-vue-after-deploy...

In essence, many things you take for granted do become harder because Vue is modelled after older templating frameworks like Angular, so you're jumping right into DI again and scope separation. It makes it less flexible and simple compared to React. My biggest gripe with it was that for many problems the basic knowledge you have isn't enough, you need Vue-specific solutions (remember the "Angular-way"?). After a while it gets easier.