DEV Community

Marwan Zaky
Marwan Zaky

Posted on

My thoughts after learning Angular

My go-to web framework has been always React.js (Or Next.js) since my start journey into full-stack web development. And, I didn't have the courage to learn other interesting popular frameworks such as Vue.js, and Svelte.

Not because I dislike them, I just don't see the reason to since as a full-time freelancer the most demanding and preferred framework among clients is React.js.

However, there is one specific framework that I have no interest in or hope not use in my career and learn which is Angular since people seem to hate it and it's very rare you see someone talking about it on social media.

Recently, I got a new full-stack developer role opportunity which is looking for an Angular developer. I was very happy with most of the technologies they are using but quite not happy with the framework.

A few days after learning and digging deeper into the Angular framework, and thought. Hah, maybe it is not as bad as I thought. And I was quite impressed with how they're approaching building websites. It has a quite different mindset than React.js.

What I've learned after using Angular for 3 months?

After using Angular for a while now I can see it's a very powerful framework. Angular, forces you to have a dedicated and separated code logic for each file as the following:

  • name.component.html
  • name.component.css
  • name.component.ts
  • name.service.ts

React.js on the other hand it's quite the opposite of that in which you combine all logic into one function. Which can be very overwhelming sometimes when dealing with complex components.

We see Angular is nicely separated logic whereas React is not really. Also, in React you have so much freedom and many ways you can build and define your project architecture which is prone to a lot of bad practices, especially for beginners.

This too much freedom can be an issue, especially with collaboration with other developers which can result in inconsistent coding patterns and architecture in the codebase.

On the other hand with Angular, it narrows that freedom with a solid and consistent architecture and coding pattern throughout the project which works very well on big projects.

The other thing with React is you have to rely on a lot of third-party solutions whereas in Angular you have all the features out of the box which works really well together.

Conclusion

In conclusion not saying React.js is not good, I would say both have some cons and pros.

With React.js you have so many opportunities and options to choose from depending on what you want to build.

And I would also say, that Angular can be slowish sometimes if you want to build something quicker and faster which is not ideal for prototyping.

And yeah, this is my overall thoughts on these two popular frameworks and I'm thinking of making a more detailed version of this post to elaborate more on why Angular is a very underrated and very powerful framework.

Top comments (0)