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
-
@alexbrooklyn I hope it's readable...
Logical Lines Of Code per PHP Class file
Edit: Shot on my PotatoPhone™ -
@melezorus34 @RememberMe Valid question. I'm not at work anymore and I lazily took the pictures. 😅
-
nitnip18093yThat reminds me of a website I was asked to 'audit' (see if I could find things that needed fixing, solutions to send the developer, etc).
I say 'audit' because I'm not qualified to do anything remotely close to a security audit, so it was just me checking out the site for flaws. It was pro bono so not much effort was involved.
For php sites, the first thing I do is bring up the browser console, check out the first server request and read the header.
"Ah -hah! There's your problem. "X-Powered-By: PHP-5.3.0"
PHP 5.3 is on a league of its own. Using non-declared variables does not throw an error and I remember seeing non-declared variables used as falsy values in if statements. Can you imagine debugging that shit? -
That’s not even so bad yet… I’ll try to remember to run PhpMetrics on our codebase come Monday and show what’s legacy hell really like.
Related Rants
Need I say more?
Legacy code hell...
rant
wk278
php