Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

How to write imageboard

Name: Anonymous 2010-08-28 20:32

Hello,
I found out that kusaba x is pretty old shit. What's this whole think about generating html files? Can't it be done simply by sql queries every time and do it with some ajax? How would you write it?

Name: Anonymous 2010-08-29 2:15

>>17
My point was that if you come to /prog/ asking how to write an image board, the answer "go write it in PHP and SQL" is the correct answer for the situation.  If it gets a little popular, then putting Varnish in front will fix issues with the load with relatively minimal implementation effort.  As for security issues, there are bots out there smart enough to sniff SQL injection attacks, so changing your language doesn't do you much good (unless you use an ORM, which I tend to hate even more than PHP).

Pregenerating HTML in a static directory is, yes, better but I suspect there are some nontrivial synchronization issues involving simultaneous posts.  Such issues are far out of a newbie's league.

If you're the kind of person who has the programming skills to set up something that can handle a load like 4chan's, then you wouldn't be asking "how do I make an image board?"  Instead, you'd only stick around on /prog/ to troll.

Like what I'm doing. not that anyone cares

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List