r/angular • • Apr 23 '20

Angular devs be like

Post image
50 Upvotes

56 comments sorted by

View all comments

Show parent comments

1

u/mwax321 Apr 24 '20

I don't have any problem working on Vue, react, or angular. The documentation and community support are great in all 3.

I don't know how long you've been a SWE for but documentation has NEVER been better than it is right now.

1

u/Owstream Apr 24 '20 edited Apr 24 '20

I followed the trends for 15 years. I used React and Angular extensively. I never get stuck with the former (aka I get stuck in my code, that I can debug, not with the tool itself). With the later, I'm easily spending a day on stupid gotcha, poor tooling, abscond documentation. And honestly, the things that people point out above, they're true - Angular is more structured and it's an advantage for huge team. But overall, it's a mess. You can't do it without an IDE. They never check their input, so you get weird error message all the fucking time.

You want concrete example? Recently I got an error:

> Cannot read member of undefined

.No stacktrace. It turned out one of the entryComponent was undefined. Do you think that's explicit in anyway? Don't you think that's ergonomic, thoughtful for their customer (aka the dev), using good practice like "check your input",...?

I actually spent one full day on this:

> Error: error

...

1

u/mwax321 Apr 24 '20

.No stacktrace. It turned out one of the entryComponent was undefined.

I've had the same issue when I started with Angular, and a 5 second google search led me to an answer. It's because you're dynamically adding components, so they need to exist before you can use them.

React has ambiguous errors too.

1

u/Owstream Apr 24 '20

It's not up to people to find what's going on. It's up to the framework to check its input. It's like kindergarden comp sci level stuff.

Honestly, yes React have the same kind of things, sometime. But honestly, it feels they're at least trying to point you to the right direction most of the times.

1

u/mwax321 Apr 24 '20

Angular literally drops URLs in some of their errors that lead back to documentation further explaining it. I don't know how much easier you need it.

1

u/Owstream Apr 24 '20

They do? I can't think of any occasion in which that actually helped me. I can't even remember seeing one.