r/javascript • • Apr 05 '16

Vue.js, the real Angular 2.0

https://medium.com/@brett.marshall/vue-js-the-real-angular-2-0-62744490cb99#.m7hsrwxrt
2 Upvotes

16 comments sorted by

View all comments

Show parent comments

1

u/brianvaughn Apr 05 '16

It isn't a requirement to use Angular either, although there are some strong reasons to consider doing so. I'd guess the author of this article probably wouldn't benefit much on small for-fun projects but as a project and team grow larger, static analysis tools like Flow/TypeScript/Closure can be really useful.

-5

u/rk06 Apr 05 '16 edited Apr 05 '16

that's like saying jsx is not a requirement for react.

yes, you can use angular 2 without typescript, but most of devs will use typescript over javascript?

but as a project and team grow larger, static analysis tools like Flow/TypeScript/Closure can be really useful.

no doubt. but that's a trade-off between barrier of entry vs power. ideally we would want lower entry barrier with more power. but entry barrier increases with power.

Vue is a library, hence, choses lower entry barrier while angular is a framework, hence choses more power.

3

u/brianvaughn Apr 05 '16

JSX is just syntactic sugar. It's definitely not a requirement. Your project is probably easier to read if you use it though. So I guess static analysis and JSX are related in that they both help with maintainability.

The only additional barrier to entry for JSX is that you'll need a build tool in your pipeline to convert it to JavaScript- same with TypeScript. Neither adds that much complexity, and since TypeScript (like Flow and Closure - and JSX for that matter) interops with vanilla JS, you can gradually wade into it if you choose.

Maybe OP sees it as kind of a "straw that broke the camel's back" sort of thing.

-4

u/rk06 Apr 05 '16 edited Apr 05 '16

Neither adds that much complexity

how much complexity they add is very subjective. for a newbie, anything extra to learn is same as added complexity.

JSX is just syntactic sugar. It's definitely not a requirement.

I didn't say it was a requirement. I just said that typescript is as required for angualr as jsx is required for react.