Plagued Soyjak.Party / The Sharty - The altchan born from the ashes of /qa/

1744707538436.webp
 
4chan is a 10,403 line php file called imageboard.php
Virgin Silicon Valley Startup:
"So uuhhh it turns out Ruby on Rails is not modern anymore, we should rewrite everything in Rust so it's more performant, our PM will create tickets to evaluate possible frameworks, let's sync the sprint points needed with our scrum master, we can have 5.2% more parallel... 🤓"
(has 20 users)

Chad 4Chan Gook:
"It's a single file. Ten thousand lines of code. I edit it in FileZilla. git? No, there is only one version of my site. What is an IDE? That's stupid, why would I want my code to have different colors. Look here, if I want to ban a guy, I just put his IP in this line. Perfection. Did I mention it's PHP?"
(has 22 million unique users a month)
 
Virgin Silicon Valley Startup:
"So uuhhh it turns out Ruby on Rails is not modern anymore, we should rewrite everything in Rust so it's more performant, our PM will create tickets to evaluate possible frameworks, let's sync the sprint points needed with our scrum master, we can have 5.2% more parallel... 🤓"
(has 20 users)

Chad 4Chan Gook:
"It's a single file. Ten thousand lines of code. I edit it in FileZilla. git? No, there is only one version of my site. What is an IDE? That's stupid, why would I want my code to have different colors. Look here, if I want to ban a guy, I just put his IP in this line. Perfection. Did I mention it's PHP?"
(has 22 million unique users a month)
It's still more sensible than the codebase i maintain for a job.

fuck me

I'm sifting through the source and I'm overwhelmed by how things that are clearly "wrong" don't look all that bad to my eyes,


Edit: should have checked the top of catalog, not sure who wrote this or what the thought process was.
PHP:
<?php
// haha i named this file catalog.php now everyone but me will find it
// awkward to type
// nvm moot is a nerd
function generate_catalog()
 
Source code. Its real because the poster had a unique name and the name field is disabled on /soy/
View attachment 7221537
Loving it. Also loving how for some files (imgboard.php) there exists a "test file" (imgboard-test.php) where the dev seems to have played around with it. Just upload it to the server bro, what could go wrong :story:

undoubtedly the browser_id is some sort of hash involving font checks and other shit.
It's just the user agent and two default headers (mobile/desktop + full page reload / ajax request). They do a bunch of hashing and stuff, but that seems like needless overcomplication. You're giving them far too much credit.

It's kind of funny to read through that stuff, especially the whole section where they tried fighting spam again and again. I get it's "organically grown code", but so many things could've easily been cleaned up in a matter of minutes, it makes me wonder how they kept that thing running at all for so long.
 
Last edited:
4chan is a 10,403 line php file called imageboard.php

it is a complete fucking disaster.
i can't code for shit and even i can tell that's some nightmarishly bad stuff. The ghost of AVGN took hold for a moment and i audibly yelled "WHAT WERE THEY THiNKiNG"

kiwi <> sharty recursion
:33 < you may or may not be right
 
Loving it. Also loving how for some files (imgboard.php) there exists a "test file" (imgboard-test.php) where the dev seems to have played around with it. Just upload it to the server bro, what could go wrong :story:


It's just the user agent and two default headers (mobile/desktop + full page reload / ajax request). They do a bunch of hashing and stuff, but that seems like needless overcomplication. You're giving them far too much credit.

It's kind of funny to read through that stuff, especially the whole section where they tried fighting spam again and again. I get it's "organically grown code", but so many things could've easily been cleaned up in a matter of minutes, it makes me wonder how they kept that thing running at all for so long.

View attachment 7221899
I like this theme
 
Back