Lurker News
Hello HN!

I've found my SQL knowledge to be lacking, so I made a project that uses SQLite as a backend.
As it is intended for self-hosting I aim to make it easy to set up and maintain. Getting it up & running takes no more than a few commands (bar setting up a proxy such as nginx, which is out of scope).
I've set up a "demo" site at https://forum.agreper.com/ if you want to try out the UI.

Comments (155) 36 threads

Show all comments

Showing thread 10 of 36

ftth_finland2 replies#
I dislike forums which indent successive replies.

I hate forums which indent replies and don’t support collapsing sub-threads.
The proper way of handling replies is to post them under each other and support quoting.

demindiro2 replies#
> I hate forums which indent replies and don’t support collapsing sub-threads.

[-] should collapse subthreads. Caveat is that the browser doesn't remember which subthreads were collapsed due to no-JS.

have_faith2 replies#
Not if each "collapse" link reloads the page and at the same time stores the preference in the backend against your username so that subsequent page loads know what to hide (:
veidr2 replies#
LOL you are so right... so much was lost when we started accepting that page reloads are expensive (T_T)
com2kid2 replies#
For 20 years page reloads were expensive.

In 1999 I had a cable modem connection that could pull down 2 megabytes per second and ping up and down the west cost well under 50ms.
But forum servers were slow. Like, really really slow. When Sites like Reddit finally came to, 15 or so years later, with inline replies, they were a breath of fresh air.
Back in 99 Slashdot had massive resources put into making it responsive, lots of servers thrown at it, and it was still laggy and slow compared to Reddit now days.
Everyone arguing about "time to first draw being under 100ms" forgets that just a short time ago, web servers took more than 100ms to respond to a connection.

veidr1 reply#
Yeah you’re not wrong. But I wouldn’t consider that 100ms, or even 500ms, “expensive”.

In 1999 I would have been jealous of your internet connection — I still had a 256kbps ISDN line, and there were fast forums even then (but mostly not). I think it mainly depended on whether the sites rendered HTML on the fly (with like maybe Perl? to render database content) or... just served static HTML.
Page reloads only got expensive when we decided that they would do a bunch of other shit besides that.

Continue this thread — 1 reply

Nextgrid1 reply#
> just a short time ago, web servers took more than 100ms to respond to a connection

And yet, once you wait that 100ms or however long it takes for the server to respond, your page is fully loaded and interactive. During the loading process, your browser remains responsive and your CPU is not loaded.
Nowadays, we still wait the same amount of time for the initial load, but now your CPU is at 100% parsing megabytes of shitty Javascript, and once the initial load completes, you're still not guaranteed the page won't slow down/overload your CPU again because some stuff can be asynchronously loaded (supposedly for performance reasons, even though doing it on the backend as part of the initial load would be faster in the vast majority of cases).

com2kid1 reply#
> Nowadays, we still wait the same amount of time for the initial load, but now your CPU is at 100% parsing megabytes of shitty Javascript, and once the initial load completes, you're still not guaranteed the page won't slow down/overload your CPU again because some stuff can be asynchronously loaded (supposedly for performance reasons, even though doing it on the backend as part of the initial load would be faster in the vast majority of cases).

The new reddit site is fast. Yes initial load time is like 2 seconds, but after that, everything else is instant. Click comments, escape out, go back to feed, load comments of a different story, it is quick.
Yes crappy JS abounds everywhere, NYT is an offender recently (they used to be good!), lots of sites suck in this regard, but when modern web dev is done well, it works really well.
Though having read the Reddit engineering blog posts, they throw a ton of resources at ensuring Reddit is fast.
Meanwhile, Ars Technica loads things almost instantly, but for the last year or two (!!) their article pages have leaked memory and CPU, eventually taking up all my CPU and gigs of memory.
Not sure how even. Great load times, responsive site, keep that background tab open and watch the CPU start to melt down.

iggldiggl#
> The new reddit site is fast. Yes initial load time is like 2 seconds, but after that, everything else is instant.

Disagree. I just gave it a try on a desktop (!) browser – when switching from the thread list into a particular comment thread, "new" reddit is definitively slower than old.reddit.com, both visually (after the thread page as such displays, it spends another second or two loading the actual comments, whereas on old.reddit.com everything renders instantly), and measured end-to-end (from clicking on the "comments" link to the moment the comments actually appear) as well.
On my underpowered phone, "new" reddit fares even worse, and never mind all that additional "you can only view this in the app"-crap that was thankfully never backported to old.reddit.com.

have_faith#
It was a tongue-in-cheek suggestion but page reloads are pretty fast these days with http/2. Maybe there's ways of submitting a form in the background for the same effect, no reload needed! now we're surfing.
XCSme#
Can't you redirect/store the information in the URL and then somehow read the URL data in CSS?
ftth_finland#
I stand corrected.

I did not recognize the [-] as it looks like some weird emoji on my mobile browser due to the too small and uncentered background.

MetaWhirledPeas2 replies#
That's just, like, your opinion man. I prefer HN's indented approach to a typical forum listing where it's just a firehose with quotes. But the best approach is to allow the view to be switched as desired.
eterm1 reply#
HN's model is bad for high volume. Sometimes on HN you only get one top level reply on the whole page because once it puts the top top-level reply it then puts all the replies to that above the next top-level reply.

So you get a vast amount of low quality replies above the next high-quality reply.
For low volume it works okay because you can manually collapse but for high volume once it starts paging it breaks down and you just get further into the top level comment without properly being able to escape.
Reddit's model of auto-collapsing so you get a mix of threads and top-level replies is much better for picking out the better responses.

Continue this thread — 3 replies

JasonFruit1 reply#
The problem with letting users choose the view is that the chosen view affects how they write. If I can see it's obvious in my tree view who I'm responding to, I won't point it out, and then someone who uses the firehose view won't be able to follow the conversation.
taink2 replies#
I feel the main problem wouldn't be this (if you handle quotes to show in a tree view then surely you can handle replies in a tree view to show quotes in a firehose).

However, the main issue is that when you can quote multiple comments (when you are in a firehose view) you tend to send a single post for multiple replies; I have no idea how that could be shown in the tree view.
Essentially a firehose is a superset of a tree structure, if your unit is a post.

Continue this thread — 2 replies