4 ms·
I had a very similar experience. I got into a flow state while converting the project, which has never happened for me while working with an unfamiliar framewor
by jetrink 7y ago
I had a very similar experience. I got into a flow state while converting the project, which has never happened for me while working with an unfamiliar framework. It clicked in a way that Angular never did.
Does React feel the same way? I know people love it too, but I haven't had an excuse to try it yet.
- api 7y agoReact itself has a few rough edges but the functional render path design is just how UIs should be done, period. Never tried Vue. Is it similar?
- 0xRCA 7y agoThey're pretty similar. I feel like the best comparison is when you write bad React code you can tell, but there isn't really "bad" Vue code in the same way since it's so malleable. That obviously is both good and bad. To me React is the preferable framework, it's much more opinionated and finicky but also more clear and thoughtful once you start approaching problems the way it requires. Vue is a lot like React, but it's extremely flexible and beginner-friendly. It doesn't really require a novice developer or someone coming from something very different like Rails or Angular to change how they think beyond the component structure itself. Two-way data binding seems much nicer and easier when you first come to Vue, but has so many hidden pitfalls and annoyances that one-way completely side-steps. That being said, I _despise_ DSLs and they should be avoided at all costs. They seem like a waste of brainspace and extremely fragile. It's my single biggest knock against Vue.
- cdrini 7y agoWhat are you considering as a DSL in Vue? I think JSX in React is more of a DSL than anything in Vue.
- pldr2244 7y agoJSX is a DSL with the ability to opt out into native JavaScript. So most complex JSX is a composition of JSX with JS driving the logical parts. Does Vue’s templating solution offer the same? (Genuine question, haven’t worked with Vue)
- cjblomqvist 7y agoIt does. You can do render functions similar to React (and optionally use JSX if you want to). It's not very common though except for library authors (especially if you need to do some clever stuff, regular vue templates can't handle all the corner cases that a raw render function can).
- mcv 7y agoIn my eperience, most people do use the templates, and especially in Vue 3, those templates are going to get compiled to extremely optimised render functions. But if you want or need to, you can also write your own render function directly, or indeed use JSX. Vue is remarkably flexible about that.
- mcv 7y agoI think Vue can be best described as a fairly light-weight framework that takes the best aspects of Angular and React. You can do templates like Angular, or render functions like React. It's fast like React, does data binding like Angular. Vuex is very much like Redux. It lacks Angular's injectable services, though.
- brlewis 7y agoNo, React does not feel like a simpler version of Angular. People who have used Angular but never liked it are Vue's target market.