Ask HN: Is there a sane alternative to Angular and React?
11–20 of 85 posts
Re: Ask HN: Is there a sane alternative to Angular and React?
#12Re: Ask HN: Is there a sane alternative to Angular and React?
#13Angular, at least up to 2.0 which I've checked, it's a conceptual mess.
React, on the other hand, is conceptually better than Flash and Silveright, and even has more powerful abstractions in several areas.
The problem is that React handles a small part of the logic that Flash and Silverlight do (or, something like Flex would), and does so at various levels of the whole stack (some low level like diff-ing repaints, others at higher level like component nesting), and all the wiring and extra handling is left to the programmer to handle.
For all the progress with React and co, it's still the wild west as far as programming efficiency is concerned. Elm is not much better either.
Re: Ask HN: Is there a sane alternative to Angular and React?
#14Re: Ask HN: Is there a sane alternative to Angular and React?
#15I think React is actually quite sane to use now. However, if you're looking for the future, you may want to check out Web Components and Polymer: https://www.polymer-project.org
It's a committee driven over-engineered spec that's not going to be any more succesful than XHTML...
Re: Ask HN: Is there a sane alternative to Angular and React?
#16Re: Ask HN: Is there a sane alternative to Angular and React?
#17You're never going to get something as simple as Flash, with a write-once works everywhere. But your user's aren't going to be annoyed at the crappy UX that Flash (or Flex) applications brought us.
EDIT: I'm dead serious about this, with the concept of isomorphic apps, I'm not convinced building thick Javascript-based clients is necessarily the way to go for a lot of use cases, including the traditional business information worker-type of application. With these modern JS frameworks working on the concept of rendering virtual DOM diffs, why not just render the partial diff on the server and swap out the specific DOM on the client page?
Re: Ask HN: Is there a sane alternative to Angular and React?
#18Re: Ask HN: Is there a sane alternative to Angular and React?
#19React is, in many ways, a take on Flex's excellent MXML updated for a JS world that understands that 2-way data binding is the devil. It is very sane.
Re: Ask HN: Is there a sane alternative to Angular and React?
#20Both TypeScript and JSX are optional, you don't have to use either with them. There is a ton of different choices out there to choose from if React and Angular are not your thing. One example: Ember.js recently moved their rendering into a standalone library called Glimmer ( https://glimmerjs.com ), which is a bit React-like in its approach but nonetheless different. They advocate Typescript as well but don't require…
It is interesting you are the second person replying in this thread to point to Elm. I must check it out! I suppose both TypeScript and JSX are optional but they are symptomatic in a way in that their existence suggests the alternatives are sub-optimal (i.e. a combination plain JavaScript or a clear demarcation of markup and styling).