News for hackers. Stuff that matters.
Re:Mistakes in Web Design by mojuba on Wednesday August 06, 2008 @11:52AM (#268586)
The problem is, there might be new comments even if you visited the thread.

But there's a remedy for it and it's simple: the link includes the number of comments in that discussion, so that your browser can change the color if the number of comments has changed since your last visit.

Edit: e.g. http://news.ycombinator.com/item?id=268389&c=21

Re:Mistakes in Web Design by mhartl on Wednesday August 06, 2008 @09:09PM (#269231)
This is neat. I've been using this technique ever since stumbling across it in "Building Communities with Software" by Joel Spolsky (http://www.joelonsoftware.com/articles/BuildingCommunitieswi...). Money quote:

Q. Why don't you have some kind of system so I can see what posts I've already read?

A. We have the best system that can be implemented in a distributed, scalable fashion: we let everyone's browser keep track of it. Web browsers will change the color of the links you've already visited from blue to purple. So all we have to do is subtly change the URL for each topic to include the number of replies available; that way when there are additional replies the post will appear in the "unread" color again.

Anything more elaborate than this would be harder to build and would needlessly complicate the UI.

Re:Mistakes in Web Design by pg on Wednesday August 06, 2008 @01:36PM (#268711)
Very clever. I may do that. But it would take more than 5 seconds, because I have to think about the best way to distinguish between visited and unvisited links.
Re:Mistakes in Web Design by gojomo on Wednesday August 06, 2008 @02:52PM (#268812)
Why not just use the same slight-fading that's used for submission titles?

(Also: simply changing the link URL would mean users could make a change in their local stylesheets, even if there's no styling change at News.YC.)

Re:Mistakes in Web Design by ichverstehe on Wednesday August 06, 2008 @01:15PM (#268690)
That is so very simple and genious. PG, better implement this pronto, shouldn't take more than five lispy, lispy seconds.