Hacker Newsnew | past | comments | ask | show | jobs | submit | more phpnode's commentslogin

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


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.


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


Also, moot was a teenager at the time.


Yep. IIRC the code hasn't really be updated or redone since then.


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)


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.


Well, others have written their own scripts - KusabaX springs to mind. There's another one called TinyIB or something as well.


http://9ch.in/overscript/ is a fairly exhaustive list


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


Well I would not expect this big pile of shit, either.


Sadly the compile step is unavoidable if you want the contractual guarantees, but it's possible to use Contractual JS directly, without compiling it, so you could potentially avoid compilation during actual development.


author here, this was my easter hack. You might find the online demo a bit more accessible: http://codemix.github.io/contractual/try.html


Eiffel's contracts are really compelling, I wish there was a reasonable, non-hacky way to implement them in more mainstream languages.


I wouldn't say that clojure is mainstream, but their implementation is reasonable and makes sense in the clojure idiom (just a meta-data map on the function)


Turns out there's a sort of reasonable way to implement them in JavaScript, it's definitely hacky though - http://codemix.github.io/contractual/try.html


Because to be usable it needs to be fast (and portable), and for a long time those constraints basically meant C - possibly not any more.

But let's not kid ourselves, reimplementing a library the size of OpenSSL in a new language, or even the same one, is not a trivial matter. We're talking about a $10m+ investment, who's going to pay?


Seems like you might be living in a bubble. Guess what - you don't have to have won the startup lottery to have personal autonomy, be financially independent or build a strong reputation.

Your reasoning is this:

I am extremely clever and I have a certificate to prove it!

I have chosen an extremely lucrative career.

Why don't people see how important I am? Where is my respect?

And then you say things like "I take pride in resenting those with undeserved success", "They're a cancer. I'm the chemo." and "most of [my failures were] not my fault".

Do you think statements like this foster respect for you?

Would you respect you?


that's good but it's missing something - what is the transport format?. I think this powerful new technology called XML would be ideal for data interchange, we could just append 'and XML' to the name?


Looks nice but not really revolutionary, I've had one of these for a year http://www.heightadjustabledesking.co.uk/index.php?_a=viewPr... which looks basically identical and is quite comparably priced.


> looks basically identical and is quite comparably priced.

I disagree. That desk is priced at £407, whereas this one goes for £240. All else equal, that's significant.


I'd imagine that these desks cost roughly the same amount to produce and the only reason they're ~£400 is because it's a relatively niche product and is sold through a reseller, not direct.


This is they type of desk that I have and I saved a significant amount of money by just buying the legs and then getting a table top at Ikea. Most of this re-sellers are capturing their margins by having overpriced desktops included in the purchase.

This desk also has a cross bar for support and to conceal an axle which allows the desk to have a single beefy motor. I have found the cross beam to be crucial as I have used the desk off-and-on as part of my treadmill setup and every now and then you want to stabilize yourself holding the desk. Even with the cross beam it can wobble in this scenario.


Are the table tops standard or did you have to drill holes in the Ikea top to get it to fit?


just used a power screwdriver to screw the desk to the top


How is 560 comparably priced to 399?


This one is cheaper, and motorized.


this one is motorized too


yes, because theirs was a cheap marketing stunt, rather than a principled stand.


A cheap marketing stunt would have been to redirect Firefox users to Christian Singles.

I won't presume to second-guess OKC's motives, and I'm glad they took some sort of stand for the LGBT community, but I think they ultimately alienated their users.


I notice that your site uses JavaScript. Did you know that Brendan Eich invented JavaScript? For consistency, you should not only remove JS from your site but also boycott every other site that uses it, including this one.


I agree. I'm not being consistent in my views. I'm going to continue to use JavaScript, but I don't the Eich should be running Mozilla. Humans are complicated.


Regardless of the merits of taking a public stand against this kind of thing, you, and the other people speaking out against Eich are making a Fundamental Attribution Error [0].

The fact that Eich donated in support of prop 8 does not necessarily make him a homophobe. The only thing we see is the donation and none of the context around what made him decide to do it. He has denied being a homophobe and there have been no reports of any homophobic behaviour. The only thing we actually know is that he made a donation to a political cause that the majority of the voting public also agreed with. Is it fair to say that every single one of the 52%[1] of voters in support of prop 8 are homophobes? Plainly the answer is no.

[0]: http://en.wikipedia.org/wiki/Fundamental_attribution_error [1]: http://en.wikipedia.org/wiki/California_Proposition_8_(2008)...


I never accused him of being a homophobe, I simply stated all that I can glean from the facts: he doesn't believe homosexuals should be allowed to marry.


So what? I know several homosexuals who don't believe homosexuals should be allowed to marry -- people who actually believe this is a regression to BS bourgeois values from gay people losing all perspective of 70's struggles (regarding liberation from antiquated values and institutions).

In general, taking a single issue and making it something people can lose their job over it, just because you have the power to push for it in the media, is very wrong.

At worse, what Brendan voted for would merely not let some gay people perform the same BS marital custom that straight people do. Doesn't compare at all to death penalty in my book --which costs hundrends of lives -- including of kids in places like Texas.

So, Should people who are in favor of the death penatly lose their job and have their CEO positions boycotted? Take you for example. What do you think about animal rights? Or the death penatly? Or gun control? Or drugs?


> he doesn't believe homosexuals should be allowed to marry.

No, we cannot even infer this much, all we know is that he donated to a political cause. We know nothing else, can we stop the bullying now please?


>Humans are complicated

Except Eich, who is some kind of one-dimensional figure, and should lose his CEO position because people don't agree with his personal opinions.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: