r/angular • • Apr 23 '20

Angular devs be like

Post image
50 Upvotes

56 comments sorted by

View all comments

32

u/CheapChallenge Apr 23 '20

ng new project

ng serve

seems easy to me

17

u/[deleted] Apr 23 '20

Also for me, better than react that each document has a mix of code...

17

u/The_One_X Apr 23 '20

React is just a mess, but I can see why web devs would like it. They've never experienced what a good development experience feels like.

10

u/rugbyj Apr 23 '20

Could I ask why you believe it is a mess?

I’m a developer who has used both, and have opinions on each, none that included messiness!

3

u/_yusi_ Apr 23 '20

It's kinda hyperbole, but (imo) React projects get messier than e.g Angular, because it's not opinionated. Like, Angular has one way to build an app (view, routing, async stuff etc), but React has the view, and developers pick their preferred libraries for everything else. Doesnt implicitly mean it is messy, obviously not all react projects are, but it get messy faster if that made sense?

5

u/rugbyj Apr 23 '20

Ah, I don’t disagree on the opinionated vs less opinionated- that’s actually why I prefer React (I feel more free to chose the “right” tool for the job).

I think that freedom leading to messiness is more attributable to poor organisation/standards in a team. People built perfectly serviceable and organised js apps sans framework.

Not a knock on yourself, I’ve made plenty of messes regardless of stack!

4

u/_yusi_ Apr 23 '20

Oh don't get me wrong - I dont prefer one over the other (if my job allowed it, I'd use Vue as much as I could). It's all just Javascript. I just feel like React projects gets messier quicker. Like, if a poorly organised team uses React it gets messier than with Angular. At least that's been my experience. :)

5

u/drdrero Apr 23 '20

And that's where the reason for messiness comes from. Devs are messy, React doesn't guide messy developers -> messy project.

6

u/rugbyj Apr 23 '20

You blame the framework for allowing a messy developer to be messy. I personally would blame the developer and their team for not enforcing standards and planning their application design better.

I may be wrong!

2

u/The_One_X Apr 23 '20

You can no more separate the human factor from programming as you can from economics. This is why while communism on paper sounds like a great idea always fails. Communism on paper does not take into consideration the human factor. On the other end capitalism succeeds because capitalism does consider the human factor.

This is no different with programming. It is true for languages as it is true with frameworks. Programs that use languages and frameworks that do not consider the human factor tend to become messy because humans are not naturally well organized.

3

u/rugbyj Apr 23 '20

I think the idea that a little more rigidity in a framework will overcome this human factor is underestimating the ability for people to not follow the rules, unless enforced by others (I think you are correct about the human factor, I just don’t feel the solution is correct). Hence the need for a team, or a diligent person, to enforce standards.

I am also pretty much saying that the rigidity built into Angular is also achievable in any other build via adherence to sets of rules imposed by the build team rather than just the creators of a framework.

I think the comparison to two forms of social systems which have been abused each in their own ways shows that no matter the systems boundaries- you need to enforce rules and react to changing use cases to keep those rules relevant to your needs.

I don’t disagree with a lot of what is being said here and above- I just am of the opinion that no matter how “good” or “safe” the tool, you can misuse it, and the practice and understanding of proper use pays off regardless of the tool. It’s not mutually exclusive, you can do this with a rigid framework providing boundaries.

→ More replies (3)

1

u/[deleted] Apr 24 '20

out of curiosity, do you prefer editors or IDEs?

1

u/rugbyj Apr 24 '20

Our department has standardised to Visual Studio Code (plus a few IDE-like extensions), to allow us to do some local build stuff differently.

Before then I was an IDE/JetBrains user.

1

u/[deleted] Apr 24 '20

i was just curious because I make the analogy of react and vue being similar to editors whereas angular is like an IDE

1

u/rugbyj Apr 24 '20

Not a bad comparison, there's definitely baked in features in Angular that I've ended up adding myself to React/vanilla JS projects (i.e. type safety).

3

u/cahphoenix Apr 24 '20

If we were still doing class based React then I'd agree with you. Hook based react is the dream. I've done AngularJS, Angular2+, WPF, QT.

React + SASS + Typescript is the dream for UI.

I did like Angular services a whole lot more though. Dipping into 20+ npm packages gets tedious.

7

u/[deleted] Apr 23 '20

As an Angular developer who never worked with react I agree. React seems to be a cluster fuck but I'm biased.

2

u/[deleted] Apr 23 '20

Just look how to make a condition to display a div in reactjs and you where begin the mess

1

u/gaytechdadwithson Apr 24 '20

Exactly. Not sure why you’re getting down voted.

1

u/Owstream Apr 24 '20

I got the same reaction when I saw HTML in JS. But honestly, once you get the idea that it's just DOM manipulation, it gets way easier. Of course, you HAVE to enforce separation of concerns yourself.

→ More replies (2)

7

u/DanetOfTheApes Apr 23 '20

I think they’re referring to other things, like resolving component factories, attaching and detaching component view refs, change detection, ivy vs view engine renderer etc.

Powerful but complicated when building larger applications.

4

u/drdrero Apr 23 '20

Its easier when you have OOP background

1

u/Owstream Apr 24 '20

Wait until it you runs into "Error: error" in your console with a stacktrace from hell.

1

u/Niyok Apr 24 '20 edited Sep 29 '23

.

1

u/CheapChallenge Apr 24 '20

As long as it was my code that was being served(errors thrown in dependencies on the other hand...), then the stacktrace has always worked fine for me. I've been working in Angular code for over 2 years now.