7 ms·
Agreed and there is no reason to still stick with react when alternatives like vuejs and angular are available. Its not that great anyways when compared to ang
by drieddust 9y ago
Agreed and there is no reason to still stick with react when alternatives like vuejs and angular are available.
Its not that great anyways when compared to angular 2/4. There are too many concepts to be mastered and it soon become overwhelming. I tried learning react but dropped it after spending a week when I still could not understand routing. Sense of cohesiveness between different concepts is missing. I believe some learning junkies may get the kick out of it but that's not me. My time is better spent elsewhere.
Angular on the other hand introduces everything one single tutorials[1] to make one productive. Deep dive later can be done later on when required.
[1] https://angular.io/tutorial https://angular.io/tutorial
Edit: minor typo
- WalterSear 9y agoReact doesn't do routing. It's a view library. And for me, the opposite was true vis-a-vis Angular and React, though got as far as making contributions to the Angular 2 tools before I decided to jumping ship.
- mzzter 9y agoThat's the problem, it isn't intuitive at first as to how one should add routing when using React. I learned React-Router, but the API has changed a lot between versions in the past.
- WalterSear 9y agoYou can't blame a tool for the shortcomings of another tool, though :) Fwiw, I concur that React Router is/was a bitch (it's been a while) - I suffered through it too. A client-side hash-based router is ~10 lines of javascript, and is what I'll write unless there's an actual need for anything more.
- deleted 9y ago[deleted]
- drieddust 9y ago> React doesn't do routing. It's a view library. and that's the problem. React itself solves a tiny subset and delegates the other responsibilities to different tools which may not align with each other. Most of the is spent is wiring making different choices and wiring them together. On a side note what made you move away from Angular 2 to React?
- arvinsim 9y ago> and that's the problem. React itself solves a tiny subset and delegates the other responsibilities to different tools which may not align with each other. Most of the is spent is wiring making different choices and wiring them together. So modularity is a problem now?
- thecrazyone 9y agowell there is modularity and then there's keeping frequently used things together. I think react push modularity at the cost of productivity (opinion). It's like breaking a kitchen knife into two: the blade and the handle, in the name of modularity. Concretely, this is what I mean: Routing, and a bunch of other things are used together, it would've been better if react had kept the view library separate but also maintained an official router among other things
- chrisco255 9y agoRouting isn't always necessary, if you're building server rendered pages and a non-SPA web app. Facebook isn't a SPA, so that's why they never built and subsequently released a router. They generally only open source and release things they use in production.
- wreath 9y agoWhat's the problem with solving exactly one problem (and doing it fairly well). I'd rather have the possibility of choosing which routing library or state management and swap things as I see fit, than being locked in with whatever the framework chooses.
- EduardoBautista 9y agoReact Native is what I believe to be the big thing in the React community. I haven't hear of anything similar in the Angular or Vue ecosystems.
- sheetjs 9y agohttps://weex.apache.org/ https://weex.apache.org/ is the closest thing for the Vue ecosystem
- nutbutter 9y agoNativeScript is really good
- thebigspacefuck 9y agoI've been using NativeScript with Angular and I like it
- Mayzie 9y agoAs an alternative, albeit in a different language, is Google's Flutter[1]. If Google can correctly capitalise on this moment in the React.js ecosystem, they could really come to dominate in cross platform mobile app development. [1] https://flutter.io/ https://flutter.io/
- chrisco255 9y agoReact Router v4 is dead simple: https://medium.com/@pshrmn/a-simple-react-router-v4-tutorial-7f23ff27adf https://medium.com/@pshrmn/a-simple-react-router-v4-tutorial... It's just React components up and down. Most of the concepts that you must learn with React have to do with understanding JavaScript. If you know JS, you know 80% of what you need to know.
- geocar 9y agoIt's also less capable and completely incompatible with router 3.
- chrisco255 9y agoI hadn't heard that it was less capable. But you can always keep using v3 if that's what you know. He seemed to indicate that it took him a week to figure out routing in React. I have never had that much trouble.
- tmat 9y agoSame here, This all seems like a "My JS Lib is better than your JS Lib" fight. So let me say this, React is by far and away the best JS view library out there. I don't need MVC in my fucking view(Hey Ember), and I don't need a entire framework for my view(Hey Angular).. ReactJS 4tw.
- geocar 9y ago> He seemed to indicate that it took him a week to figure out routing in React. I have never had that much trouble. When you haven't had "that much trouble", it sounds like you're calling them stupid or a liar, and it sounds like you didn't consider the possibility that you're working on a very different problem or have a different definition of "figure out routing". I store all of my user state in the URL. This way users can copy URLs to each other containing their state, I can press reload to debug things, Other people can embed portions of my application into iframes, and other good benefits. However I don't want to sprinkle url changes and parsers all over my code, so I'd like to hook into the router system and glue it into the property system. I've probably been through a few versions of this idea with react and certainly spent at least a week in total trying to get it working well with all the different browsers and widgets, only to have react-router 4 come out and break it. I then probably spent at least a day or two looking for similar-shaped hooks and couldn't find them. Maybe I should have spent more, maybe I should've been smarter. However I note that the author of React-router took four very different approaches towards figuring out routing and produced incompatible APIs, which is a strong sign that they weren't able to figure out how routing should work either.
- rtpg 9y agovue and angular don't offer the same typing guarantees as React. Though I use Angular in my day-to-day, I would really love to be in React land for that reason alone. I've had too many interface bugs due to simple template typos
- drieddust 9y agoHow come? Angular is Typescipt first so typing guarantees are builin.
- erokar 9y agoNot in templates.
- swellsy 9y agoYou need to use the Angular Language Service extension for vs code, it works perfectly giving you full type completion and error checking in templates https://github.com/angular/vscode-ng-language-service https://github.com/angular/vscode-ng-language-service
- drieddust 9y agoThanks for sharing this.
- qaq 9y agoAngular does not come with a patent grant at all. Vue most likely is infringing on FB patents anyway. So what is the win exactly?
- drieddust 9y agoAngular 2 is MIT licensed. Why you need a patent grant anyways?
- qaq 9y agobecause copyright and patents are orthogonal concepts. FB gives you patent grant with restrictions Google does not give you a patent grant at all.
- pdfernhout 9y agoThe patent grant is (presumably) implied by the act of licensing under MIT in the absence of other specific restrictions (such as Facebook's PATENTS file as an explicit patent grant with one-sided limitations). See for example: http://oss-watch.ac.uk/resources/fossandpatents http://oss-watch.ac.uk/resources/fossandpatents "Some free and open source software licences also explicitly grant the patent rights necessary for the purposes of using, adapting and distributing the code, for example the Apache License v2, the GNU General Public License v3 and the Eclipse Public License. In some jurisdictions, including the UK, it is highly probable that even those free and open source software licences that do not explicitly grant patent rights do in fact provide them implicitly. After all, giving permission to perform a specific act strongly implies permission to perform the steps needed to do so. Thus the permission to redistribute the software granted by all free and open source licences - it can be argued - implies the granting of the right to make use of any of the licensor’s patents which would be infringed by the distribution of the code."
- tzs 9y agoThe big question about an implied patent license would be whether or not it is revocable. In the specific cases of the BSD and MIT copyright licenses note that the licenses do not say that they are irrevocable. A license granted for no consideration is generally revocable unless it specifically says that it is not. There are substitutes for consideration. It is an open question as far as I know whether or not those apply in the case of free software and make licenses like MIT and BSD irrevocable. If you use BSD or MIT licensed patented software that does not come with an explicit patent grant, you'll have to deal with these arguments if the patent owner decides to go to court: 1. There is no implied patent license, 2. If there is an implied patent license it is revocable and they revoked yours, 3. The copyright license is revocable, they revoked yours, and that implicitly revokes the implied patent license (even if it is irrevocable normally). It's so much safer to try to stick to licenses that say they are irrevocable and include an explicit patent grant.
- tmat 9y agoAngular is nothing like React. It's garbage in comparison.
- drieddust 9y agoIn what sense?
- thecrazyone 9y agoI'm not getting the angular hate. Would you want to explain why?
- c0ndu17 9y agoJust my opinion from working with them everyday. Angular is more of a monolithic beast attempting do everything, and mostly it can. React is more of a microorganism with one goal, which it excels at. For me, Angular feels heavy, especially since the introduction of NgModules. I guess the million breaking changes that occurred from AngularJs to Angular2 might have left a bit of a sour taste in mouth, regarding the framework. How can they introduce NgModules in like beta 10? Angular isn't a bad framework, but the question goes down to would you rather have one framework that try to do everything, or many frameworks that each try do their one thing. There are pros and cons to both. On an even more opinionated note, I really enjoy the syntax, and feel of React(jsx)... which something I don't get with Angular components. I'm not even gonna start on redux, but it's pretty fun when you get the hang of it. As with a lot of things in programming but each to their own.