Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Some clarifications:

1. Angular 2 is not object oriented in the standard meaning of the term: it does not rely on inheritance or polymorphism that much.

But it does rely on classes as the backing structure of your UI components. In other words, they tried to create a platform for creating widgets that compose. And more or less succeeded.

This is a tried and true pattern that has been used to create complex user interfaces since forever. I would wait a while before claiming that this stile is obsolete.

2. Angular 2 is quite functional.

Decorators in Javascript are just higher order functions (like python I guess). They look like like Java's annotations, but work in a completely different way.

They made streams (RxJs) the standard way of working with data.

And pipes are also a functional construct.

3. There are some good things to say about their routing module too, but I have to go.

Anyway, my opinion is that Angular and React address different needs and there is definitely room for both of them.



Observables are the most functional JavaScript library/mechanism I've worked with.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: