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

imgboard . php

Name: Anonymous 2009-02-01 1:48

So I was browsing /b/ when it crashed, and a download popped up for imgboard.php

http://pastebin.com/m2c2883d7

Haven't gotten a chance to look through it yet. Is this win?

Name: Anonymous 2009-02-02 9:08

>>66
First of all, I'm not a 4chan staff member. I just happen to be someone with an actual programming job.

You took my statement out of context. Congratulations.

If you read the full post, I am contrasting 4chan's imgboard.php with Kusaba's gigantic and haphazardly organized collection of files. You have to agree that the former is much easier to understand.

Also, it's a couple thousand lines long. I personally would split it up into a couple different files (maybe one for the main bit, and another for the support functions) but that is not outside the limits of sanity. I have seen single functions longer than that.

I doubt you have as much "real world" experience as you claim. Any programmer worth their salt has dealt with at least one unweldy mess of barf-code in their life that far surpasses the file posted here, and many have seen horror stories that could fill entire threads. Truth is, actual code sucks. The important thing is whether or not it works, because you're not getting paid more to write beautiful works of art. As long as you're capable of continually meeting the deadlines and shipping a product that doesn't suddenly crash or make the computer burst into flames when tested, great.

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