Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
h3rp1d3v5232y@nibor only if I am in a position to convince the entire team to switch to store architecture... I am already the noob who complaints about everything
-
Marl3x27792yI'm sorry but your team being inept at software architecture has nothing to do with Angular.
-
Marl3x27792y@ostream It does, Redux is a library that exists for Angular the same way it does for React, if you use it and it helps your code, good for you, but you can do the same shit in any other Framework.
Also: Angular actually has an opinionated architecture that you are supposed to follow, React does not. There are patterns and libraries that evolved over time, but Angular actually tells you what to do, if you are unable to use it then I'm sorry for you. I am actually teaching Angular at my company and I know what bullshit code you are able to write with Angular, but most of the time it's people not understanding how to use the tools they give you, and I know you can do the same with React.
IF YOU FUCKING CALL THE HTTP CLIENT EVERYWHERE IN YOUR APPLICATION THEN I'M SORRY FOR YOU BUT THAT'S PLAIN IGNORANCE OF THE SRP.
Stop blaming the tools. -
I used to think that UI is the perfect use case for OOP.
That changed after I started using and loving declarative and reactive UI frameworks. Seeing UI as the function of the model state eliminates a whole bunch of problems. -
Marl3x27792y@ostream Redux has nothing to do with RxJs. I agree that it's complex that's why i discourage beginners from using it at all, but it's also poweful as fuck. There are front- and backend frameworks that are based solely on RxJs.
The separation of template and business logic is probably just an objective opinion. Personally i like it, but there are drawbacks to both approaches. -
Marl3x27792y@ostream ah ok, i don't like ngrx either, i prefer ngxs which fits nicely into the existing architecture, but most of my applications actually don't need it.
-
Crost41082yEvery angular app I have worked on is a piece of shit, because people don't understand what mmvm even is let alone anything else.
Latest I work on has ngrx... So they put everything in there including component state. So components do nothing but load forms and button state etc from ngrx... Including html. So now we have no M V VM... We have M. And everything shoved into one incomprehensible place of spaghetti
Related Rants
I can now appreciate some design decisions behind react-redux after witnessing some angular OOP clusterfuck.
I am sure there is some clean/correct way to code in angular, but everyone is treating angular as java.
Some angular application (the one I have to work with) is littered with network calls. It's difficult to spot duplicates. People usually resolve promises everywhere. In services, in a top-level component, or in for loops. In react, people use apollo/redux-query or redux-saga to handle network calls. Since these libraries prevent duplicate network calls internally and reassigning apollo network call function or redux action function is always useless, it's easy to spot all network calls in a component tree.
In angular, it's difficult to trace data mutations when data can be updated everywhere. In react, you can easily find UI state updates by tracing state hooks/dispatch/apollo usages.
In angular, it's difficult to trace data pipeline. Since everything is imperative by default, people need to add update functions in data subscriptions. With all the littered mutations. Soon you will lose track of what the fuck is going on.
I hope angular get the agonizing death it deserves and fuck everyone who codes JS OOP clusterfuck UI.
rant