Are we going backwards using a JavaScript MVC (MVVM) framework like Backbone.js, Angular, etc.? [closed]
Asked Answered
P

1

11

JavaScript MVC frameworks like Backbone.js, Angular, Ember.js, etc. are all the rage these days. I understand that they are great for preventing spaghetti code and all, but I really don't understand why they've taken off like they have.

After all of these years making sure sites are accessible using stuff like progressive enhancement, this sort of thing doesn't work whatsoever when JavaScript is disabled. Take a look at https://app.getblimp.com/. It's a great app, but the entire thing is useless if JS is disabled. Remember years ago when Target was sued over a million dollars because their site was inaccessible?

Another thing is how HTML is so integrated in the JS. Whatever happened to keeping HTML separate for markup, CSS separate for presentation and JS separate for behavior? Why is all this stuff that should be handled by a server being done by JavaScript??

Can someone please point out why a JavaScript MVC framework would be used over a traditional server-side MVC framework like PHP's Zend, Ruby on Rails, or Python?

I just don't get it!

Percept answered 11/2, 2013 at 21:55 Comment(6)
If you want to be 100% compliance, offer up a version of the site that can work without JavaScript. Modern day screen readers handle JavaScript well.Girardi
I'm not sure this question belongs on SO. That said, I agree with you. Personally, I lean more towards making the site functional without JavaScript, and then, in the words of CSI: "ENHANCE!"Rockies
I know it may or may not be good for SO, but I'm not looking for a discussion. I'd simply like to get an answer why I would use Backbone.js.Percept
Don't use "Backbone.js" as the gold-standard for JS MVC (MVVM) frameworks. Angular, Ember, Spine... there are others.Lollipop
IIRC, the Target lawsuit was about the site being inaccessible to those with impaired vision or motor skills, not about javascript being disabled. You can tell someone "you must enable javascript" but you cannot say "stop being blind".Centeno
For the most part, using JS is not a bar to accessibility, provided it is used correctly - ensuring accessible best practices are followed, using WAI-ARIA attributes as appropriate, and so on. Interesting to note that the most recent WebAIM Screen Reader survey reported 98.6% of users with JS enabled.Deedradeeds
L
12

If someone disables JavaScript, the entire Internet will break for that user. So, no, BackboneJS and other frameworks like Angular and Ember are moving us forward by taking what used to be a browser language reserved for snippets and stupid animations and allows us to organize it in a collaboratively-friendly way for scalable user-friendly applications.

Keeping as much load on the client is where JS applications really shine. There is no need to force the user to make unnecessary http connections to your server and have your server do the work when the same result can be had without.

Lollipop answered 11/2, 2013 at 21:59 Comment(1)
Those are some good points!Percept

© 2022 - 2024 — McMap. All rights reserved.