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

throwaway815232 replies#
It's always nice to hear about someone writing a cool program just because they felt like doing so. Every time I think about writing a forum server, I find I return to the thought that Usenet was better, and that if I wanted a web forum, I'd consider putting a web front end on an NNTP server. That would among other things let people keep using NNTP clients (I like gnus.el) if they don't want to use a browser. There are a bunch of NNTP web clients already, but afaict they all needlessly suck.

You might take a look at Fossil (fossil-scm.org) which is not a forum, but is an all-in-one source control system, bug tracker, wiki, and web backend, all implemented as an SQLite client written in C. Its blurb says a scripting language might sound more attractive than C superficially, but in Fossil, SQLite does all the heavy lifting that would otherwise have been done with scripts. On my bottomless todo list I want to study its implementation sometime, since I think it would be a good example of "advanced" uses of SQL and SQLite. That is completely independent of Fossil's purpose as a VCS application. I'm ok at basic SQL but not so clueful about sophisticated uses.
One thing to watch out for is that since SQLite is an embedded DB, when you make an SQlite query, the overhead is basically a local subroutine call rather than the network traffic that a client/server DB would incur. That in a way changes the asymptotics of an application: particularly, the "N+1 queries" antipattern of some client/server DB apps is a perfectly ok design strategy for SQLite. I believe Fossil may rely on this in some way.

nieve2 replies#
Every now and then I'm reminded of what could have been when someone submitted a patch to Dreamwidth (probably easily ported to Livejournal) that provided a bi-directional NNTP gateway that allowed posting. The Dreamwidth devs quite reasonably ended up regretfully rejecting it because there was no-one in the dev community who could maintain it, but sometimes when I'm reading through a community that generates 5000 messages a day I'm reminded that I could have had real kill files and proper tracking of new messages. Even close to 30 years later I haven't found anything as efficient for forums & such as a good newsreader was for netnews.
kitd#
The most productive workplace forum I have used was based on NNTP. So much better than "improvements" like Slack and Discourse. But then I considered it was really just a shared email. Would email with shared folders not achieve the same?
stonogo1 reply#
The D Language forum is a web forum/NNTP client/mail archive/irc bot/rss feed. You don't have to make an account to post. A friend of mine pointed out many years ago that it was basically the peak form of multi-protocol communications. If someone could implement convenient encryption it would be magic.
Nasreddin_Hodja#
> and that if I wanted a web forum, I'd consider putting a web front end on an NNTP server.

If I was developing a new forum engine, I'd base it on federated activitypub protocol.

tiffanyh9 replies#
I commend you for hand rolling it all and not using JS.

I miss the days of good ole forum software (e.g. FluxBB/PunBB) before it was superseded with massive JS bloat/clunky forum software like Discourse, Flarum, etc.

LinuxBender#
For what it's worth, phpBB still sortof supports having javascript disabled [1] but it is nowhere near as lightweight as the example here created by demindiro.

I also commend demindiro on not requiring JS. It is refreshing to see simple yet useful applications.
[1] - https://www.phpbb.com/community/viewtopic.php?t=2106245

make_me_rich8 replies#
Ohh I miss the good old days of forums in general. I find all this new software, where conversions* are "threaded" stupidly hard to read. Even worse, when the software is trying to recommend to you, what to read. Back in the day you had a thread, every post to that thread was chronologically added to that thread and in case you wanted to reply to someone, you quoted them... sigh

EDITED: *conversations

Semaphor2 replies#
I actually love threaded discussions… On HN and Old Reddit. But anything is better than whatever XDA uses, and almost everything is better than discourse.
ngrilly5 replies#
I also prefer reading threaded discussions, but are you aware of a good way of keeping track of new messages? That’s my main issue with threaded discussions, for example here on HN.

Continue this thread — 5 replies

ratww2 replies#
> Old Reddit

Important distinction.
New Reddit also fell prey to bad development practices and is without exaggeration unusable for me. It often "crashes" and the whole page goes dark-grey on my browser, and this has been happening for at least a year. After reloading I can't see all messages without navigating away, and middle click messes with the scrolling. At this point I will assume they either don't care or are fucking with me.

Continue this thread — 2 replies

dspillett#
> find all this new software, where conversions are "threaded" stupidly hard to read.

This is not new, it just isn't applied to web based forums as much as I (someone who likes threaded discussions like that) would like. For small discussions it make little difference, for large branching threads it can help greatly when you don't care to follow all the sub-threads. It was not uncommon in Usenet clients back in the day. Of course it needs to be coupled with good UI for collapsing branches and otherwise navigating the tree, and perhaps a chronological view option for issue who prefer that (or a tree-view with posts spaced by arrival order for the best of both of you do it right - I had a reader that did that but can't currently remember it's name).

dmitriid2 replies#
Threaded conversations are really good because you can have branching discussions that don't interfere with each other.

But the only forum I know of that realised how to properly do it is this old Russian software forum [1] You need a mail client-like interface so that you can see your place in the discussion.
Triple quoting someone and trying to read the actual thread in a flat forum sucked then and sucks now.
[1] Example link http://rsdn.org/?forum/philosophy/8357952

mostlysimilar#
vBulletin 3.x/4.x and IPB 2.x/3.x had threaded view as an option alongside flat.

Forum software of old actually gave users the power to choose the interface they want. We've really gone backwards with software interfaces.
Also, themes. These days all we get are "Dark Mode" and "Light Mode". Boring.

IshKebab4 replies#
Check out the D language forums. Easily the best forum software I've seen.

Continue this thread — 4 replies

com2kid#
I miss the good old days of BBSes, the late 90s were a serious step back in forum usability.

