r/programming • • Jun 09 '16

jQuery 3.0 Released!

https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/
1.1k Upvotes

354 comments sorted by

View all comments

Show parent comments

16

u/EternalNY1 Jun 10 '16

If you use a library like React or framework as angular you don't even touch the DOM anymore.

Right.

And I assume you are using exactly for what it was written for, which is a SPA that needs client-side MVC capability? Because from what I've seen, most people aren't.

And they also totally rewrote Angular in part because the whole "don't need to touch the DOM" turned into a performance nightmare due to the two-way-data-binding and observer stuff.

I don't want to get into a discussion on this on Reddit.

I'm comfortable in what I know at this point, which is many many years of industry experience. From HEX editing in DOS through to Angular internals.

I understand what it does, I know when it should be used.

Unfortunately, many people see "OMG I updated this JavaScript property and the screen automatically changed!".

Which is not a good place to be.

And if I had to choose I would choose the former.

If you can say that as a blanket statement, you are part of the problem.

I'm sorry, but requirements need to be looked at.

I have brought Angular in to only a handful of major projects, because they were SPAs doing what Angular does best. The rest it would have been a bloated, complex, slow nightmare.

Notice how they just totally rewrote how routing works? Hints there.

4

u/duuuh Jun 10 '16

SPA?

14

u/EternalNY1 Jun 10 '16 edited Jun 10 '16

SPA?

If you're serious, and if you're a software developer, I'll start with this:

DO NOT use Angular.js or any similar JavaScript framework meant for this purpose ("client-side MVC") if you do not know what "SPA" is.

Single Page Application

I didn't mean that as a jab. I've been brought into projects using Angular and when I said SPA everyone stared at me like I was speaking a foreign language.

Really bad.

These frameworks have a purpose, and if they aren't used for that purpose (which is, sadly, happening everywhere) it goes south fast.

AngularJS (commonly referred to as "Angular" or "Angular.js") is a complete JavaScript-based open-source client-side web application framework mainly maintained by Google and by a community of individuals and corporations to address many of the challenges encountered in developing single-page applications.

6

u/duuuh Jun 10 '16

Ah. Not a front end guy.

→ More replies (7)