Hacker News new | ask | show | jobs
by nzonbi 3628 days ago
The base structure may be somewhat similar. However Angular 2 makes things more complicated with more stuff: dependency injection, class decorators, services, etc. Riotjs takes a simpler approach, inspired by React, but improved with better design. In Angular 2 inline html templates that are not syntax-highlighted by code editors. Full html templates require spliting the component in separated files.

In Angular 2 there are multiple data bindings syntaxs: There is one way up, one way down, or 2 ways. In Riotjs, there is only one, and you can use it with the Flux architecture or similar for a simpler, easier to reason about, and proven architecture. In my opinion Angular 2 is over enginered, with a lot of stuff that you can easily do without it. See React. And by not having over enginered stuff, you benefit of a simpler architecture that is easier to learn, and simpler to use. I have found that simplicity makes many people more productive. And React and Riotjs both are simpler than angular 2.