News for hackers. Stuff that matters.
Re:StackOverflow clone, created entirely with Redis and jQuery by serichsen on Sunday January 09, 2011 @09:02AM (#2085468)
Main difference: it does not degrade gracefully. It just doesn't work without JavaScript activated.
Re:StackOverflow clone, created entirely with Redis and jQuery by gnaritas on Sunday January 09, 2011 @10:52AM (#2085622)
> Main difference: it does not degrade gracefully.

Who cares, really? The percentage of people who purposefully break their browsers isn't worth catering to.

Re:StackOverflow clone, created entirely with Redis and jQuery by mscarborough on Sunday January 09, 2011 @11:36AM (#2085713)
> Who cares, really? The percentage of people who purposefully break their browsers isn't worth catering to.

Accessibility. Is there really any reason why a questions/answer site with voting can't provide noscript tags?

Refactoring ours to deal with that, so not trying to throw stones.

EDIT: I understand mythz's comment about being a play project. i'm just responding to the 'why break your browser' sentiment.

Re:StackOverflow clone, created entirely with Redis and jQuery by tomh- on Sunday January 09, 2011 @01:34PM (#2086003)
Why would you provide an implementation with noscript tags? only 0.01% of your users will probably be affected. These are the users who never click or view ads anyway, why spent time for them while you could implement more important features?
Re:StackOverflow clone, created entirely with Redis and jQuery by DenisM on Sunday January 09, 2011 @05:59PM (#2086724)
>Is there really any reason why a questions/answer site with voting can't provide noscript tags?

Because making two versions of the site is twice as much work?

Re:StackOverflow clone, created entirely with Redis and jQuery by mythz on Sunday January 09, 2011 @11:49AM (#2085736)
It's an ajax site that uses static html/js for speed, i.e. there are no .aspx .jsp pages to generate dynamic html on the server. If this were a real app there would be.
Re:StackOverflow clone, created entirely with Redis and jQuery by rlivsey on Sunday January 09, 2011 @05:10PM (#2086583)
Graceful degradation doesn't just mean "works without JavaScript".

This demo doesn't let you link to (or bookmark) a page or open questions in new tabs. For an app like Gmail that probably doesn't matter, but for something like this I'd say it's pretty crucial functionality to be missing.

Progressive enhancement where you add JS to improve the experience is a much better approach. That way you get all the basic functionality for free instead of trying to retrofit it onto the ajaxy app.

Now that you can manipulate the address bar with pushState [1] you can even make these enhancements completely transparent.

[1] https://developer.mozilla.org/en/DOM/Manipulating_the_browse...

Re:StackOverflow clone, created entirely with Redis and jQuery by mythz on Monday January 10, 2011 @05:20PM (#2089980)
ok updated demo now has bookmarkable Ajax REST support :) with even ctrl+click opening new window!
Re:StackOverflow clone, created entirely with Redis and jQuery by daleharvey on Sunday January 09, 2011 @11:06AM (#2085650)
fully agreed, its very similiar to the days when people used to complain about not being able to login to sites when they disabled their cookies.
Re:StackOverflow clone, created entirely with Redis and jQuery by AgentConundrum on Sunday January 09, 2011 @11:10AM (#2085656)
I'm just going to assume you've never tried to use StackOverflow without having JavaScript enabled.
Re:StackOverflow clone, created entirely with Redis and jQuery by serichsen on Monday January 10, 2011 @03:00PM (#2089544)
I do have. I can read everything, and I can both post and edit questions and answers. That is a huge difference from random leftovers.
Re:StackOverflow clone, created entirely with Redis and jQuery by jules on Sunday January 09, 2011 @09:15AM (#2085492)
But it is a lot more responsive.

Is there a way to make it degrade gracefully? The problem I see is that you can't have the JS and non-JS parts have the same URLs. The JS part will have urls like thesite.com/#question123, whereas the non-JS site will have urls like thesite.com/question123. So now you have two urls for each page, giving problems with search engines (and I think search engines will consider thesite.com/#x the same url as thesite.com/#y, and only load one of them).

Re:StackOverflow clone, created entirely with Redis and jQuery by mythz on Sunday January 09, 2011 @09:28AM (#2085514)
Yeah if it were a real app I would definitely go through the effort of having it degrade gracefully and crawlable. Although for those interested Google has a proposal for crawling Ajax sites: http://googlewebmastercentral.blogspot.com/2009/10/proposal-...
Re:StackOverflow clone, created entirely with Redis and jQuery by numix on Sunday January 09, 2011 @10:14AM (#2085573)
You could use the new pushState() to change the url (https://developer.mozilla.org/en/DOM/Manipulating_the_browse...). A good example is Github's repo browser.
Re:StackOverflow clone, created entirely with Redis and jQuery by mythz on Monday January 10, 2011 @05:25PM (#2089996)
pushState() / twitter-like Ajax REST-ful Url's now added!
Re:StackOverflow clone, created entirely with Redis and jQuery by markelliot on Sunday January 09, 2011 @10:20AM (#2085583)
Have you tried using StackOverflow without JavaScript enabled? I wouldn't call its degredation graceful, maybe more graceful than this..
Re:StackOverflow clone, created entirely with Redis and jQuery by mythz on Sunday January 09, 2011 @09:16AM (#2085496)
Do you know many other jQuery only websites that do?
Re:StackOverflow clone, created entirely with Redis and jQuery by euroclydon on Sunday January 09, 2011 @09:33AM (#2085522)
Won't that nearly eliminate search engine scans?
Re:StackOverflow clone, created entirely with Redis and jQuery by angrycoder on Sunday January 09, 2011 @12:53PM (#2085886)
That is a common problem with most ajax heavy sites. The workaroud is to generate a sitemap.xml for all your ajax content.