Until JS came along, reading online forums on a broadband internet connection was a worse user experience than using BBS forum software on a dial up modem.
Every single action, full page reload. And until cloud computing came along, even the best of website forums had servers that took forever to respond.
Somehow a BBS written for a 386 16mhz in 1992 was faster than a forum written in 1999 or even 2005. Oh wait, the 1992 forum was likely written in C, or even assembly! (And it only had 1 user at a time, that helped!)

cygx#
Ohh I miss the good old days of forums in general. I find all this new software, where conversions are "threaded" stupidly hard to read.

A 'classical' web forum is threaded, contrasting with an unthreaded (bulletin) board - at least that's how the terminology was used in the German webdev scene of the late 90s/early 2000s, possibly due to the prominence of SELFHTML and its forum.

jonnycomputer1 reply#
I find HN's approach very easy to read and follow. But then, each submission does not keep getting commented on indefinitely. Could get unwieldy then.
asddubs#
it works if you want to read a thread exactly once and then never come back to it. if it's an ongoing discussion that you want to visit even just two times, you'll just end up reading all the same comments again and struggle to find anything new
IshKebab#
I too miss the good old days where the information you wanted was buried somewhere in a 100 page phpBB thread and you had to manually search through it 1 page at a time, with each one-line comment taking up half the page with avatars and signatures.

Good times. Sad that things have moved on to systems that don't suck quite so much but that's progress for you.

deniska#
My favorite kind of web forum engine is the one which keeps discussions threaded, but displays them in a flat list of messages ordered by time, but with quick navigation to parent and responses.
fuzzy23 replies#
I actually believe vBulletin 3 is where it’s at!

With modern forums, it’s mostly the UX that sucks. PWAs that never recover from errors, endless scrolling, stuff like that. Also
* Falsehoods forum developers believe about network reliability – did you know the network can be down? Then up again?
* Falsehoods forum developers believe about time – did you know that time can jump forward, by huge amounts, because the page was suspended for whatever reason?
Turns out, if you try to do the browser’s job, that’s a lot of work! Just don’t.
Performance is usually good enough for me, even with all the JS and whatnot.

tiffanyh2 replies#
> I actually believe vBulletin 3 is where it’s at!

Curious, what about vBulletin v4 and v5 do you not like?

Ralfp1 reply#
Developers of vB 3 left the company and started new forum software named XenForo. They were then sued by Internet Brands (vB owners) for IP theft - IB claimed XenForo was next vBulletin. In court hearings we’ve learned that IB plan for vBulletin development was to fire all but lead dev, and have this lead dev only delegate and review work to outsourced devs in Asia. We’ve also heard that „only developers care about quality of code” and trying to keep code good is „waste of time”.

And then vB 4 landed and turned out to be insanely poor launch - forum index was plugin based, but it was very easy to end with index page that did 700 mysql queries, which took forever to execute without relying on full page cache like varnish.
Today its supposedly much better, but Internet Brands uses internal version of vBulletin 3 (3.8) to run their sites instead of v4 or v5.

Continue this thread — 1 reply

fuzzy2#
It’s just the feeling! :-)

vBulletin 4 was also okay in the end, but I always thought vBulletin 5 was trying to be too many things at once. It’s just too modern! I understand, of course, that the online community landscape has changed since back then and vBulletin has to adapt to remain competitive.

snek_case8 replies#
Why do people hate endless scrolling so much?
paulryanrogers#
Impossible to jump pages, know how much there is, often breaks native scrolling in awkward ways without recourse.
whartung#
Because it’s like swimming across a large lake finding yourself exhausted in the middle with little alternative to swimming back.

Now on my phone it’s relatively easy to jump to the top of the page. It’s also almost done impossible to jump to the bottom.
On a desktop I can at least mash the END key or play silly reindeer games with the scrollbar thumb.
On mobile it’s very hard to Leap or Surge or Jump.
If I’m madly fanning the page with my thumb or, worse, my fingers because I’m tired with my thumb, I pretty much just give up at that point.
I also like having non-endless scrolling because I can use the scroll bar as a gauge of how much is left of the article.
Being constantly fed is just a bad experience.

ratww#
Well, first, it's not reliable. If the network goes down and it doesn't have some form of recovery, you gotta start from scratch. Second, it's not bookmarkable (except for the odd case), so you can't send specific pages to anyone, you often can't start navigating in it one day and continue on other, or in another device. Third, you lose navigation and exploration features, like navigating to the first page and seeing the oldest stuff, or going into the middle.

But the biggest reason people hate as a matter principle is because it is in 99% of cases done without any UX research and without any care from developers, and that's in the best case. The worst case is to cause doomscrolling, which is nefarious in its own.
It is disrespectful to users. If you don't want people seeing old content just fucking delete it.

Continue this thread — 4 more replies

Continue this thread — 1 more reply

Continue this thread — 6 more replies

leviathan#
Holy sql injection Batman
bdlowery#
You should fix it so there’s no sql injection :D
julianlam#
I haven't seen representatives from Discourse, Flarum, Vanilla, or the like chime in yet, but as the founder of NodeBB, I want to say this is just awesome!

I'm absolutely loving the fact that the HN zeitgeist has come around to embracing these no-js solutions focusing on function over form.
Every once in awhile I come across little sparks in the forum space, but they all fizzle out for one simple reason: building a forum software isn't as easy as you think it is.
For us, it took three developers a year apiece of full-time work to reach rough feature parity with our competitors, and we're still trying to innovate nearly a decade in (and add in the constant need for reducing technical debt, etc.)
For now I will say what I always say when I see new competitors in the forum space — give me a run for my money. Keep me on my toes! I appreciate the challenge, and it gives me that extra incentive to make our software the best it can be.

Load more comments