r/webdev • • Jan 05 '16

Angular 2 versus React

https://medium.com/@housecor/angular-2-versus-react-there-will-be-blood-66595faafd51
194 Upvotes

74 comments sorted by

View all comments

32

u/yird Jan 05 '16

angular is the java of JS frameworks.

51

u/x-skeww Jan 05 '16

I know this is meant to be criticism, but "being the Java of something" would be actually seriously awesome. It provided large productivity improvements (over C++). It has been a very popular language for 2 decades. It had a language specification and things like official code conventions, excellent documentation, and a doc generator. There are still many languages which can't offer that stuff. There are even free top-notch IDEs. The JVM is an excellent platform. Java is a unicorn which shits gold nuggets.

Sure, now it looks a bit long-winded and clunky, but things would be very different if it weren't for Java.

16

u/dweezil22 Jan 05 '16

"Java of something" : Noun, circa 2010 describes a workable language which pays the bills and feeds the kids but seems (and may actually be) less fun and/or efficient than something else new. See "COBOL of something", now archaic (well maybe...)

3

u/CuriousCursor Jan 05 '16

Yeah, I think only people who used java in very limited capacity have this mindset. Development tools available to work with java are so vast that they alone make it fun to work with.

1

u/3058248 Jan 05 '16

What is replacing Java?

-2

u/PhaZePhyR Jan 05 '16

I suppose Scala, albeit slowly...

5

u/[deleted] Jan 05 '16

Java is slowly eating Scala's best features.

10

u/legendaris Jan 05 '16

angular is the java of JS frameworks

Can you explain how so?

6

u/felipeccastro Jan 05 '16 edited Jan 05 '16

Just like Java, Angular became somewhat known for overusing design patterns, over-engineering and making everything too "enterprise-y".

My favorite rant about this topic is you have ruined javascript (linked cached version because the article seems to be offline now)

0

u/hahaNodeJS Jan 05 '16

"Overusing design patterns" is a nonsensical statement. Literally every piece of software is a pattern of some kind. Using common and well understood architectural patterns lends itself to consistency and ease of maintenance and understanding.

The opposite of "overusing design patterns" would be to not use any patterns, which would mean having many ways to do exactly the same thing (this is not the same as Angular's providers, factories, and services, which is a problem, but they do serve different purposes). Imagine a codebase wherein each structural decision is completely different from file to file.

I'm not certain where you see over-engineering in Angular. It's quite simple to make an application without being an architecture astronaut, and with a solid understanding of how Angular works, little to no work needs to be done to get Angular to behave the way you intend.

"Too enterprise-y" is a wishy-washy statement without a real definition.

1

u/felipeccastro Jan 05 '16

Do you know the FizzBuzzEnterpriseEdition? This is an exageratted version of what I mean by "enterprise-y" (or "overusing design patterns"), basically adding complexity for no good reason besides looking professional.

I'm not claiming that's the case with Angular, my point was to explain what it usually means when someone compares X with Java. If you prefer this more structured approach, then it's not even a bad thing.

1

u/hahaNodeJS Jan 05 '16

I have seen that git repo and, while I think it's a fantastic example of what an architecture astronaut would build, I'm not so sure I agree that it's representative of anything enterprise. There is a massive difference between the colloquial understanding of enterprise software and the actual definition.

0

u/[deleted] Jan 05 '16

[deleted]

1

u/steampunkdev Jan 05 '16

Which is a bullshit thing to say about Java anyhow.

10

u/[deleted] Jan 05 '16

Obviously spoken from someone who has used neither it seems.

0

u/[deleted] Jan 05 '16

[deleted]

6

u/shizzleberry Jan 05 '16

What are you using jQuery for?

2

u/[deleted] Jan 05 '16

Off the top of my head Bootstrap plugins.

-2

u/RickAndMorty_forever Jan 05 '16

Haha that's the best I've heard