3 ms·
I don't think it is that hard to learn React and Styled-Components, makes the frontend feel like real programming. Vue.js just seems full of anti patterns and
by thomasfromcdnjs 7y ago
I don't think it is that hard to learn React and Styled-Components, makes the frontend feel like real programming.
Vue.js just seems full of anti patterns and magic, likely why so many devs who come from PHP like it.
If it works for you, then kudos, but if you are a dev who wants transferrable skills and to prepare for the future, learn react.
- jagger27 7y agoSeems full of anti-patterns? Have any examples? React is easily just as magical. I'm curious. I also don't see how React skills would be transferable to anything but React.
- STRiDEX 7y agoNot that i'd put php users and vue users in the same overlapping venn diagram. Global mixins is probably the biggest anti-pattern I see in vue. Vue also allows some stuff like accessing this.$parent and v-for and v-if loops on the same element like angular 1. Really just any of the bad parts of angular 1 that vue brought over and other frameworks including react and Angular v2 did away with.
- altec3 7y agoSure you can access this.$parent, and use a v-if on an element with a v-for, but if you read the docs, they tell you that you probably shouldn't be doing either of these things [1][2]. [1] - https://vuejs.org/v2/guide/components-edge-cases.html#Accessing-the-Parent-Component-Instance https://vuejs.org/v2/guide/components-edge-cases.html#Access... [2] - https://vuejs.org/v2/guide/list.html#v-for-with-v-if https://vuejs.org/v2/guide/list.html#v-for-with-v-if
- scns 7y agoSome would transfer to Flutter
- libria 7y agoNot a Vue dev, but someone mentioned a weakness in the other thread: https://news.ycombinator.com/item?id=22349300 https://news.ycombinator.com/item?id=22349300