4 ms·
Hacker News is actually written in a similar way[0]. Here is the code to generate the lists page[1] (the code is a bit outdated): (newsop lists () (long
by malisper 12y ago
Hacker News is actually written in a similar way[0]. Here is the code to generate the lists page[1] (the code is a bit outdated):
(newsop lists ()
(longpage user (msec) nil "lists" "Lists" "lists"
(sptab
(row (link "best") "Highest voted recent links.")
(row (link "active") "Most active current discussions.")
(row (link "bestcomments") "Highest voted recent comments.")
(row (link "noobs") "Submissions from new accounts.")
(when (admin user)
(map row:link
'(optimes topips flagged killed badguys badlogins goodlogins)))
(hook 'listspage user))))
[0] https://github.com/wting/hackernews/blob/master/news.arc https://github.com/wting/hackernews/blob/master/news.arc
[1] https://news.ycombinator.com/lists https://news.ycombinator.com/lists
- deleted 12y ago[deleted]