3 ms·
Seems 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 anythi
by jagger27 7y ago
Seems 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