Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
sleek34573yyou give people a beautiful language like PHP and they build THAT with it ? for gods sake...
-
This hurts more to my eyes then looking in the contents of the ark of truth (Indiana Jones)
-
nitnip18133yThe first 4 lines can be replaced by
$positionPerLevel = array_fill(0, self::LEVEL_LIMIT, -1);
Good luck for the rest. -
bioDan61593yThis looks like a classic case of refactoring by throwing it to the trash and rewriting everything.
Oh wait, is this the 120K LOC file? -
@bioDan There are multiple 7-10k files but gladly none of 120k LOC.
The whole "codebase" is around 150k-180k LOC... thus not easy to throw away at the moment. -
Ten911453y@PonySlaystation thats's remarkable but trust me when I say I've seen worse... I don't know if I can post screenshots of it though
-
@Ten91 this is just a tiny exerpt and it has way worse parts, but I believe you. PHP sadly allows PTSD-inducing code to be written and run... 😥
Related Rants
Behold the PHP pyramid of doom!
You know what kind of code is coming... a big pile of shite! 😍
Obviously you have to return by reference (&) because of performance and memory reasons. ☝️🤓
Man... I've seen code...
rant
cms of doom
phptsd
php