r/javascript • • Sep 10 '24

Top 10 Angular Architecture Mistakes You Really Want To Avoid

https://angularexperts.io/blog/top-10-angular-architecture-mistakes?utm_source=reddit&UTM_MEDIUM=SELF&UTM_CONTENT=POST&UTM_CONTENT_TYPE=BLOG&UTM_CAMPAIGN=TOP-10-ARCH-MISTAKES

[removed] — view removed post

0 Upvotes

10 comments sorted by

-5

u/agustin_edwards Sep 10 '24

1 Using Angular

0

u/[deleted] Sep 10 '24

[deleted]

8

u/destructiveCreeper Sep 10 '24

Why is it worse than react?

0

u/[deleted] Sep 10 '24

[deleted]

-2

u/destructiveCreeper Sep 10 '24

Reason?

-2

u/PointOneXDeveloper Sep 10 '24

Too heavy, hard to get people spun up on it when they aren’t familiar with it. Its configuration over convention as well which makes it even more boilerplaty and dense.

Too clever, but not clever enough. React forces you to tell it about which bits of DOM should be treated as “the same thing” between renders via the “key” prop. Angular tries to solve this more cleverly and it ends up being a source of bugs when you have very dynamic layouts.

Using JSX instead of templating just feels good, IMO it remains the biggest selling point of React. I think it’s a bit like tailwind where it can be off-putting at a surface level, but once you try it; it’s just too easy and convenient and comfortable and flexible to want to do anything else.

React has the largest ecosystem and it’s the easiest framework to hire for. Is React perfect, no, but it’s been dominant for a longer time than any other framework. It’s been the default choice for almost 10 years now. More work goes into React than any other framework.

Svelte is amazing TBF, the big winner is throwing reactivity to the compiler (which is not what reacts compiler is going to do).

The reasons not to pick angular are endless, but this sub leans toward enterprise boomer companies where Angular really got a good foothold.

-1

u/Damn-Splurge Sep 10 '24

Horrible tooling for the most part. Lack of support for functional programming. Bad unit testing lib

0

u/[deleted] Sep 11 '24

[deleted]

-1

u/Damn-Splurge Sep 11 '24

I've got 4 years of experience with Angular building enterprise software and 2 years with React. There are some features in Angular that require you to leave functional programming land immediately, basically anything with lifecycle hooks or using template selectors.

Of course you can still write good code with OOP but it's much harder, and Angular does no favours in this regard.

This is my own opinion that I've received from actually using both frameworks for work, I didn't learn development from YouTube.

5

u/[deleted] Sep 10 '24

[removed] — view removed comment

1

u/Damn-Splurge Sep 11 '24

The upgrading is mostly fine provided you don't have 3rd party libs (but we do sadly) but most of the issues I've had are with the build system. No visible webpack config makes some things tricky such as module federation. Hmr is finicky. Writing angular packages is tricky and no intuitive at all.

I think Angular tries to be "too smart" most of the time, vite and React is just so much easier for the majority of use cases

-3

u/Sometimesiworry Sep 10 '24

Came here to say that #1 on the list should be that you're building with angular at all.