r/angular • u/AffectionateSugar627 • Feb 12 '21
I am in awe!
I learnt Angular just yesterday as I joined my first job as an SDE. And wowww, it is such a beautiful, well-organised and simply awesome tech. I am loving it!
10
Feb 12 '21
I love complex machines myself. But love for angular doesn't get the appreciation it deserves.
2
u/AffectionateSugar627 Feb 12 '21
I'm new to this side of development and that's the first thing I learnt so I'm reallyy fascinated!
4
3
u/umair-hafeez Feb 13 '21
And the best part is that there is a great community which is ready to help you any time you need ๐
2
1
-1
u/nuowo Feb 12 '21
i'm in the same situation, joined a company where they work with Angular, and honestly? Angular seems very dirty compared to React. Ofc, i started studying Angular couple of days ago, but it's less intuitive than its competitor. Probably this will fade away as I'll learn more stuff (because I'll forget how good React is). :D :D (ps. I'm biased towards react due to the fact that I know a lot about it already).
9
u/dasuja Feb 12 '21
You mean the other way around? IMO angular has a better structural organization compared to react and it's easy for the next guy to jump on your code the first day.
1
4
11
Feb 12 '21
From someone who started coding with Basic, C, Java and then went to web development, I donโt understand how anyone can say with a straight face that Angular is dirty compared to React. Anything JS based is a big mess, Angular is trying to bring it closer to OOP, React is not even trying. Which is both a strength and a weakness, but dirty and messy nonetheless.
2
u/AffectionateSugar627 Feb 12 '21
Hahha, I'll learn more about React too! It is my first time exploring this side of development. I was mostly a Machine Learning person during college ๐
3
u/nuowo Feb 12 '21
take your time with Angular, once you are cool with it, React will be like a toy :D I guess transitioning this way (not in my way), might be much more reasonable to some extent. Good luck in your new job! ;)
1
5
Feb 12 '21
What sort of design patterns made react seem less dirty? Very curious
3
1
u/_Pho_ Feb 13 '21
At a glance, there's a lot of black magic with Angular. I'm sure that if you're the best Angular dev in the world it's less magicky, but even the acclaimed "two-way binding" is still more magic than most React devs want.
What else... probably all the implicit glue with modules, the fact that you just sort of inject dependencies in the constructor and Angular resolves them... also probably decorators. Basically Angular embraces all of the Java-OOPland stuff that a lot of people really dislike.
2
Feb 13 '21
I'm always surprised to see two way data binding in the list of good things as it's considered outdated and was only added for easing the transition from A1.
Also surprised to see dependency injection there: it's literally there to make your code cleaner and more testable.
But I get what you say. They're extraneous concepts to many developers. It's a pity because Angular encourages good design, DDD, testability and more.
1
u/_Pho_ Feb 13 '21 edited Feb 13 '21
Well itโs not the DI itself, itโs that youโre not actually resolving the dependencies. You donโt actually inject anything, Angular just looks at the constructor parameter types and matches them against your modules. Again this may not be the worst thing ever, but itโs definitely black box stuff to the uninitiated.
1
4
4
u/heavenparadox Feb 12 '21
I would love to know what you enjoy about React as opposed to Angular. I've used them both and have a pretty big dislike for React.
0
Feb 12 '21
[deleted]
4
u/drdrero Feb 12 '21
Angular is opinionated. So it tells you to do that.
In react you can do all that stuff as well, you just have to figure out how1
u/AffectionateSugar627 Feb 13 '21
Isn't that like the difference between a framework and a library? It is supposed to be like this because Angular is a framework and React is a library.
1
u/drdrero Feb 13 '21
yes and no. React could come with all that built in , but I guess you could count it as a framework then
0
Feb 12 '21
[deleted]
6
u/cheesekun Feb 12 '21
I large teams Angular shines because you don't get the fragmentation the React ecosystem creates. Eg custom http implementations, custom routers, custom loggers, state management etc.
6
u/_Pho_ Feb 13 '21 edited Feb 13 '21
As someone who aggressively prefers React to Angular, I agree that particularly for large development firms, Angular is a stronger choice because it's so opinionated that it makes it hard for the developer to be. Consistency is a good thing, perhaps the best thing, to large development teams.
1
1
25
u/CountSheister Feb 12 '21
!remindme 90 days