Slightly is a bit understated :-). React is as mature as it can get. Angular 2 is unfortunately not production ready, see my post. I've followed the RC comedy and the ecosystem. It's not there yet. I'd wait for a couple of month to let at least the tooling and styling options mature.
Oh, it will be replaced. Probably sooner than you think. And the thing that replaces it (could be vue.js, could be something else) will be the best ever until something better comes around.
How should you handle that? Better choose technology that, even if they get replaced, they teach you something that you can bring to the future. For instance : had you been using browserify two years ago, but now wants to use webpack, it's easy since both use commonjs modules. But going from angular 1 to webpack is harder, because they had their own module system noone else is using.
I think Es6 is a safer language bet then typescript, which may or may not die like coffescript did. The future will tell.
So, with this mindset, is react good or bad? I think react is good, since you only use javascript and html. You don't have to learn a template language that you might not use in the future. But you will most probably use javascript and html with the next cool library as well, so the learning curve for that one will be easier. You can use both es6 modules and commonjs modules with react, which is also good.
So I totally believe that going with react is a wise choice.
I haven't worked with typescript, so I don't quite understand the "typescript is just javascript and all javascript is valid typescript" Is it true that all js is valid typescript? According to https://kangax.github.io/compat-table/es6/ there's a lot that isn't supported in typescript. It's that site not correct?
Like default parameters for instance, what happens if you add that to a typescript file does it compile?
Typescript 2.0.2 is es6, and mostly es7 complete (at least the parts if es7 that are official at this point). Anything that you would expect Chrome or FF to run would also be valid Typescript. The biggest difference is that Typescript contains the type annotations and has type checking on the transpiler. The biggest thing reason for Typescript is easing devs coming from type safe back ends into the JavaScript world. I've also found it can make intra team contracts easier. When we agree on an API contract, we make a typing file, and everyone can start (same way we used to do WSDLs for SOAP services).
Well, yes, that's sort-of correct - like pretty much all Javascript engines, TypeScript is still working on implementing the latest features. However, you can e.g. instruct the TypeScript compiler to compile to ES6, and then either have Babel transpile down to ES5, or just trust the browser to support it.
Thus, it should never set you back in terms of compatibility, and it's not as risky as CoffeeScript - worst case, you strip the TypeScript additions and end up with the same as you would have had you never used TypeScript. (At least theoretically - I haven't put it under that much stress personally.)
However, it actually does support a lot - such as default parameters. I don't quite know what happened - when I loaded the kangax site, it said it didn't support a lot either. Only when it was fully loaded, did it correctly note TS support.
Do you understand adoption curves and how they affect technology choice in technology firms?
Most firms choose where to take stuff off the shelf and install (linux, apache, nginx), be an early adopter (say, a programming framework), or late adopter (inter-service messaging, perhaps) or perhaps even an innovator (e.g. netflix and chaos monkey, etc.).
I'm prepared to use mature frameworks for something, shiny hipster candy for other things.
People seem to be extremely angry because I'm saying React is still at early adopter territory: it's not mature, and saying it is, is silly.
It might be production ready. It might be stable. It might be awesome. It might revolutionise front-end and full-stack development for the next 10-20 years.
Fine! But it's not yet mature. And that will put people off in some companies for some cases. The only thing that fixes that is early majority to grow into late majority and eventually pick up laggards.
It perhaps has a better chance of getting there than its competitors, but that does not mean it's mature.
Yeah those crazy hipster in all these small little shops like all of Walmarts ecommerce and eBay, and the NFL, and Netflix, and PayPal, and SalesForce, And Yahoo. What a bunch of hipsters am I right?
That's OK. New things are good. They are what we do, after all.
But pretending it is "mature" when it's had a couple of years of greenfield development and nobody has really had to go back and fix up legacy monolithic applications with it, is a category error the non-JS devs in the field shake their heads at.
Given I've had loaves of bread last longer than some JS frameworks I can understand why 3 years and some high-profile use cases might trick you into thinking it is mature, but we're only just getting to the point where we're realising 10+ year old Ruby/Rails is actually mature and 5.x beats out a lot of the bad patterns we had earlier.
You didn't call it immature, you called it "shinny hipster candy". Those are not the same concept. One of those implies that it's something that just needs to grow in stability a bit more. The other implies that it's a fad and only used by people because it's trendy.
You're also comparing a client side UI framework to server side languages.
You refer to "non-JS devs" like they are a group of wise old sages that are looking at people who happen to use JavaScript as if they are a bunch of young monks just starting their training. Something is mature when you can convince the entire senior IT dev group of a Fortune 500 company that it is.
The things you listed have a specific role and place. They are mature in that space only. Modern languages and frames works have the benefit of learning from past mistakes to allow them to grow into maturity far far faster then languages that were written in the 50s and 60s. Perl 5 is a perfect example of how something can be mature and be horrible at the same time.
TL;DR: Just because something is old doesn't mean it is good. Just because something is new and popular doesn't make it "shinny hipster candy".
Oh I mean in terms of relative years. React has been around for about 3 years now whereas Angular 2 is less than a day old (full stable release, anyway). I'd consider "mature" to be maybe at least five years old, but then by that point something else might come along to replace it. Example: Ruby on Rails has been around for about 11 years now and it has a huge place in the industry today even if some people feel it's a bit "outdated" (not me, I couldn't care less either way; I'm more of a Django guy myself anyway). React is established in the software world, definitely, but a three year head start on another, similar app component framework is only so much in the long term, especially now that Angular 2 has access to a much larger ecosystem from the start than React did at first (so it's much easier for it to catch up, if it can).
23
u/[deleted] Sep 15 '16
Slightly is a bit understated :-). React is as mature as it can get. Angular 2 is unfortunately not production ready, see my post. I've followed the RC comedy and the ecosystem. It's not there yet. I'd wait for a couple of month to let at least the tooling and styling options mature.