TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Auto-Refreshing lists is a basic expectation in 2011

20 pointsby prateekdayalover 13 years ago

5 comments

unwindover 13 years ago
I agree. Unfortunately, I think the "basic expectation" aspect means that users really will <i>not</i> "love it and thank you for it". They'll just go "meh".
igorgueover 13 years ago
I think that frameworks like Rails or Django are not built to solve this problem out-of-the-box. Thus if you're not careful enough you'll end up with some messy ass JavaScript code (and I have seen it everywhere).<p>Lately though, I've started to build apps using Backbone (I guess you can use Knockout or Batman too) and Django (or Rails) just to build the API, and it's very simple to do this.<p>All you have to do is:<p><pre><code> // Poll every 10 seconds to keep the channel model up-to-date. setInterval(function() { channel.fetch(); }, 10000); </code></pre> At least in Backbone <a href="http://documentcloud.github.com/backbone/#Model-fetch" rel="nofollow">http://documentcloud.github.com/backbone/#Model-fetch</a>
评论 #2995284 未加载
gueloover 13 years ago
Yea that's nice and all but every new feature requires time, adds complication, needs to be maintained forever, and is a potential source of bugs.<p>Like everything else it should be a cost/benefit decision.
评论 #2995212 未加载
ericHosickover 13 years ago
The idea that a page should not be refreshed manually to get the latest information should have been a defacto "Web 2.0" idea.
评论 #2995219 未加载
评论 #2995300 未加载
Joakalover 13 years ago
Automatic full page refreshes without much work: &#60;META HTTP-EQUIV="REFRESH" CONTENT="5"&#62;
评论 #2995531 未加载
评论 #2995295 未加载