News for hackers. Stuff that matters.
Re:The problem with Angular by splatcollision on Wednesday January 14, 2015 @10:31AM (#8886803)
So so misguided - what happens when your javascript request fails? Or a broken build throws a script error? Progressive enhancement makes sure your content is accessible no matter what the conditions.
Re:The problem with Angular by fixermark on Wednesday January 14, 2015 @10:52AM (#8886973)
> what happens when your javascript request fails?

You hit 'refresh'

> Or a broken build throws a script error?

The same thing that happens when a broken build returns a 500---the user can't use that service until the developer fixes it.

Progressive enhancement is a theoretically good idea that---in practice---actually adds a lot of overhead to developers (because every layer of progression is its own UI, with its own user experience and considerations).

Re:The problem with Angular by JustSomeNobody on Wednesday January 14, 2015 @11:53AM (#8887409)
"You hit 'refresh'"

_You_ don't, the customer does.

Would you care to name the sites you work on so I can stay away?

Re:The problem with Angular by fixermark on Wednesday January 14, 2015 @11:59AM (#8887447)
"Me" in this context is the customer. I'm talking about pages I see in the wild; when pages can't talk to their backends, they throw a "We crashed; please refresh" dialog, and I do what I'm told. ;)

Pages I write generally try their best to wrap calls that can fail in a reasonable retry envelope with some intelligent discernment of what response codes can be retried (429, the occasional 420 if someone thought Twitter was cute, the VERY occasional 500 if I just happen to know that the service in question is flaky) and only failing the error back to the user if the client can't retry it. In contrast to the non-JavaScript forms-only sites I've used, which tend to just surface their 429s and 500s straight to the user and expect them to know what a "back" button is (and whether it's safe to resend a form in this context), it's a better user experience.

(Incidentally: I do find myself having to re-invent that "retry envelope with a success handler, fail handler, and filter to determine if the response should be retried" boilerplate over and over as I move among frameworks; if anyone's built a smooth request wrapper for that, it'd be nice-to-have).

Re:The problem with Angular by icebraining on Wednesday January 14, 2015 @10:51AM (#8886962)
What happens when the server-side templating code fails? That doesn't seem to be an issue with client vs server side HTML generation.
Re:The problem with Angular by maigret on Monday January 19, 2015 @05:08AM (#8911229)
The administrator gets a report immediately. Also the server environment is much more in control. Been there, done that, the author has a lot of good points. Partial server rendering is rock solid and so much faster. Not looking back.
Re:The problem with Angular by gnaritas on Thursday January 15, 2015 @07:58PM (#8896598)
I use the noscript tag to tell people with JS disabled that the site requires JS, end of interaction. Enable js or go away, I have more important things to do than bother with people who intentionally break their browsers. They aren't the target market and aren't worth catering to.

This is business, not academia, right and wrong are judged by profit and loss and opportunity cost, not by what is ideal given unlimited resources. Work on feature X or double my work so a few people a day who break their browsers can still use the site... one is practical, the other is not.