News for hackers. Stuff that matters.
Re:4chan source code leaked (2010) by phpnode on Thursday April 24, 2014 @07:05AM (#7639376)
this makes it even more likely that it's the real code. Let's face it, no one is expecting a shining example of software design and architectural brilliance here
Re:4chan source code leaked (2010) by linuxydave on Thursday April 24, 2014 @07:15AM (#7639435)
The original 4chan code was in Japanese and moot used Babelfish to try figure out what did what. From what I remember, the original Futaba code is just as bad (http://www.2chan.net/script/). It's no secret that 4chan is cobbled together with glue and string, moot has said this several times before.
Re:4chan source code leaked (2010) by userbinator on Thursday April 24, 2014 @08:57AM (#7639938)
The comments are in Japanese but if you know PHP you should be able to understand it without the comments anyway. It's a single file of less than 1K lines and written in a rather straightforward style. It's also extremely easy to setup - just edit the config parameters at the top and drop it on a webserver, and it's ready to use. Not even a database is needed.

I don't think it's "bad"; it's damn simple and works well for what it is, and contains no unnecessary complexity. No dependencies on some other huge framework, multilayered overengineering, or excessive generality. The same can't be said of the many other clones of it that were attempting to be "better designed" rewrites.

As for "maintainability" or all that other software engineering stuff: this board script doesn't really need to be maintained, because it works, and if anything needs to be changed, it's so simple that the changes can be made easily. Along the same ideas as http://suckless.org/philosophy

Re:4chan source code leaked (2010) by fnordfnordfnord on Thursday April 24, 2014 @07:37AM (#7639530)
Also, moot was a teenager at the time.
Re:4chan source code leaked (2010) by linuxydave on Thursday April 24, 2014 @08:17AM (#7639736)
Yep. IIRC the code hasn't really be updated or redone since then.
Re:4chan source code leaked (2010) by ANTSANTS on Thursday April 24, 2014 @08:30AM (#7639795)
4chan has grown to be quite obviously more sophisticated than Futaba, which really has stayed pretty much the same for over a decade. You can see for yourself:

http://may.2chan.net/27/futaba.htm

(that's their board for cat pictures, the most SFW one I could find, but the banner ads are probably still NSFW, so keep that in mind)

Re:4chan source code leaked (2010) by DanBC on Thursday April 24, 2014 @09:58AM (#7640272)
It's kind of surprising though. I wonder what the results of a 4chan re-write by 4chan users would look like. Or even splitting out some functions for re-writing.
Re:4chan source code leaked (2010) by linuxydave on Thursday April 24, 2014 @10:17AM (#7640376)
Well, others have written their own scripts - KusabaX springs to mind. There's another one called TinyIB or something as well.
Re:4chan source code leaked (2010) by krapp on Thursday April 24, 2014 @10:57AM (#7640664)
I've played with Kusaba X... it's exactly the kind of software that people who hate PHP, hate PHP for.

I think you're thinking of tinyboard: https://github.com/savetheinternet/Tinyboard

Re:4chan source code leaked (2010) by mr_vile on Thursday April 24, 2014 @11:24AM (#7640842)
http://9ch.in/overscript/ is a fairly exhaustive list
Re:4chan source code leaked (2010) by lucb1e on Thursday April 24, 2014 @07:10AM (#7639407)
Well I would not expect this big pile of shit, either.