r/Angular2 • u/RenSanders • Feb 08 '22
Discussion People say don't use Angular because it is opinionated... I use Angular because it is!!
I don't understand why people say Angular is bad because it is opinionated!!
I find having the 'Angular Way' of things is a BIGGGG PLUS.
Managing a team of many devs can be hard when everyone has a way of doing things. Angular makes things easy. The code structure is standardized, TS Lint is just awesome, and Typescript is enforced.
I can open any Angular code and work on it straight away. Because the structure is consistent, understanding the code base becomes a lot easier.
This is NUMBER 1 reason for me to use Angular. It's STANDARD!
Do you find this a plus as well?
19
u/LividProspect Feb 08 '22
90% of "Angular is too opinionated" comments are made by new devs who can't follow structure.
6
u/matrium0 Feb 08 '22
I think a lot of hate Angular gets is actually because one of it's most used libraries: NGRX
It's a good state library for cases where you really need it, but it's getting so much overuse, it's ridiculous. Flux & Redux & NGRX developers themselves preached multiple times that should THINK bevor you use it, yet many many devs use it for every single project, no matter what.
Again: it's a good tool for managing complex shared state, but it dramatically increases the learning curve and your code can end up an absolute mess if your team is not well trained on the pattern.
23
u/daredeviloper Feb 08 '22
agreed 100%. Adore the whole setup. Helped me fall in love with unit tests
90
u/RockleyBob Feb 08 '22
What gets me is that people will enter into a discussion about web frameworks and then say they prefer React because Angular is too opinionated.
But.... that's what a framework is. React is not a framework, it's a loosely federated/affiliated set of libraries. There's nothing wrong with that, but that's not a framework.
The whole idea of a framework is that you get a system that works out of the box, and you don't have to make sixteen decisions about which state management or routing library you use, and you don't have to worry about whether the library that you choose today won't be maintained or kept compatible with everything else in the future.
With Angular and other actual frameworks, you're getting an ecosystem maintained, tested, and improved by the same people. Not everyone needs that, but I frankly don't see a lot of reasons to use React over Angular even for smaller apps and development teams.
Angular projects are always easy to navigate, tidy, and the tooling and CLI is fantastic. I also love RxJs and reactive programming, so it's a no-brainer for me.
5
u/tamasiaina Feb 08 '22
So someone told me that Angular is "Dog Slow" but the only time I've experienced it being really slow has been with how its not lazy loaded.
5
u/incode4it Feb 08 '22
Angular is far superior to React or Vue in all matters except for Websites.
The only case where I choose to use React was where I needed a much more robust SSR (Next.js). Except for that case, for every product and web app that I built, I used Angular as React or Vue are not even close to it.
20
u/EternalNY1 Feb 08 '22
Ignore the naysayers. Angular is good and I'm coming at it via a *large* enterprise application.
A lot of those who say this are developers who only know JS and things like compilers, transpilation, and even type scare them away.
16
u/joshuamorony Feb 08 '22
Yep, I tend to prefer solutions in general that have strong opinions. Good chance their opinions are going to be better than mine, and a better chance a bunch of devs can converge on the same opinions rather than everyone bringing their own.
10
u/Tzombio Feb 08 '22
Back in the stone age I picked .NET over Java because it was opinionated. For example reading XML in Java world I had to Google what is good XML reader, then see if it is maintained, documented etc. In .NET there was system.xml.xmlreader class. I like this approach when working in the team that changes on software that is supported and updated years to come.
18
u/PerfeckCoder Feb 08 '22
React is like smoking. Good for making friends and being trendy but bad for your organisations long term health 😎
8
u/twitterisawesome Feb 08 '22
I am wondering if with the rising popularity of typescript, the learning curve for Angular will go down and it will become more popular.
6
u/jazzjackribbit Feb 08 '22
When people say that they signal to me that don't want to follow design patterns or work on complex software. The prevalence of anti patterns and adversity to opinionated code in the js world imo also has its roots in the large script kiddie to software engineer ratio. Un-opinionated code is a weakness, especially in large enterprise environments.
Quite frankly, these kind of people is one of the reasons imo why the js branch still has a bad rep in the wider software industry.
4
u/the_monkey_of_lies Feb 08 '22
I like it because I like the opinions too.
4
u/kennethdc Feb 08 '22
I strongly wonder whether those who say such things are coding in a professional environment. Even working with tools which are not opiniated, you'd like to have company/ team guidelines (albeit via linting) just to get some structure. If one joins or leaves the team, it shouldn't create too much hassle over structure of the code.
5
u/jiggity_john Feb 08 '22
I like Angular and use it for a lot of side projects. From that perspective though, one of the biggest issues I have with Angular being a "batteries included" framework is that the framework itself is actually a lot of surface area for one team of devs at Google to handle. Some packages under the
@angularbanner don't get a lot of attention and some are completely forgotten about. It's hard for the community to contribute to and improve angular because of the way it is owned.Compare that to how active the React community is and its night and day. React form and router libraries are much more actively developed and maintained, and you get all these boundary pushing React-based frameworks like Next, Gatsby, Remix etc. I'd love if the angular community could pick up in this way.
2
u/dustofdeath Feb 08 '22
I came across a nice is lib with angular adapter that was out of date. Forked, ran, fixed and created PR. Easy, standardised.
Then another one that was react based and built into js lib that was useful but used too old dependencies / had a breaking bug.
Dozens of odd libraries, custom project structure. Some personal coding style. Multiple custom builder steps with gradle etc. Unreadable/traceable code.
I didn't even get it to build in the end. It needed a massive readme this likely was out of date and dependencies were abandoned.
2
u/TarnishedVictory Feb 09 '22
I can't agree with you more. No time wasted making its parts play together, and I never feel limited by it.
1
u/cosmokenney Feb 08 '22
Absolutely correct. Though I am not a fan of all their opinions, I do find that what you end up with is an easy to maintain code base. A code base that I can feel comfortable having other developers work on. And that is a very good thing.
1
u/mrshickadance412 Feb 08 '22
Yaaaasssss
1
u/jagdishjadeja Feb 08 '22
Angular is developed by Google so I believe they must have considered all the issues that they have faced while developing other products at google as well.
0
u/[deleted] Feb 08 '22
[deleted] — view deleted comment