News for hackers. Stuff that matters.
Re:Poll: petition for HN improvements by ken on Wednesday May 21, 2008 @02:15PM (#196352)
This isn't about closures. This is about using continuations on the server to store client state.

Surely they could come up with some way to store trivial state in the URL's GET params, without making life too miserable for the programmers.

Nearly 10 years ago, Nielsen wrote about "URL as UI" <http://www.useit.com/alertbox/990321.html>. URLs that break after an indeterminate time are not good UI.

Re:Poll: petition for HN improvements by mojuba on Wednesday May 21, 2008 @02:23PM (#196365)
You are right, I meant continuations, sorry.

HN is using URLs for passing those hash keys (if they are hash keys of course), but they need to store them on the server as well. So URLs themselves don't solve the problem in this case.

It's actually that HN doesn't use databases, where they could keep session-specific data much longer.

Re:Poll: petition for HN improvements by natrius on Wednesday May 21, 2008 @02:19PM (#196358)
If you look at the URLs for voting on comments, they aren't using continuations. I don't see any reason why comments should.
Re:Poll: petition for HN improvements by mooneater on Wednesday May 21, 2008 @02:53PM (#196403)
The reply link I used to add this comment, had timed out, which seems wrong.

Have continuations just moved the the complexity -- making some aspects more elegant, while resulting in undesired side effects like expiring reply links?

I find that often happens when I'm designing abstractions - complexity moves somewhere else, and I later get unexpectedly bitten.